Yann Le Du wrote: > > On Fri, 1 Sep 2000, Herbert Voss wrote: > > > Yann Le Du wrote: > > > > > > On Fri, 1 Sep 2000, Herbert Voss wrote: > > > > > > > 1. > > > > write \protect before your latex command (e.g.: > > > > \protect\overrightarrow{arrow}) > > > > > > This is done automatically in my lyx : I write my vector v using the math > > > panel (which generates an \overrightarrow in the tex code), and when I > > > look at the tex code, it already has the \protect statement. But still, it > > > doesn't work (i.e. an error occurs). > > > > than there can be no error? can you send a short example-file? if you > > like. lyx inserts the \protect in the wrong way, not before the command, just before the whole inline math-command. however, if you do following steps, all works (only for math in captions): opne math box, write all the muthstuff you need until an special mathsymbol write \protect and do a space. the backslash is not seen! write your mathsymbol Herbert
#LyX 1.1 created this file. For more info see http://www.lyx.org/ \lyxformat 2.16 \textclass article \begin_preamble \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage{graphics} \makeatletter \end_preamble \language default \inputencoding latin1 \fontscheme default \graphics default \paperfontsize default \spacing single \papersize Default \paperpackage a4 \use_geometry 0 \use_amsmath 0 \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \quotes_times 2 \papercolumns 1 \papersides 1 \paperpagestyle default \layout Standard \latex latex \backslash par \backslash centering \backslash par{} \begin_float fig \layout Caption See the bug\SpecialChar ~ : \begin_inset Formula \( \protect \overrightarrow{v} \) \end_inset \end_float \the_end