Yann Le Du wrote:
>
> Hello,
>
> I wanted to check if this simple error could be reproduced by other people
> in lyx-1.1.5-fix1 :
>
> *Open a new document
> *Insert a figure float
> *Insert a figure in the figure float
> *As figure caption, put the mathematical symbol of a vector, i.e. the
> chacracter "v" with an arrow on top.
in the floating figure or table environment the captionstyle works
not with special commands (e.g.math-symbols). Choose one of the
following possibilities to shun an error:
1.
write \protect before your latex command (e.g.:
\protect\overrightarrow{arrow})
2. define an own caption in the latex preamble
\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.
3. work with a trick:
run from lyx dvi-view once without your special mathsymbol or command.
the dvi-output than works and every dvi-update too, you can ignore the
latex-error when you insert now your
math-symbol.
> This did not happen in previous version I used (1.1.4 I think).
lyx ignored the error.
Herbert