Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
University of Southampton Thesis Template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UoS LaTeX Group
University of Southampton Thesis Template
Commits
d6350c0c
Commit
d6350c0c
authored
6 years ago
by
Edward Longman
Browse files
Options
Downloads
Patches
Plain Diff
Genericise the template names and sections
Clean up the not needed redefinitions as well
parent
6147117a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/latex/uosdocs/uosdocs.dtx
+31
-42
31 additions, 42 deletions
source/latex/uosdocs/uosdocs.dtx
with
31 additions
and
42 deletions
source/latex/uosdocs/uosdocs.dtx
+
31
−
42
View file @
d6350c0c
...
@@ -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. Gun
n} % Use of Soton Email unadvised, use ORCiD instead.
\authors {
Insert name, for example, Sarah Alison Watso
n} % 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. Gun
n}}
{\href{mailto:S.
A.Watson@
soton.ac.uk}{
Name and email, for example, Sarah Alison Watso
n}}
{
Steve R. Gun
n}
{
Name and email, for example, Sarah Alison Watso
n}
}
}
%</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>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment