]> git.lyx.org Git - lyx.git/commitdiff
thesis template: port recent changes to master
authorUwe Stöhr <uwestoehr@lyx.org>
Sun, 2 Dec 2012 19:58:28 +0000 (20:58 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Sun, 2 Dec 2012 19:58:28 +0000 (20:58 +0100)
lib/templates/thesis/Appendix.lyx
lib/templates/thesis/chapter-1.lyx
lib/templates/thesis/chapter-2.lyx
lib/templates/thesis/thesis.lyx

index 7e535e097e09bacae331bc1de4196eb106e6d5d5..1425b8a606c52394024303c3010e735900faaaae 100644 (file)
@@ -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})}
@@ -35,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}
 
@@ -42,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}}
 
index 5421e22c5a24d62da855f8e6d26676c782896606..323c22f96cab7181fb928004c75468060aeda672 100644 (file)
@@ -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})}
@@ -35,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}
 
@@ -42,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}}
 
index c810a153b77bfa04df7ede05079545ce319563b9..d681c28508a8e6b5547c04a1b8088c641753d4b9 100644 (file)
@@ -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})}
@@ -35,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}
 
@@ -42,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}}
 
index 82f26ac7990f3d990a2d3c6d9118cfd37f321b08..7a5fb55bea626afc83d1dcd8781136f716686b7a 100644 (file)
@@ -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})}
@@ -35,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}
 
@@ -42,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}}
 
@@ -155,11 +161,15 @@ status open
 \begin_layout Plain Layout
 
 \series bold
-Note:
-\series default
- when renaming this file, you must also rename it in all its subdocuments
- in the document settings under 
+Notes:
+\end_layout
+
+\begin_layout Itemize
+When renaming this file, you must also rename it in all its subdocuments
+ in the document settings in the menu 
 \family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
 Document
 \begin_inset space ~
 \end_inset
@@ -180,6 +190,29 @@ master
 document
 \end_layout
 
+\begin_layout Itemize
+For special settings like the header/footer lines or the font of captions,
+ see also the document preamble (menu 
+\family sans
+Document\SpecialChar \menuseparator
+Settings\SpecialChar \menuseparator
+LaTeX Preamble
+\family default
+).
+\end_layout
+
+\begin_layout Itemize
+If you change the document language you also need to check the document
+ preamble and replace there the English-specific setting.
+\end_layout
+
+\begin_layout Itemize
+This file is not designed to change the document class.
+ You can use it nevertheless as starting point if you have to use a special
+ docment class provided by your university, but no support can be granted
+ for this transition.
+\end_layout
+
 \end_inset
 
 
@@ -381,7 +414,97 @@ rightmark
 status collapsed
 
 \begin_layout Plain Layout
-defines the header line
+Defines the header line.
+ If your university does not have special rules what must be in the header/foote
+r, leave the settings as they are.
+\end_layout
+
+\begin_layout Plain Layout
+Quick explanation:
+\end_layout
+
+\begin_layout Itemize
+Stuff inside the 
+\family sans
+opt
+\family default
+ inset appears on even pages, stuff outside the 
+\family sans
+opt
+\family default
+ inset appears on uneven pages.
+\end_layout
+
+\begin_layout Itemize
+
+\series bold
+
+\backslash
+rightmark
+\series default
+ is stuff that usualy appears on the right side.
+ This is normally the title of the current chapter or section.
+\end_layout
+
+\begin_layout Itemize
+
+\series bold
+
+\backslash
+leftmark
+\series default
+ is the opposite of 
+\series bold
+
+\backslash
+rightmark
+\series default
+.
+\end_layout
+
+\begin_layout Itemize
+
+\series bold
+
+\backslash
+thepage
+\series default
+ prints the current page number, 
+\series bold
+
+\backslash
+thechapter
+\series default
+ the current chapter number, 
+\series bold
+
+\backslash
+thesection
+\series default
+ the current...
+\end_layout
+
+\begin_layout Itemize
+Further adjustments can be made in the LaTeX preamble of thios document
+ in the menu Document\SpecialChar \menuseparator
+Settings.
+ For a brief description how the header/footer lines can be modified, see
+ the manual of the LaTeX package 
+\series bold
+fancyhdr
+\series default
+: 
+\begin_inset Flex URL
+status collapsed
+
+\begin_layout Plain Layout
+
+ftp://www.ctan.org/pub/tex-archive/macros/latex2e/contrib/fancyhdr/fancyhdr.pdf
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \end_inset
@@ -503,7 +626,8 @@ pagestyle{plain}
 status collapsed
 
 \begin_layout Plain Layout
-The summary should not have page headers.
+Usually the summary should not have page headers.
+ If it should, remove this TeX code.
 \end_layout
 
 \end_inset
@@ -551,6 +675,16 @@ pagestyle{fancy}
 \end_inset
 
 
+\begin_inset Note Note
+status collapsed
+
+\begin_layout Plain Layout
+Reset page style to get page headers again.
+\end_layout
+
+\end_inset
+
+
 \end_layout
 
 \begin_layout Left Header