On 28.06.05, Uwe Stöhr wrote:
> Paul Johnson schrieb:
>
> >I was lazy and typed several pages with ordinary text for variables x,
> >y, and z. Later, I wanted to convert those to math, and I try to
> >highlight the things and hit C-m. That does create the math box, but it
> >does not convert the existing character to the math font. The only fix
> >I could find was to manually retype all the letters I wanted converted.
>
> Why do you want to use formulas for variables? I assume that you only
> want them to be italic, right? Then simply highlight them and use the
> button with the exclamation mark.
While this is a quick workaround, it is not "the right thing", as it uses
visual as opposed to semantic markup. If the variables should be marked
as "math", better use math (e.g. changing the math-font document wide
would otherwise lead to unpleasant surprises). (BTW, in LaTeX, $x$ is
shorter than \emph{x}.)
You could try to change one instance by hand (typing Ctrl-M x), have a look
at the lyx source to spot the difference and use your favourite text editor
to do a search and replace.
Günter
--
G.Milde web.de