Administrator approval is now required for registering new accounts. If you are registering a new account, and are external to the University, please ask the repository owner to contact ServiceLine to request your account be approved. Repository owners must include the newly registered email address, and specific repository in the request for approval.

Commit 2b0ca735 authored by Edward Longman's avatar Edward Longman
Browse files

Add soton colours as an option. Easy to change now. Link Source in README

parent aff3fcbd
......@@ -4,3 +4,5 @@ LaTeX Documents for the University of Southampton. Mainly for Thesis and project
This whole folder can be moved into the ~/texmf directory to begin using the class files.
Created with docstrip `.ins` and `.dtx` files in the source directory. See the Instructions manual for more info about usage and building.
The version hosted on https://git.soton.ac.uk/el7g15/uos-latex-template is kept up to date with the University of Southampton template. The version hosted on GitHub may diverge from that.
......@@ -134,6 +134,10 @@
%
% The checksum is to determine if there has been a truncation in the file during transmission over a network
%
% The class has a custom option to define what colours should be used for links.
% This option defines \texttt{sotonlinks} to use UoS palette colours.
% Colour Code taken from \texttt{http://edshare.soton.ac.uk/10481}
%
% All options are passed on to the \texttt{book} or \texttt{article} class.
%
% \begin{macrocode}
......@@ -156,6 +160,15 @@
% \end{macro}
%
% \begin{macrocode}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
% \end{macrocode}
%
......@@ -535,13 +548,9 @@
% Load the \texttt{hyperref} package to provide hyperlinks in pdf and dvi documents.
%
% \begin{macrocode}
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......@@ -1273,7 +1282,7 @@ I confirm that:
\vskip 60\p@
\begin{center}{\selectfont\huge
\textcolor{SotGray}{University~of~Southampton~Research~Repository}\par}
\textcolor{custGray}{University~of~Southampton~Research~Repository}\par}
\end{center}
\vspace{1cm}
......@@ -1425,28 +1434,28 @@ Data: Author (Year) Title. URI [dataset]}
%
% \begin{macrocode}
%<*testthesis>
\documentclass{ecsthesis} % Use the Thesis Style
\documentclass[sotonlinks]{ecsthesis} % Use the Thesis Style with custom link colour
%</testthesis>
%<*testminithesis>
\documentclass{ecsminithesis} % Use the minithesis Style
\documentclass[sotonlinks]{ecsminithesis} % Use the minithesis Style with custom link colour
%</testminithesis>
%<*testprogress>
\documentclass{ecsprogress} % Use the progress Style
\documentclass[sotonlinks]{ecsprogress} % Use the progress Style with custom link colour
%</testprogress>
%<*testproject>
\documentclass{ecsproject} % Use the Project Style
\documentclass[sotonlinks]{ecsproject} % Use the Project Style with custom link colour
%</testproject>
%<*testreport>
\documentclass{ecsreport} % Use the Report Style
\documentclass[sotonlinks]{ecsreport} % Use the Report Style with custom link colour
%</testreport>
%<*testarticle>
\documentclass{ecsarticle} % Use the Article Style
\documentclass[sotonlinks]{ecsarticle} % Use the Article Style with custom link colour
%</testarticle>
%<*testgdp>
\documentclass{ecsgdp} % Use the GDP Report Style
\documentclass[sotonlinks]{ecsgdp} % Use the GDP Report Style with custom link colour
%</testgdp>
%<*testgdpsummary>
\documentclass{ecsgdpsummary} % Use the GDP Summary Report Style
\documentclass[sotonlinks]{ecsgdpsummary} % Use the GDP Summary Report Style with custom link colour
%</testgdpsummary>
%<*testthesis|testminithesis|testprogress|testproject|testreport|testarticle|testgdp|testgdpsummary>
\graphicspath{{../Figures/}} % Location of your graphics files
......
......@@ -2,7 +2,7 @@
%% Article.tex
%% ----------------------------------------------------------------
\documentclass{ecsarticle} % Use the Article Style
\documentclass[sotonlinks]{ecsarticle} % Use the Article Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% GDP.tex
%% ----------------------------------------------------------------
\documentclass{ecsgdp} % Use the GDP Report Style
\documentclass[sotonlinks]{ecsgdp} % Use the GDP Report Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% GDPSummary.tex
%% ----------------------------------------------------------------
\documentclass{ecsgdpsummary} % Use the GDP Summary Report Style
\documentclass[sotonlinks]{ecsgdpsummary} % Use the GDP Summary Report Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% MiniThesis.tex
%% ----------------------------------------------------------------
\documentclass{ecsminithesis} % Use the minithesis Style
\documentclass[sotonlinks]{ecsminithesis} % Use the minithesis Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% Progress.tex
%% ----------------------------------------------------------------
\documentclass{ecsprogress} % Use the progress Style
\documentclass[sotonlinks]{ecsprogress} % Use the progress Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% Project.tex
%% ----------------------------------------------------------------
\documentclass{ecsproject} % Use the Project Style
\documentclass[sotonlinks]{ecsproject} % Use the Project Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% Report.tex
%% ----------------------------------------------------------------
\documentclass{ecsreport} % Use the Report Style
\documentclass[sotonlinks]{ecsreport} % Use the Report Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -2,7 +2,7 @@
%% Thesis.tex
%% ----------------------------------------------------------------
\documentclass{ecsthesis} % Use the Thesis Style
\documentclass[sotonlinks]{ecsthesis} % Use the Thesis Style with custom link colour
\graphicspath{{../Figures/}} % Location of your graphics files
\usepackage{natbib} % Use Natbib style for the refs.
\hypersetup{colorlinks=true} % Set to false for black/white printing
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{article}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -134,13 +143,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -134,13 +143,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -132,13 +141,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -134,13 +143,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -134,13 +143,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -134,13 +143,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -134,13 +143,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......
......@@ -20,6 +20,15 @@
%% Set spacing, line and paragraph options
%% Set LaTeX builder options (work break penalties etc.)
\def\baseclass{book}
\RequirePackage{xcolor}
\colorlet{linkBlue}{blue}
\colorlet{custGray}{gray}
\DeclareOption{sotonlinks}{
\definecolor{sotonMarineBlue}{RGB}{1,67,89} % Soton marine blue (P 7469C)
\definecolor{sotonGrey}{RGB}{153,153,166} % Soton grey (P 443C)
\colorlet{linkBlue}{sotonMarineBlue}
\colorlet{custGray}{sotonGrey}
}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{\baseclass}}
\def\@checkoptions#1#2{
\edef\@curroptions{\@ptionlist{\@currname.\@currext}}
......@@ -138,13 +147,9 @@
keywordstyle=\color{blue},
commentstyle=\color[rgb]{0.13,0.55,0.13}\em,
stringstyle=\color[rgb]{0.7,0,0} }
\usepackage{xcolor}
\definecolor{SotRed}{rgb}{0.67,0.07,0.06}
\definecolor{SotBlue}{rgb}{0,0.26,0.35}
\definecolor{SotGray}{rgb}{0.6,0.6,0.65}
\usepackage[pdfpagemode={UseOutlines},bookmarks=true,bookmarksopen=true,
bookmarksopenlevel=0,bookmarksnumbered=true,hypertexnames=false,
colorlinks,linkcolor={SotBlue},citecolor={SotBlue},urlcolor={SotBlue},
colorlinks,linkcolor={linkBlue},citecolor={linkBlue},urlcolor={linkBlue},
pdfstartview={FitV},unicode,breaklinks=true]{hyperref}
\pdfstringdefDisableCommands{
\let\\\space
......@@ -407,7 +412,7 @@ I confirm that:
\vskip 60\p@
\begin{center}{\selectfont\huge
\textcolor{SotGray}{University~of~Southampton~Research~Repository}\par}
\textcolor{custGray}{University~of~Southampton~Research~Repository}\par}
\end{center}
\vspace{1cm}
......
Markdown is supported
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