lyx_mirror/lib/templates/thesis/thesis.lyx
Uwe Stöhr 4bdd8fef50 LyX definitly needs a thesis template.
This template is meant as starting point and thus only contains the basics.
It is highly customizable and demonstrates shows how to handle subdocuments, header settings, different BibTeX-entries and nomenclature

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33724 a592a061-630c-0410-9148-cb99ea01b6c8
2010-03-12 03:03:30 +00:00

739 lines
10 KiB
Plaintext

#LyX 1.6.6svn created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass scrbook
\begin_preamble
% print no date
\date{}
% increase link area for cross-references and autoname them
\AtBeginDocument{\renewcommand{\ref}[1]{\mbox{\autoref{#1}}}}
\newlength{\abc}
\settowidth{\abc}{\space}
\addto\extrasenglish{
\renewcommand{\equationautorefname}{\hspace{-\abc}}
\renewcommand{\sectionautorefname}{sec.\negthinspace}
\renewcommand{\subsectionautorefname}{sec.\negthinspace}
\renewcommand{\subsubsectionautorefname}{sec.\negthinspace}
\renewcommand{\figureautorefname}{Fig.\negthinspace}
\renewcommand{\tableautorefname}{Tab.\negthinspace}
}
% in case somebody want to have the label "equation"
%\renewcommand{\eqref}[1]{equation~(\negthinspace\autoref{#1})}
% that links to image floats jumps to the beginning
% of the float and not to its caption
\usepackage[figure]{hypcap}
% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% make caption labels bold
\setkomafont{captionlabel}{\bfseries}
\setcapindent{1em}
% enable calculations
\usepackage{calc}
% fancy page header/footer settings
\renewcommand{\chaptermark}[1]{\markboth{#1}{#1}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
%\lhead[\fancyplain{}{}]{\fancyplain{}{\rightmark}}
\rhead[\fancyplain{}{\leftmark}]{\fancyplain{}{}}
\lfoot[\thepage]{}
\rfoot[]{\thepage}
\cfoot{}
% increase the bottom float placement fraction
\renewcommand{\bottomfraction}{0.5}
% avoid that floats are placed above its sections
\let\mySection\section\renewcommand{\section}{\suppressfloats[t]\mySection}
% widen the space for the nomenclature entry labels
\renewcommand{\nomlabelwidth}{2.5cm}
\end_preamble
\options intoc,bibtotoc,idxtotoc,BCOR10mm,titlepage,tablecaptionabove,fleqn
\use_default_options true
\language english
\inputencoding auto
\font_roman lmodern
\font_sans lmss
\font_typewriter lmtt
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\float_placement h
\paperfontsize 12
\spacing single
\use_hyperref true
\pdf_bookmarks true
\pdf_bookmarksnumbered true
\pdf_bookmarksopen true
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder true
\pdf_colorlinks false
\pdf_backref false
\pdf_pdfusetitle true
\pdf_quoted_options "pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
\papersize a4paper
\use_geometry false
\use_amsmath 2
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\branch chapter-1
\selected 1
\color #ffaa00
\end_branch
\branch chapter-2
\selected 1
\color #55aaff
\end_branch
\branch Summary
\selected 1
\color #7f7f7f
\end_branch
\branch Acknowledgments
\selected 1
\color #ffff00
\end_branch
\secnumdepth 3
\tocdepth 2
\paragraph_separation skip
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 2
\paperpagestyle fancy
\tracking_changes false
\output_changes false
\author ""
\author ""
\end_header
\begin_body
\begin_layout Subject
Thesis to get the degree of a doctor of philosophy
\begin_inset Note Note
status open
\begin_layout Plain Layout
Use the official terms and title page layout instead of this one!
\end_layout
\end_inset
\end_layout
\begin_layout Title
Title of the thesis
\end_layout
\begin_layout Author
Your name
\end_layout
\begin_layout Date
Date
\end_layout
\begin_layout Publishers
\begin_inset Box Boxed
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
width "40col%"
special "none"
height "1in"
height_special "totalheight"
status open
\begin_layout Plain Layout
Replace this box e.
\begin_inset space \thinspace{}
\end_inset
g.
\begin_inset space ~
\end_inset
by the coat of arms of the university.
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
vspace{
\backslash
baselineskip}
\end_layout
\end_inset
\begin_inset Newline newline
\end_inset
Bla bla University Testburg
\begin_inset Newline newline
\end_inset
Faculty for leading edge science
\begin_inset Newline newline
\end_inset
Institute for nobel price winning research
\begin_inset VSpace -3cm
\end_inset
\end_layout
\begin_layout Lowertitleback
\series bold
Dean
\series default
\begin_inset VSpace smallskip
\end_inset
\begin_inset Newline newline
\end_inset
Prof.
Dr.
xxx yyy
\begin_inset VSpace bigskip
\end_inset
\begin_inset Newline newline
\end_inset
\series bold
Referees
\series default
\begin_inset VSpace smallskip
\end_inset
\begin_inset Newline newline
\end_inset
Prof.
Dr.
aaa bbb
\begin_inset VSpace smallskip
\end_inset
\begin_inset Newline newline
\end_inset
Prof.
Dr.
xxx yyy
\begin_inset VSpace bigskip
\end_inset
\begin_inset Newline newline
\end_inset
\series bold
Date of the graduation (optional)
\series default
\begin_inset VSpace smallskip
\end_inset
\begin_inset Newline newline
\end_inset
xx.yy.zzzz
\end_layout
\begin_layout Dedication
Dedication, cite from a famous person, or whatever you like (optional)
\end_layout
\begin_layout Standard
\begin_inset Newpage cleardoublepage
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
lhead[
\backslash
fancyplain{}{}]{
\backslash
fancyplain{}{
\backslash
rightmark}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
define a header line
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage cleardoublepage
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
pagestyle{plain}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
The summary should not have page headers.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Branch Summary
status open
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "Summary.lyx"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage cleardoublepage
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
pagestyle{fancy}
\end_layout
\end_inset
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
lhead[
\backslash
fancyplain{}{
\backslash
chaptername
\backslash
;
\backslash
thechapter}]{
\backslash
fancyplain{}{
\backslash
rightmark}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
Enable page headers and add the chapter to the header line.
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Branch chapter-1
status open
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chapter-1.lyx"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Branch chapter-2
status open
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "chapter-2.lyx"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage cleardoublepage
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
lhead[
\backslash
fancyplain{}{}]{
\backslash
fancyplain{}{Acknowledgments}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
print
\begin_inset Quotes eld
\end_inset
Acknowledgments
\begin_inset Quotes erd
\end_inset
in the left header line
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
rhead[
\backslash
fancyplain{}{Acknowledgments}]{
\backslash
fancyplain{}{}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
print
\begin_inset Quotes eld
\end_inset
Acknowledgments
\begin_inset Quotes erd
\end_inset
in the right header line
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Branch Acknowledgments
status open
\begin_layout Standard
\begin_inset CommandInset include
LatexCommand include
filename "Acknowledgements.lyx"
\end_inset
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage cleardoublepage
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
lhead[
\backslash
fancyplain{}{}]{
\backslash
fancyplain{}{
\backslash
rightmark}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
remove the chapter from the header line
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
rhead[
\backslash
fancyplain{}{
\backslash
leftmark}]{
\backslash
fancyplain{}{}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
restore the right header line
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset bibtex
LatexCommand bibtex
bibfiles "thesisExample"
options "alpha"
\end_inset
\end_layout
\begin_layout Standard
\begin_inset Newpage cleardoublepage
\end_inset
\end_layout
\begin_layout Standard
\begin_inset ERT
status collapsed
\begin_layout Plain Layout
\backslash
lhead[
\backslash
fancyplain{}{}]{
\backslash
fancyplain{}{Nomenclature}}
\end_layout
\begin_layout Plain Layout
\backslash
rhead[
\backslash
fancyplain{}{Nomenclature}]{
\backslash
fancyplain{}{}}
\end_layout
\end_inset
\begin_inset Note Note
status collapsed
\begin_layout Plain Layout
print
\begin_inset Quotes eld
\end_inset
Nomenclature
\begin_inset Quotes erd
\end_inset
in the header line
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\begin_inset CommandInset nomencl_print
LatexCommand printnomenclature
\end_inset
\end_layout
\end_body
\end_document