Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
uos-latex-template
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
sl2v17
uos-latex-template
Commits
aabb0808
Commit
aabb0808
authored
6 years ago
by
Edward Longman
Browse files
Options
Downloads
Patches
Plain Diff
Fix bugs in template with numbering title and ToC colouring
parent
5dcd56e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ecsdocs.dtx
+43
-26
43 additions, 26 deletions
ecsdocs.dtx
with
43 additions
and
26 deletions
ecsdocs.dtx
+
43
−
26
View file @
aabb0808
...
@@ -8,13 +8,14 @@
...
@@ -8,13 +8,14 @@
% class files ecsthesis.cls, ecsminithesis.cls, ecsprogress.cls, ecsproject.cls, ecsreport.cls, ecsgdp.cls, ecsgdpsummary.cls and ecsarticle.cls.
% class files ecsthesis.cls, ecsminithesis.cls, ecsprogress.cls, ecsproject.cls, ecsreport.cls, ecsgdp.cls, ecsgdpsummary.cls and ecsarticle.cls.
% \fi
% \fi
%
%
% \CheckSum{1773}
% \CheckSum{1871}
%
%
% \iffalse
% \iffalse
% Copyright (C) 2001 by Steve R. Gunn
% Copyright (C) 2001 by Steve R. Gunn
% Later Modifications 2018 by Edward Longman
% Later Modifications 2018 by Edward Longman
% \begin{macrocode}
% \begin{macrocode}
%<thesis|minithesis|progress|project|article|report|gdp|gdpsummary>\NeedsTeXFormat{LaTeX2e}[
1996/12/01
]
%<thesis|minithesis|progress|project|article|report|gdp|gdpsummary>\NeedsTeXFormat{LaTeX2e}[
2007/02/26
]
% \end{macrocode}
% \end{macrocode}
%
%
% Announce the document class and its version.
% Announce the document class and its version.
...
@@ -79,7 +80,12 @@
...
@@ -79,7 +80,12 @@
% Of Southampton.
% Of Southampton.
%
%
% The basic settings for University, Faculty and School can be changed near
% The basic settings for University, Faculty and School can be changed near
% line 550 of the generator .dtx file.
% line 600 of the generator .dtx file.
%
% If a user only wishes to change the file for their thesis it is probably
% easier to navigate to the class file labeled ecsthesis and change the
% department and faculty naming there. This will be located in the
% subdirectory where you unzipped the files under tex/latex/ecsdocs/
%
%
% TODO: Check the line number.
% TODO: Check the line number.
% \section{Description}
% \section{Description}
...
@@ -129,6 +135,8 @@
...
@@ -129,6 +135,8 @@
%
%
% \section{Implementation}
% \section{Implementation}
%
%
% The checksum is to determine if there has been a truncation in the file during transmission over a network
%
% All options are passed on to the \texttt{book} or \texttt{article} class.
% All options are passed on to the \texttt{book} or \texttt{article} class.
%
%
% \begin{macrocode}
% \begin{macrocode}
...
@@ -137,6 +145,10 @@
...
@@ -137,6 +145,10 @@
%
%
% \begin{macro}{\baseclass}
% \begin{macro}{\baseclass}
% \begin{macrocode}
% \begin{macrocode}
%% ------------ Class/Formating Adjustment ----------------------
%% Adjust the book class to match the requirements
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
%<*thesis|minithesis|progress|project|report|gdp|gdpsummary>
%<*thesis|minithesis|progress|project|report|gdp|gdpsummary>
\def\baseclass{book}
\def\baseclass{book}
%</thesis|minithesis|progress|project|report|gdp|gdpsummary>
%</thesis|minithesis|progress|project|report|gdp|gdpsummary>
...
@@ -347,6 +359,8 @@
...
@@ -347,6 +359,8 @@
% setup the theorem environments.
% setup the theorem environments.
%
%
% \begin{macrocode}
% \begin{macrocode}
%% -------------------- Figure/Table/Eq/Listing Stying --------------------
%% Set the styling for non text elements of the document
\usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
\usepackage{amsmath,amsfonts,amssymb,amscd,amsthm,xspace}
\theoremstyle{plain}
\theoremstyle{plain}
%<*thesis|minithesis|progress|project|report|gdp>
%<*thesis|minithesis|progress|project|report|gdp>
...
@@ -521,6 +535,9 @@
...
@@ -521,6 +535,9 @@
% style for other parts of the University.
% style for other parts of the University.
%
%
% \begin{macrocode}
% \begin{macrocode}
%% --------------------- Organisational Structure ----------------------
%% This should be changed in the ecsdocs.dtx file and then all the files
%% should be recompilled with the new details.
\newcommand*{\supervisor}[1]{\def\supname{#1}}
\newcommand*{\supervisor}[1]{\def\supname{#1}}
\newcommand*{\examiner}[1]{\def\examname{#1}}
\newcommand*{\examiner}[1]{\def\examname{#1}}
\newcommand*{\degree}[1]{\def\degreename{#1}}
\newcommand*{\degree}[1]{\def\degreename{#1}}
...
@@ -574,6 +591,9 @@
...
@@ -574,6 +591,9 @@
% to defaults appropriate to the Department of Electronics and Computer Science.
% to defaults appropriate to the Department of Electronics and Computer Science.
%
%
% \begin{macrocode}
% \begin{macrocode}
%% --------------------- Organisational Structure ----------------------
%% This should be changed in the ecsdocs.dtx file and then all the files
%% should be recompilled with the new details. TODO: Fix capitalisation of URL
\supervisor {}
\supervisor {}
\examiner {}
\examiner {}
\degree {}
\degree {}
...
@@ -581,27 +601,19 @@
...
@@ -581,27 +601,19 @@
\university {\texorpdfstring{\href{http://www.soton.ac.uk}
\university {\texorpdfstring{\href{http://www.soton.ac.uk}
{University of Southampton}}
{University of Southampton}}
{University of Southampton}}
{University of Southampton}}
\UNIVERSITY {\texorpdfstring{\href{http://www.soton.ac.uk}
\UNIVERSITY {\MakeUppercase{\univname}}
{UNIVERSITY OF SOUTHAMPTON}}
{UNIVERSITY OF SOUTHAMPTON}}
\department {\texorpdfstring{\href{http://www.ecs.soton.ac.uk}
\department {\texorpdfstring{\href{http://www.ecs.soton.ac.uk}
{School of Electronics and Computer Science}}
{School of Electronics and Computer Science}}
{School of Electronics and Computer Science}}
{School of Electronics and Computer Science}}
\DEPARTMENT {\texorpdfstring{\href{http://www.ecs.soton.ac.uk}
\DEPARTMENT {\MakeUppercase{\deptname}}
{SCHOOL OF ELECTRONICS AND COMPUTER SCIENCE}}
\group {\texorpdfstring{\href{http://cps.ecs.soton.ac.uk}
{SCHOOL OF ELECTRONICS AND COMPUTER SCIENCE}}
{Cyber Physical Systems Group}}
\group {\texorpdfstring{\href{http://www.isis.ecs.soton.ac.uk}
{Cyber Physical Systems Group}}
{Image, Speech and Intelligent Systems Group}}
\GROUP {\MakeUppercase{\groupname}}
{Image, Speech and Intelligent Systems Group}}
\faculty {\texorpdfstring{\href{http://www.feps.soton.ac.uk}
\GROUP {\texorpdfstring{\href{http://www.isis.ecs.soton.ac.uk}
{Faculty of Engineering and Physical Science}}
{IMAGE, SPEECH AND INTELLIGENT SYSTEMS GROUP}}
{Faculty of Engineering and Physical Science}}
{IMAGE, SPEECH AND INTELLIGENT SYSTEMS GROUP}}
\FACULTY {\MakeUppercase{\facname}}
\faculty {\texorpdfstring{\href{http://www.engineering.soton.ac.uk}
{Faculty of Engineering, Science and Mathematics}}
{Faculty of Engineering, Science and Mathematics}}
\FACULTY {\texorpdfstring{\href{http://www.engineering.soton.ac.uk}
{FACULTY OF ENGINEERING, SCIENCE AND MATHEMATICS}}
{FACULTY OF ENGINEERING, SCIENCE AND MATHEMATICS}}
\addresses {}
\addresses {}
\subject {}
\subject {}
\keywords {}
\keywords {}
...
@@ -631,6 +643,10 @@
...
@@ -631,6 +643,10 @@
% Setup an appropriate title page and pdf strings if we are using
% Setup an appropriate title page and pdf strings if we are using
% pdf\LaTeX.
% pdf\LaTeX.
%
%
% The %\global\let\@title\@empty has been removed
%
% Possibly the relax statement also needs to be removed
%
% \begin{macrocode}
% \begin{macrocode}
%<*thesis|minithesis|progress|project|report|gdp|gdpsummary>}
%<*thesis|minithesis|progress|project|report|gdp|gdpsummary>}
\renewcommand\maketitle{
\renewcommand\maketitle{
...
@@ -728,7 +744,6 @@
...
@@ -728,7 +744,6 @@
\global\let\@thanks\@empty
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\title\relax
\global\let\author\relax
\global\let\author\relax
\global\let\date\relax
\global\let\date\relax
...
@@ -786,7 +801,6 @@
...
@@ -786,7 +801,6 @@
\global\let\@thanks\@empty
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\title\relax
\global\let\author\relax
\global\let\author\relax
\global\let\date\relax
\global\let\date\relax
...
@@ -832,7 +846,6 @@
...
@@ -832,7 +846,6 @@
\global\let\@thanks\@empty
\global\let\@thanks\@empty
\global\let\@author\@empty
\global\let\@author\@empty
\global\let\@date\@empty
\global\let\@date\@empty
\global\let\@title\@empty
\global\let\title\relax
\global\let\title\relax
\global\let\author\relax
\global\let\author\relax
\global\let\date\relax
\global\let\date\relax
...
@@ -1007,6 +1020,7 @@
...
@@ -1007,6 +1020,7 @@
%
%
% \begin{macrocode}
% \begin{macrocode}
\renewcommand\tableofcontents{
\renewcommand\tableofcontents{
\hypersetup{linkcolor={black}}
\btypeout{Table of Contents}
\btypeout{Table of Contents}
\begin{spacing}{1}{
\begin{spacing}{1}{
\setlength{\parskip}{1pt}
\setlength{\parskip}{1pt}
...
@@ -1144,8 +1158,12 @@
...
@@ -1144,8 +1158,12 @@
%
%
% This Authorship macro takes one argument for the case of People
% This Authorship macro takes one argument for the case of People
% who have published part of their thesis already (perhaps in a paper).
% who have published part of their thesis already (perhaps in a paper).
%
% xifthen else package used for the ifempty command
%
% \begin{macrocode}
% \begin{macrocode}
%<*thesis|minithesis|progress|report|article>
%<*thesis|minithesis|progress|report|article>
\usepackage{xifthen}
\newcommand\authorshipdeclaration[1]{
\newcommand\authorshipdeclaration[1]{
\btypeout{Declaration of Authorship}
\btypeout{Declaration of Authorship}
\addtotoc{Declaration of Authorship}
\addtotoc{Declaration of Authorship}
...
@@ -1380,13 +1398,12 @@ Author (Year of Submission) "Full thesis title", University of Southampton, name
...
@@ -1380,13 +1398,12 @@ Author (Year of Submission) "Full thesis title", University of Southampton, name
\input{Definitions} % Include your abbreviations
\input{Definitions} % Include your abbreviations
%% ----------------------------------------------------------------
%% ----------------------------------------------------------------
\begin{document}
\begin{document}
\frontmatter
%<*testthesis>
%<*testthesis>
%% TODO: Check that the page numbering isn't destroyed
%% TODO: Check that the page numbering isn't destroyed
\pagenumbering{gobble} % removes page number
\pagenumbering{gobble} % removes page number
\copyrightDeclaration{} % !!! Comment this line when printing the hardcopy !!!
\copyrightDeclaration{} % !!! Comment this line when printing the hardcopy !!!
\pagenumbering{arabic} % restores page number
%</testthesis>
%</testthesis>
\frontmatter
\title {An Investigation into \dots}
\title {An Investigation into \dots}
\authors {\texorpdfstring
\authors {\texorpdfstring
{\href{mailto:S.R.Gunn@ecs.soton.ac.uk}{Steve R. Gunn}}
{\href{mailto:S.R.Gunn@ecs.soton.ac.uk}{Steve R. Gunn}}
...
...
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