Lionel Portmann wrote:
>
> In a figure (float) caption, I want to put within the text some math
> symboles. If I use for instance an overrightarrow over even a single
> letter, I get an error from Latex. With Lyx 1.04, this error was
> ignored, (no grey box) and the DVI came out all right (fine for me).
> With Lyx 1.15 the error is caught, and I get a grey box in my Lyx
> document, and no DVI (bad for me). Actually, Lyx 1.04 and 1.15 write the
> same Latex code, which triggers the same error.
>
> These errors come when I use overrightarrow, overbrace, etc., but not
> with overline or tilde!
define your own captionstyle and everything works!
\newcommand\myCaption[1]{\small\refstepcounter{figure}%
\centering\figurename\ \thefigure :\ #1}
in the float (!) choose paragraphstyle standard instead of
captionstyle and write
\myCaption{...the captiontext ...}
myCaption is only needful for captions with special math-symbols
or special commands. counting of figure is continuing.
on the other hand it's possible to work with a trick:
run from lyx dvi-view once without your mathsymbol
\overrightarray. the dvi-output than works and every
dvi-update too, you can ignore the latex-error when you
insert now your math-symbol.
overline and tilde works because they are not build with
special commands like overrightarrow. \vec{a} works also!
Herbert
--
[EMAIL PROTECTED]
http://perce.de/voss