Now that I have sorted my front page out with the help of all the kind people in the forum, I'd like to get onto the next problem.
I wish to include an index, glossary, reference section and bibliography in my document. How do I go about doing this? I have the glossary working, but not the index. I have the reference section working, but if I try to also add a bibliography, my reference section turns into the bibliography. The reference section off course should only include cited references while the bibliography should include everything in my BibTex file.
Below is my MWE:
Code: Select all
\documentclass[a4paper,12pt]{report}
\usepackage[cleanlook, english]{isodate} % for formatting the date of \today
\usepackage{natbib} % Use the natbib bibliography and citation package
\usepackage{xcolor} % Driver-independent color extensions for LaTeX and pdfLaTeX.
\usepackage{hyperref}
\usepackage{appendix}
\usepackage{makeidx}
\makeindex
\usepackage[style=altlist]{glossary}
\makeglossary
\begin{document}
\begin{titlepage}
\centering
\vspace*{11\baselineskip}
\large
\bfseries
Big Title\\
\normalfont
\small
Sub Title\\
\vfill
My Name\\
(student number)\\[2\baselineskip]
\textbf{\today}\\[2\baselineskip]
Word Count: {\color{red}\input{wordcount2.tex}}\\
\end{titlepage}
\setcounter{page}{1}
\renewcommand{\thepage}{\roman{page}}
\newpage
\addcontentsline{toc}{chapter}{Preface}
\subsection*{Preface}
Thanks to this one, that one, and the other one.\\
\tableofcontents
\listoftables
\listoffigures
\newpage
\begin{abstract}
An abstract
\end{abstract}
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
\chapter{One}
The\index{the} quick\index{quick} brown\index{brown} fox\index{fox} \cite{Gamma2007}.
\chapter{Two}
The quick brown fox. SOC is explained in the glossary.\glossary{name={SOC}, description={Service Oriented Computing, also known as SOA or Service Oriented Architecture, focuses on the development and integration of systems to provide business processes. The systems are packaged as interoperable services}}.
%index
\newpage
\printindex
%glossary
\newpage
\addcontentsline{toc}{chapter}{Glossary}
\printglossary
%appendices
\appendix
\appendixpage
\addappheadtotoc
\chapter{one}
The quick brown fox.
\chapter{two}
The quick brown fox.
%References
\newpage
\addcontentsline{toc}{chapter}{References}
\bibliography{M801_References}
\bibliographystyle{dcu}
\end{document}
Code: Select all
1 #!/bin/sh
2 rm *.bbl
3 rm $1.pdf
4 rm *.aux
5 rm *.glo
6 rm *.glg
7 rm *.ist
8 rm *.blg
9 rm *.gls
10 rm *.toc
11 rm *.log
12 rm wordcount.tex
13 ./texcount_2_1.pl -1 Introduction.tex Aim.tex Contribution.tex BodyOfKnowledge.tex RESTful_POG.tex > wordcount.tex
14 cat wordcount.tex |sed 's/\([0-9]*\)+.*/\1/' > wordcount2.tex
15 pdflatex -interaction=scrollmode --src-specials $1.tex
16 bibtex $1
17 pdflatex -interaction=scrollmode --src-specials $1.tex
18 makeindex -s $1.ist -t $1.glg -o $1.gls $1.glo
19 pdflatex -interaction=scrollmode --src-specials $1.tex
The next few lines, I have to admit, I only have a very basic understanding of. When I started with LaTex, I was trying to use MikTex and TeXlipse and a few other things, but at best these environments were unstable so I settled on the way I work now, which works every time. (Plus the main advantage is that when my legal paid for M$ decides to go blue screen of death for a few weeks, my free pendrive installation of Puppy Linux still works perfectly

Well, I hope that is enough information. If I have left anything out, please just ask.
Thank you very much in advance for any help
Kind Regards
Jannetta