]> git.lyx.org Git - features.git/commitdiff
thesis template: add check for babel (as discussed in bug #8423)
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 18 Nov 2012 14:54:13 +0000 (15:54 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 18 Nov 2012 14:54:13 +0000 (15:54 +0100)
lib/templates/thesis/Appendix.lyx
lib/templates/thesis/chapter-1.lyx
lib/templates/thesis/chapter-2.lyx
lib/templates/thesis/thesis.lyx

index 6016557c3348cc7decbbdc17a6d828f5a9ec3a81..7e535e097e09bacae331bc1de4196eb106e6d5d5 100644 (file)
@@ -5,7 +5,10 @@
 \textclass scrbook
 \begin_preamble
 % 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{%
  \renewcommand*{\equationautorefname}[1]{}
  \renewcommand{\sectionautorefname}{sec.\negthinspace}
index 52248f95b45152bf9a8e9f345428ed266fe98c46..5421e22c5a24d62da855f8e6d26676c782896606 100644 (file)
@@ -5,7 +5,10 @@
 \textclass scrbook
 \begin_preamble
 % 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{%
  \renewcommand*{\equationautorefname}[1]{}
  \renewcommand{\sectionautorefname}{sec.\negthinspace}
index b52f7146090a98d9c746e6ba6be2e6d1243ee227..c810a153b77bfa04df7ede05079545ce319563b9 100644 (file)
@@ -5,7 +5,10 @@
 \textclass scrbook
 \begin_preamble
 % 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{%
  \renewcommand*{\equationautorefname}[1]{}
  \renewcommand{\sectionautorefname}{sec.\negthinspace}
index 580f94e8a1cf073b9a492928621b5e284076cce9..82f26ac7990f3d990a2d3c6d9118cfd37f321b08 100644 (file)
@@ -5,7 +5,10 @@
 \textclass scrbook
 \begin_preamble
 % 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{%
  \renewcommand*{\equationautorefname}[1]{}
  \renewcommand{\sectionautorefname}{sec.\negthinspace}