The branch, 2.0.x, has been updated. - Log -----------------------------------------------------------------
commit a832a8e8b2ae396ec9aaa1145db29b619690ad62 Author: Uwe Stöhr <[email protected]> Date: Sun Dec 2 19:37:05 2012 +0100 thesis.lyx: change preamble code as proposed by Jürgen no change of functionality except that for pure English documents the loading of babel can be avoided. diff --git a/lib/templates/thesis/thesis.lyx b/lib/templates/thesis/thesis.lyx index 82f26ac..506e75c 100644 --- a/lib/templates/thesis/thesis.lyx +++ b/lib/templates/thesis/thesis.lyx @@ -7,9 +7,10 @@ % increases link area for cross-references and autoname them % if you change the document language to e.g. French % you must change "extrasenglish" to "extrasfrench" -\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\@ifundefined{extrasenglish}{\usepackage[english]{babel}}{} -\addto\extrasenglish{% +\AtBeginDocument{% + \renewcommand{\ref}[1]{\mbox{\autoref{#1}}} +} +\def\refnamechanges{% \renewcommand*{\equationautorefname}[1]{} \renewcommand{\sectionautorefname}{sec.\negthinspace} \renewcommand{\subsectionautorefname}{sec.\negthinspace} @@ -17,6 +18,7 @@ \renewcommand{\figureautorefname}{Fig.\negthinspace} \renewcommand{\tableautorefname}{Tab.\negthinspace} } +\@ifpackageloaded{babel}{\addto\extrasenglish{\refnamechanges}}{\refnamechanges} % in case somebody want to have the label "Equation" %\renewcommand{\eqref}[1]{Equation~(\negthinspace\autoref{#1})} ----------------------------------------------------------------------- Summary of changes: lib/templates/thesis/thesis.lyx | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) hooks/post-receive -- The LyX Source Repository
