From: Richard Heck Date: Mon, 8 Nov 2010 17:52:43 +0000 (+0000) Subject: Refstyle doesn't (yet) provide a default "subsection" reference. Nor, X-Git-Tag: 2.0.0~1913 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1b46ff6989bb8d6db1edcafce385aef272d1dc04;p=features.git Refstyle doesn't (yet) provide a default "subsection" reference. Nor, actually, does prettyref, but we should do something here. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@36212 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/LaTeXFeatures.cpp b/src/LaTeXFeatures.cpp index 94745c344f..a3e5ef1b9f 100644 --- a/src/LaTeXFeatures.cpp +++ b/src/LaTeXFeatures.cpp @@ -257,6 +257,9 @@ static docstring const ogonek_def = from_ascii( "\\newcommand{\\ogonek}[1]{\\mathpalette\\doogonek{#1}}\n"); static docstring const lyxref_def = from_ascii( + "\\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"