Beruflich Dokumente
Kultur Dokumente
The current
page could have changed in the meantime. Learn more
These search terms are highlighted: fancy header latex Text-only version
Introduction
Basic Structure
Preamble
Custom Title Page
Custom Abstract and Acknowldegement Pages
Main Chapters
Bibliography
Appendices
Introduction
In this document, I intend to collect useful information for writing a thesis or final project report using LATEX.
Basic Structure
The first slide containes only the following codes. All configurations are in Preamble.tex. In addition, three forepart files, Titlepage, Abstract, and
Acknowledge, are used. You may combine these three files into a single file..
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Ki-Joo's Dissertation
% o Civil and Environmental Engineering
% o Carnegie Mellon University
% o Last Modified: June 6, 2001
% o Most of the formats are created by Ki-Joo Kim
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\input{Preamble}
\begin{document}
\include{Titlepage}
\include{Abstract}
\include{Acknowledge}
\include{Chap1}
......
\include{Chap8}
\end{document}
Preamble
Birefly, I'm using a two-sided book style with fancyhdr and natbib packages.
Fancyhdr prints Chapter Title on even pages and Section Title on odd pages.
Natbib is one of the most flexible citation package. \citet{kim99} compiles as Kim (1999) while \citep{kim99}compiles as (Kim, 1999) (For more
information, see Ki-Joo's another document, bibtex_guide.pdf).
To print bibliography at the end of each chapter, chapterbib is required. However, the option, sectionbib, should be added to natbib.
Instead of using draftcopy package, I copied a smll TeX code for printing a 'Draft Version' water mark on the left upper corner of the paper.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Abstracts %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{roman} \setcounter{page}{1}
\chapter*{Abstract\markboth{Abstract}{Abstract}}
% Mark 'Abstract' both even and odd markers
Your abstract goes here.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Acknowledgements %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\chapter*{Acknowledgements\markboth{Acknowledgements}{Acknowledgements}}
Your acknowledgement goes here...
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Contents and Lists %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage
\renewcommand{\contentsname}{Table of Contents} % Original name = Contents
\begin{spacing}{1.2} % Environment for 1.2 line spacing for contents and lists
\tableofcontents%
\listoffigures%
\listoftables%
\cleardoublepage
\end{spacing}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Arabic numbering after this %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pagenumbering{arabic} \setcounter{page}{1}
Main Chapters
If the chapter title is too long, you can use short title for the entry to the Table of Contents and Chapter hearder marker. See the following example. The title in [ ...] is a
short title. You can also put footnote at the chpater and section titles using
\protect\footnote{ }.
Bibliography
The bibliography can be added at the end of each chapter as follows:
\newpage
\begin{spacing}{1.0}
\bibliographystyle{apalike} % *.bst files
\addcontentsline{toc}{section}{Bibliography}
\bibliography{KJBiB,BatchReview} % *.bib Files
\end{spacing}
The package setspace changes a single-space mode, and apalike.bst file is used here. To add the name 'Bibliography' in the Table of Contents, you need
\addcontensline{where}{type}{entry name}. Citation information is extracted from two *.bib files as shown here. If you want to make your own bst file,
please read Ki-Joo's bibtex_guide.pdf.
Appendices
Misc.
How to Compile
Because the preamble file shown above uses the chapterbib package, a special compilation procedure is needed. In other words, each chapter now has to produce a
bib-information file (*.bbl) which is imported to the final one big PS file.
latex dissertation
bibtex chap1
bibtex chap2
....
bibtex chap99
latex dissertation (and more)