On Tuesday 14 May 2002 12:45 pm, JORGE HERNANDO wrote:
> Hi:
Hi Jorge!
> I'm a relatively new user to lyx and very happy with it.
> There a couple of features I'd like to see in lyx:
>
> 2) My second wish is that it could be very handy to have
> a customisable palette, or set of buttons and to be
> able to put them in the palette. For example, I'm now
> writing a paper with a lot of bold greek letters and
> would be very useful to have an immediate access to them.
Perhaps this will help.
Angus
======================================================
You can insert bold greek symbols by defining a math-macro \bmath and then
typing
\bmath \psi
within the math editor.
One you've defined bmath (below) you'll get bold symbols in the LaTeX output,
but not on the LyX screen.
To create the bmath macro type M-x to activate the minibuffer and then in the
minibuffer type:
math-macro bmath 1
This will create an empty math macro, bmath, ready for you to fill.
math macros with LyX 1.2
==================
The empty math-macro will have two "boxes" to receive arguments. In the left
hand one type the LaTeX you'd like to be output
\boldsymbol #1
and in the right hand one type
#1
which is the command used by LyX to render the macro on screen. This will
give bold symbols in the LaTeX file (but not on the screen) when you type
\bmath \psi
within the math editor.
math macros with LyX 1.1.6
====================
The empty math-macro will have only 1 box to receive arguments. Add #1 to it (I
forget how with LyX 1.1.6. Some hotkey may be defined. It's in the User
Guide.) The appropriate magic to be added to the LaTeX preamble is
%Some of these commands are also defined as macros, but the
%macros do not allow fonts to be specified. They are 'good enough'
%for lyx, but the LaTeX typesetting is specified here
\newcommand{\bmath}[1]{\boldsymbol{#1}}
\let\newcommand=\providecommand