X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Ftemplates%2Fthesis%2FAppendix.lyx;h=1425b8a606c52394024303c3010e735900faaaae;hb=907c26ec0b627497b6e02b20843fe0c051ccd1c4;hp=6016557c3348cc7decbbdc17a6d828f5a9ec3a81;hpb=613feeae86b7aadc5db8d76adc44489c8df47872;p=lyx.git diff --git a/lib/templates/thesis/Appendix.lyx b/lib/templates/thesis/Appendix.lyx index 6016557c33..1425b8a606 100644 --- a/lib/templates/thesis/Appendix.lyx +++ b/lib/templates/thesis/Appendix.lyx @@ -5,8 +5,12 @@ \textclass scrbook \begin_preamble % increases link area for cross-references and autoname them -\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}} -\addto\extrasenglish{% +% if you change the document language to e.g. French +% you must change "extrasenglish" to "extrasfrench" +\AtBeginDocument{% + \renewcommand{\ref}[1]{\mbox{\autoref{#1}}} +} +\def\refnamechanges{% \renewcommand*{\equationautorefname}[1]{} \renewcommand{\sectionautorefname}{sec.\negthinspace} \renewcommand{\subsectionautorefname}{sec.\negthinspace} @@ -14,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})} @@ -32,6 +37,8 @@ \mainmatter } % makes caption labels bold +% for more info about these settings, see +% http://mirrors.ctan.org/macros/latex/contrib/koma-script/doc/scrguien.pdf \setkomafont{captionlabel}{\bfseries} \setcapindent{1em} @@ -39,6 +46,8 @@ \usepackage{calc} % fancy page header/footer settings +% for more information see section 9 of +% ftp://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/fancyhdr/fancyhdr.pdf \renewcommand{\chaptermark}[1]{\markboth{#1}{#1}} \renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}