X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Fsyntax.default;h=f18ea74b795e729d59a251bd5704881c1a5b9f5f;hb=ecbf5920eded1475468cee2548f9b66ff858f5c1;hp=f713cfae8a5127aaa8081d85bb9a749ed614538e;hpb=f346c01f1e0999fec008362d9baf816c6e84995d;p=lyx.git diff --git a/lib/syntax.default b/lib/syntax.default index f713cfae8a..f18ea74b79 100644 --- a/lib/syntax.default +++ b/lib/syntax.default @@ -370,6 +370,9 @@ $$ % is some code that may occur in a .tex file created by LyX. The re-import % works only because the first argument of \texorpdfstring is specified as % translatable in this file. +% If a command puts the contents of an argument inside an own group, use +% "group" instead of "translate". Otherwise things like font changes would +% survive the end of the group in LyX (bug 3036). \abstractname \Acrobatmenu{}{} % from the hyperref package @@ -397,6 +400,8 @@ $$ \bottomfraction \caption[]{} \cc{} +\ce{} +\cf{} \ccname \centering \centerline{translate} @@ -476,7 +481,7 @@ $$ \ifthenelse \includegraphics*[,][,]{} % LyX 1.0 doesn't support clipping figures \indent -\index{} +\index{translate} \indexentry{}{} % only in .idx files (JMarc) \indexname \indexspace @@ -515,8 +520,8 @@ $$ \makelabels \maketitle \MakeShortVerb{} % from doc.sty, argument must be verbatim -\markboth{}{translate} -\markright{translate} +\markboth{group}{group} +\markright{group} \mathversion{} \mbox{translate} \mddefault @@ -569,7 +574,7 @@ $$ \pdfstringdef{}{} % from the hyperref package \poptabs \prefacename -\printindex +\printindex[]{} \protect \providecommand{}[][]{} \providecommand*{}[][]{} @@ -630,6 +635,7 @@ $$ \shortstack[]{translate} \showhyphens{} \signature{} +\sindex[]{translate} %splitidx.sty \sldefault \sloppy \stepcounter{} @@ -689,6 +695,7 @@ $$ \vspace{} \vspace*{} \whiledo{}{} +\xymatrix{} % this is basically an array => the contents would be parsed badly (bug 8396) % LaTeX environments. % They have always one extra "argument": @@ -703,30 +710,30 @@ thebibliography{} % Environments that start math mode. % $...$, $$...$$, \(...\) and \[...\] are hardcoded in tex2lyx. -% The arguments are currently ignored. +% The arguments are currently ignored (apart from displaymath). \begin{mathenvironments} -equation -equation* -eqnarray -eqnarray* -align -align* -gather -gather* -multline -multline* -math -displaymath -flalign -flalign +equation{displaymath} +equation*{displaymath} +eqnarray{displaymath} +eqnarray*{displaymath} +align{displaymath} +align*{displaymath} +gather{displaymath} +gather*{displaymath} +multline{displaymath} +multline*{displaymath} +math{} +displaymath{displaymath} +flalign{displaymath} +flalign{displaymath} % These require extra args -alignat -alignat* -xalignat -xalignat* -xxalignat +alignat{}{displaymath} +alignat*{displaymath} +xalignat{}{displaymath} +xalignat*{}{displaymath} +xxalignat{}{displaymath} % These are not known by LyX but work nevertheless: -empheq +empheq[]{}{displaymath} \end{mathenvironments} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%