From c2228b698435032f04fdce4d5fe1c61b690a02fa Mon Sep 17 00:00:00 2001 From: Edward Longman <el7g15@soton.ac.uk> Date: Wed, 20 Mar 2019 13:10:29 +0000 Subject: [PATCH] Add the List of Additional Materials page option. This method is satisfactory but all of the custom pages should probably be moved to something like a tocloft implementation --- source/latex/uosdocs/uosdocs.dtx | 54 +++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/source/latex/uosdocs/uosdocs.dtx b/source/latex/uosdocs/uosdocs.dtx index d7ce54c..1a0c954 100644 --- a/source/latex/uosdocs/uosdocs.dtx +++ b/source/latex/uosdocs/uosdocs.dtx @@ -1052,6 +1052,8 @@ % \end{macro} % % \subsection{Contents Pages} +% Possibly all of these pages should be redone but using the tocloft package to reduce +% complexity in this style file. % % \subsubsection{Add to Table of Contents} % @@ -1180,7 +1182,7 @@ % \end{macrocode} % \end{macro} % -% \subsection{List of Symbols} +% \subsubsection{List of Symbols} % % \begin{macro}{\listsymbolname} % \begin{macro}{\listofsymbols} @@ -1217,6 +1219,52 @@ % \end{macro} % \end{macro} % +% \subsubsection{List of Additional Material} +% +% \begin{macro}{\addmaterialname} +% \begin{macro}{\listofaddmaterial} +% \begin{macro}{\addtolom} +% +% Provide a \texttt{listofaddmaterial} command to produce a list of additional material, +% the name can be changed with \verb|\addmaterialname{NewName}| +% +% Material can be added by using \verb|\addcontentsline{lom}{chapter}{Material Name}| +% +% \begin{macrocode} +\newcommand\addmaterialname{List of Additional Material} +\newcommand\listofaddmaterial{ +\addtotoc{\addmaterialname} +\begin{spacing}{1}{ + \setlength{\parskip}{1pt} + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi +%<*thesis|minithesis|progress|project|report|gdp> + \chapter*{\addmaterialname +%</thesis|minithesis|progress|project|report|gdp> +%<*article> + \section*{\addmaterialname +%</article> + \@mkboth{ + \MakeUppercase\addmaterialname}{\MakeUppercase\addmaterialname}} + \@starttoc{lom} + \if@restonecol\twocolumn\fi +%<*thesis|minithesis|progress|project|report|gdp> + \cleardoublepage +%</thesis|minithesis|progress|project|report|gdp> +}\end{spacing} +} +\newcommand\addtolom[1]{% +\addtocontents{lom}{\protect\contentsline{chapter}{\protect\numberline{}#1}{}{}} +} +% \end{macrocode} +% +% \end{macro} +% \end{macro} +% \end{macro} +% % \subsection{Declaration of Authorship} % \begin{macro}{\authorshipdeclaration} % Taken from Modified Template by Lovell \ref{references} @@ -1538,6 +1586,10 @@ There is no prescribed font, you should use a font appropriate to your disciplin %% The List of listings does not, by default, appear in the ToC, so.... \addtotoc{Listings} \lstlistoflistings +\listofaddmaterial +\addtolom{Material Name e.g Map} +\addtolom{Material Name e.g CD} +\addtolom{Test Material} %<*testthesis|testminithesis|testproject|testreport|testgdp> %% ---------- AUTHORSHIP DECLARATION/ ACKNOW. / DEDICATORY ---------- %% Either include citations like below (as many as required spaced with commas or 'and'). -- GitLab