From 1b46ff6989bb8d6db1edcafce385aef272d1dc04 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 8 Nov 2010 17:52:43 +0000 Subject: [PATCH] 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 --- src/LaTeXFeatures.cpp | 3 +++ 1 file changed, 3 insertions(+) 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" -- 2.39.2