Commit d6350c0c authored by Edward Longman's avatar Edward Longman
Browse files

Genericise the template names and sections

Clean up the not needed redefinitions as well
parent 6147117a
...@@ -1056,6 +1056,8 @@ ...@@ -1056,6 +1056,8 @@
% \subsubsection{Add to Table of Contents} % \subsubsection{Add to Table of Contents}
% %
% \begin{macro}{\addtotoc} % \begin{macro}{\addtotoc}
% Get a better list of contents package
%
% Ensures numbering for sub-subsections in the table of contents, and provide % Ensures numbering for sub-subsections in the table of contents, and provide
% for 6 levels to appear in toc. Define \texttt{addtotoc} to enable adding % for 6 levels to appear in toc. Define \texttt{addtotoc} to enable adding
% elements to the toc at chapter level, using a dummy counter to fix bookmarks % elements to the toc at chapter level, using a dummy counter to fix bookmarks
...@@ -1063,6 +1065,7 @@ ...@@ -1063,6 +1065,7 @@
% %
% \begin{macrocode} % \begin{macrocode}
%<*thesis|minithesis|progress|project|report|gdp|article> %<*thesis|minithesis|progress|project|report|gdp|article>
\usepackage[nottoc]{tocbibind} % Put the Lists, Glossary, Biblog and Idx in the contents
\addtocounter{secnumdepth}{1} \addtocounter{secnumdepth}{1}
\setcounter{tocdepth}{6} \setcounter{tocdepth}{6}
\newcounter{dummy} \newcounter{dummy}
...@@ -1388,52 +1391,23 @@ Data: Author (Year) Title. URI [dataset]} ...@@ -1388,52 +1391,23 @@ Data: Author (Year) Title. URI [dataset]}
% \section{Parts} % \section{Parts}
% %
% \begin{macro}{\frontmatter} % \begin{macro}{\frontmatter}
%
% Modify \texttt{frontmatter}.
%
% \begin{macrocode}
%<*article>
\newcommand\frontmatter{ }
%</article>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\mainmatter} % \begin{macro}{\mainmatter}
%
% Modify \texttt{mainmatter}.
%
% \begin{macrocode}
%<*article>
\newcommand\mainmatter{ }
%</article>
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{\backmatter} % \begin{macro}{\backmatter}
% %
% Modify \texttt{backmatter} to add the bibliography to the table of contents. % Define \texttt{frontmatter},\texttt{mainmatter},\texttt{backmatter} for the article class
% and rename the bibliography to something that makes more sense.
% %
% \begin{macrocode} % \begin{macrocode}
%<*thesis|minithesis|progress|project|report|gdp>
\renewcommand\backmatter{
\if@openright
\cleardoublepage
\else
\clearpage
\fi
\addtotoc{\bibname}
\btypeout{\bibname}
\@mainmatterfalse}
%</thesis|minithesis|progress|project|report|gdp>
%<*article> %<*article>
\newcommand\frontmatter{ }
\newcommand\mainmatter{ }
\newcommand\bibname{References} \newcommand\bibname{References}
\newcommand\backmatter{ \newcommand\backmatter{}
\addtotoc{\bibname}
\btypeout{\bibname}
}
%</article> %</article>
% \end{macrocode} % \end{macrocode}
% \end{macro} % \end{macro}
% \end{macro}
% \end{macro}
% %
% \begin{macrocode} % \begin{macrocode}
%</thesis|minithesis|progress|project|report|article|gdp|gdpsummary> %</thesis|minithesis|progress|project|report|article|gdp|gdpsummary>
...@@ -1478,14 +1452,20 @@ Data: Author (Year) Title. URI [dataset]} ...@@ -1478,14 +1452,20 @@ Data: Author (Year) Title. URI [dataset]}
\input{Definitions} % Include your abbreviations \input{Definitions} % Include your abbreviations
%% ---------------------------------------------------------------- %% ----------------------------------------------------------------
%% --------------------THESIS/DOC INFORMATION --------------------- %% --------------------THESIS/DOC INFORMATION ---------------------
\department {School of [Insert school]}
\DEPARTMENT {\MakeUppercase{\deptname}}
\group {[Group name]}
\GROUP {\MakeUppercase{\groupname}}
\faculty {Faculty of [Insert faculty]}
\FACULTY {\MakeUppercase{\facname}}
\title {An Investigation into \dots} \title {An Investigation into \dots}
%<*testthesis> %<*testthesis>
\authors {Steve R. Gunn} % Use of Soton Email unadvised, use ORCiD instead. \authors {Insert name, for example, Sarah Alison Watson} % Use of Soton Email unadvised, use ORCiD instead.
%</testthesis> %</testthesis>
%<*testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary> %<*testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary>
\authors {\texorpdfstring \authors {\texorpdfstring
{\href{mailto:S.R.Gunn@ecs.soton.ac.uk}{Steve R. Gunn}} {\href{mailto:S.A.Watson@soton.ac.uk}{Name and email, for example, Sarah Alison Watson}}
{Steve R. Gunn} {Name and email, for example, Sarah Alison Watson}
} }
%</testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary> %</testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary>
\addresses {\groupname\\\deptname\\\univname} \addresses {\groupname\\\deptname\\\univname}
...@@ -1530,7 +1510,7 @@ This work is all about \dots ...@@ -1530,7 +1510,7 @@ This work is all about \dots
\listoffigures \listoffigures
\listoftables \listoftables
%% The List of listings does not, by default, appear in the ToC, so.... %% The List of listings does not, by default, appear in the ToC, so....
\addtotoc{List of Listings} \addtotoc{Listings}
\lstlistoflistings \lstlistoflistings
%<*testthesis|testminithesis|testproject|testreport|testgdp> %<*testthesis|testminithesis|testproject|testreport|testgdp>
%% ---------- AUTHORSHIP DECLARATION/ ACKNOW. / DEDICATORY ---------- %% ---------- AUTHORSHIP DECLARATION/ ACKNOW. / DEDICATORY ----------
...@@ -1545,7 +1525,8 @@ This work is all about \dots ...@@ -1545,7 +1525,8 @@ This work is all about \dots
\dedicatory{To \dots} \dedicatory{To \dots}
%</testthesis|testminithesis|testproject|testreport|testgdp> %</testthesis|testminithesis|testproject|testreport|testgdp>
%%Lightweight Definitions and Abbreviations see package:nomencl for alternative %%Lightweight Definitions and Abbreviations see package:nomencl for alternative
\listofsymbols{ll}{$w$ & The weight vector} %% Include if relevant to discipline
\listofsymbols{ll}{$w$ & The weight vector\\$\S$ & If relevant to discipline}
%</testthesis|testminithesis|testprogress|testproject|testreport|testgdp> %</testthesis|testminithesis|testprogress|testproject|testreport|testgdp>
%</testthesis|testminithesis|testprogress|testproject|testreport|testarticle|testgdp> %</testthesis|testminithesis|testprogress|testproject|testreport|testarticle|testgdp>
%<*testthesis|testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary> %<*testthesis|testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary>
...@@ -1565,8 +1546,16 @@ say not much at all ...@@ -1565,8 +1546,16 @@ say not much at all
\appendix \appendix
\include{AppendixA} \include{AppendixA}
\backmatter \backmatter
%<*testthesis|testminithesis|testprogress>
\chapter{Glossary [if relevant]}
%</testthesis|testminithesis|testprogress>
\chapter{References}
To use list of references as well as the bibliography section use the \texttt{multibbl} package.
\bibliographystyle{uos} \bibliographystyle{uos}
\bibliography{UOS} \bibliography{UOS}
%<*testthesis|testminithesis|testprogress>
\chapter{Index [if relevant]}
%</testthesis|testminithesis|testprogress>
%</testthesis|testminithesis|testprogress|testproject|testreport|testgdp> %</testthesis|testminithesis|testprogress|testproject|testreport|testgdp>
%<*testgdpsummary> %<*testgdpsummary>
\section*{Introduction} \section*{Introduction}
...@@ -1646,9 +1635,9 @@ It works. ...@@ -1646,9 +1635,9 @@ It works.
%<*testarticle> %<*testarticle>
\acknowledgements{Thanks to no one.} \acknowledgements{Thanks to no one.}
\backmatter \backmatter
\appendix
\bibliographystyle{uos} \bibliographystyle{uos}
\bibliography{UOS} \bibliography{UOS}
\appendix
%</testarticle> %</testarticle>
%<*appendix|testarticle> %<*appendix|testarticle>
%<*appendix> %<*appendix>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment