]> git.lyx.org Git - lyx.git/blobdiff - src/LaTeXFeatures.cpp
Improve how add_to_preamble and insert_to_preamble work, and audit the
[lyx.git] / src / LaTeXFeatures.cpp
index 10d9ecd935437223d3ed082eaf941e6680006996..94745c344f751e94ac9e862e81012215b43b6711 100644 (file)
@@ -257,11 +257,12 @@ 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{\thmref}\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");
 
 
 /////////////////////////////////////////////////////////////////////