From 249fe0167e219094e30c51122104ba6e5b9f53f2 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 28 Oct 2010 16:04:46 +0000 Subject: [PATCH] Took out too much in r35582. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@35883 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/LaTeXFeatures.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index d99c0fc6f5..10d9ecd935 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -256,6 +256,14 @@ static docstring const ogonek_def = from_ascii( " \\mathchar\"0\\hexnumber@\\symtipasymb0C}{#2}}\n" "\\newcommand{\\ogonek}[1]{\\mathpalette\\doogonek{#1}}\n"); +static docstring const lyxref_def = from_ascii( + "\\makeatletter\n" + "\\RS@ifundefined{\thmref}\n" + " {\\def\\RSthmtxt{theorem~}\\newref{thm}{name = \\RSthmtxt}}\n" + " {}\n" + "\\makeatother\n"); + + ///////////////////////////////////////////////////////////////////// // // LaTeXFeatures @@ -902,10 +910,13 @@ docstring const LaTeXFeatures::getMacros() const // floats getFloatDefinitions(macros); + if (mustProvide("refstyle")) + macros << lyxref_def << '\n'; + // change tracking if (mustProvide("ct-dvipost")) macros << changetracking_dvipost_def; - + if (mustProvide("ct-xcolor-ulem")) { int const prec = macros.precision(2);