From 5924208bbb2a9c690b68cdb3805657930deaa357 Mon Sep 17 00:00:00 2001 From: Edward Longman <el7g15@soton.ac.uk> Date: Wed, 20 Mar 2019 13:05:11 +0000 Subject: [PATCH] Change the Appendix TOC entries and References and Bibliography The TOC entries for appendicies are now Appendix A, Appendix B etc. The references should be in a references section and other things should go in the bibliography. The difference is nuanced but bibliography items are not usually referenced in the text and are more general places of interest or broad sources information of use. --- source/latex/uosdocs/uosdocs.dtx | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/source/latex/uosdocs/uosdocs.dtx b/source/latex/uosdocs/uosdocs.dtx index 7399bf7..0ff9f17 100644 --- a/source/latex/uosdocs/uosdocs.dtx +++ b/source/latex/uosdocs/uosdocs.dtx @@ -1393,9 +1393,12 @@ Data: Author (Year) Title. URI [dataset]} % \begin{macro}{\frontmatter} % \begin{macro}{\mainmatter} % \begin{macro}{\backmatter} +% \begin{macro}{\appendix} % % Define \texttt{frontmatter},\texttt{mainmatter},\texttt{backmatter} for the article class -% and rename the bibliography to something that makes more sense. +% and rename the bibliography to something that makes more sense. For other classes make the +% Appendix entry in the table of contents better and rename the references in a slightly +% different way. % % \begin{macrocode} %<*article> @@ -1404,10 +1407,25 @@ Data: Author (Year) Title. URI [dataset]} \newcommand\bibname{References} \newcommand\backmatter{} %</article> +%<*thesis|minithesis|progress|project|report|gdp> +\renewcommand\bibname{References} +\let\oldappendix\appendix % Put full appendix name in ToC +\renewcommand{\appendix}{% + \oldappendix + \let\oldacl@pp=\addcontentsline + \def\addcontentsline##1##2##3{\oldacl@pp{##1}{##2}{\appendixname\space ##3}} +} +\let\oldbackmatter\backmatter +\def\backmatter{% + \oldbackmatter + \let\addcontentsline=\oldacl@pp + } +%</thesis|minithesis|progress|project|report|gdp> % \end{macrocode} % \end{macro} % \end{macro} % \end{macro} +% \end{macro} % % \begin{macrocode} %</thesis|minithesis|progress|project|report|article|gdp|gdpsummary> @@ -1555,11 +1573,11 @@ say not much at all %<*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} \bibliography{UOS} %<*testthesis|testminithesis|testprogress> +\chapter{Bibliography} +To use bibliography as well as the references section use the \texttt{multibbl} package. \chapter{Index [if relevant]} %</testthesis|testminithesis|testprogress> %</testthesis|testminithesis|testprogress|testproject|testreport|testgdp> -- GitLab