]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
ui glitch
[lyx.git] / src / LaTeXFeatures.cpp
index a32566ff52e1a233cd4a1e1d69dd62e7cfc05d3c..a3e5ef1b9f59707314f373cac19cee396dde5a59 100644 (file)
@@ -257,11 +257,15 @@ static docstring const ogonek_def = from_ascii(
        "\\newcommand{\\ogonek}[1]{\\mathpalette\\doogonek{#1}}\n");
 
 static docstring const lyxref_def = from_ascii(
-               "\\makeatletter\n"
+               "\\RS@ifundefined{subref}\n"
+               "  {\\def\\RSsubtxt{section~}\\newref{sub}{name = \\RSsubtxt}}\n" 
+               "  {}\n"
                "\\RS@ifundefined{thmref}\n"
                "  {\\def\\RSthmtxt{theorem~}\\newref{thm}{name = \\RSthmtxt}}\n" 
                "  {}\n"
-               "\\makeatother\n");
+               "\\RS@ifundefined{lemref}\n"
+               "  {\\def\\RSlemtxt{lemma~}\\newref{lem}{name = \\RSlemtxt}}\n" 
+               "  {}\n");
 
 
 /////////////////////////////////////////////////////////////////////