1) run latex on test_report (extension not needed)
2) run bibtex on test_report (extension not needed)
3) run latex on test_report two times - to get table of contents and citations right.
\Fredrik
documentclass[a4paper]{report}
% For UNIX workstations.
\usepackage[latin1]{inputenc}
% For Macintosh.
% \usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[swedish,english]{babel}
% För stora dokument kan
det vara bra att ha kapitlen i olika filer.
\includeonly{intro,conclusion} %
% More generous margins
\setlength{\textheight}{250mm}
\setlength{\textwidth}{140mm}
\setlength{\oddsidemargin}{10mm}
\setlength{\evensidemargin}{0mm}
\setlength{\topmargin}{-5mm}
\setlength{\headheight}{0mm}
\setlength{\headsep}{0mm}
\begin{document}
\title{{\Huge \bf Example Report }}
\author{Fredrik~Lingvall}
\maketitle
\pagenumbering{roman}
\setlength{\parskip}{1.5mm} % Fixar lite avstånd mellan paragrafer.
\begin{abstract}
English abstract\ldots
\end{abstract}
\selectlanguage{swedish}
\begin{abstract}
Svensk sammanfattning\ldots
\end{abstract}
\selectlanguage{english}
\setlength{\parskip}{0mm}
\tableofcontents
%\newpage
%\listoffigures
%\listoftables
%\newpage
\pagenumbering{arabic}
% TIPS !
% kommentera bort en eller flera
filer för att minska exekv. tid, dvs man TeXar
% endast ett kapitel åt
gången (om man inte har en snabb dator).
\include{intro}
\include{conclusion}
% \appendix
\newpage
\addcontentsline{toc}{chapter}{Bibliography} %
Lägg till i innehålls förteckningen.
\bibliographystyle{unsrt} %
eller plain
\bibliography{test_rapport} %
eller \nocite{*} som tar med alla i bib-filen.
\end{document}
\chapter{Introduction}
\section{Project Definition}
Its\ldots
\section{Some Citations}
Donald~Knuth~\cite{tex} has
made this wonderful typesetting system
and Leslie~Lamport the widely used macropackage \LaTeX~\cite{latex}.
\chapter{Conclusions}
\section{}
\subsection{}
%
% Document preparation books.
%
@book{tex,
author = {Donald E. Knuth},
title = {The \TeX book},
publisher = {Addison Wesley},
edition = {},
year = 1994
}
@book{latex,
author = {Leslie Lamport},
title = {\LaTeX\ A Document Preparation
System},
publisher = {Addison Wesley},
edition = {second},
year = 1994
}
@book{companion,
author = {Michel Gossens,
Frank Mittelbech and Alexander Samarin},
title = {The \LaTeX\
Companion},
publisher = {Addison Wesley},
year = 1994,
}