]> git.lyx.org Git - features.git/commitdiff
Refstyle doesn't (yet) provide a default "subsection" reference. Nor,
authorRichard Heck <rgheck@comcast.net>
Mon, 8 Nov 2010 17:52:43 +0000 (17:52 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 8 Nov 2010 17:52:43 +0000 (17:52 +0000)
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

index 94745c344f751e94ac9e862e81012215b43b6711..a3e5ef1b9f59707314f373cac19cee396dde5a59 100644 (file)
@@ -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"