diff --git a/README.md b/README.md index c64d768ae00c306df41ea697f388eadcbe21ad4e..244b9c17c34df8f731c732a2bb2b8b2f965a64b7 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/doc/latex/ecsdocs/ecsdocs.pdf b/doc/latex/ecsdocs/ecsdocs.pdf index 0cd608be8a15d7c3b25d409f2622b23004acd5a1..fb6e2cc11a50c533ee4562c5a13764deedbe1040 100644 Binary files a/doc/latex/ecsdocs/ecsdocs.pdf and b/doc/latex/ecsdocs/ecsdocs.pdf differ diff --git a/source/latex/ecsdocs/ecsdocs.dtx b/source/latex/ecsdocs/ecsdocs.dtx index 81509819dbdfa3ae72698a2d18dbd7a74b2d7ac7..4967fc37b9ecc2e97f9b88d2ee9e513e9042c6c0 100644 --- a/source/latex/ecsdocs/ecsdocs.dtx +++ b/source/latex/ecsdocs/ecsdocs.dtx @@ -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 diff --git a/templates/latex/ecsdocs/Article.tex b/templates/latex/ecsdocs/Article.tex index d846ceb9402faefe18e171cc010f97d2e6aecc31..2e13ef4b51b4991239a34bc6a32b5402094dfe75 100644 --- a/templates/latex/ecsdocs/Article.tex +++ b/templates/latex/ecsdocs/Article.tex @@ -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 diff --git a/templates/latex/ecsdocs/GDP.tex b/templates/latex/ecsdocs/GDP.tex index f6b30a20327dcb974177e0d87b96fef19bbef5c9..b74d1e1c841d1d99ea68aaf781b633f646354f9f 100644 --- a/templates/latex/ecsdocs/GDP.tex +++ b/templates/latex/ecsdocs/GDP.tex @@ -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 diff --git a/templates/latex/ecsdocs/GDPSummary.tex b/templates/latex/ecsdocs/GDPSummary.tex index 89cd0ea467934ddceb93e837a61afa683680184f..8c9e947f5ecbb99aa75d02ff013f590d6f33f087 100644 --- a/templates/latex/ecsdocs/GDPSummary.tex +++ b/templates/latex/ecsdocs/GDPSummary.tex @@ -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 diff --git a/templates/latex/ecsdocs/MiniThesis.tex b/templates/latex/ecsdocs/MiniThesis.tex index ba9e954615a949d0289c51975d3ec0c0400d0289..e11c9eb3f6b24760ee04007bc18bfce3824e2bc4 100644 --- a/templates/latex/ecsdocs/MiniThesis.tex +++ b/templates/latex/ecsdocs/MiniThesis.tex @@ -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 diff --git a/templates/latex/ecsdocs/Progress.tex b/templates/latex/ecsdocs/Progress.tex index fb1ad253bbf75e2c432d9a15995dc05ab1dc8d64..3316b2509be59ecb197c9cb7142361862d7807d9 100644 --- a/templates/latex/ecsdocs/Progress.tex +++ b/templates/latex/ecsdocs/Progress.tex @@ -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 diff --git a/templates/latex/ecsdocs/Project.tex b/templates/latex/ecsdocs/Project.tex index dc8b1fc0e6348078f5629c65623f1a63cdb091be..4933cdfe8fa4ea2950478a023b4ef29d8f9834cc 100644 --- a/templates/latex/ecsdocs/Project.tex +++ b/templates/latex/ecsdocs/Project.tex @@ -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 diff --git a/templates/latex/ecsdocs/Report.tex b/templates/latex/ecsdocs/Report.tex index af2490f9c2054d6bb25740772dbf96e61997e39d..ef371d6468bd6d52833c165db3d27b654e472312 100644 --- a/templates/latex/ecsdocs/Report.tex +++ b/templates/latex/ecsdocs/Report.tex @@ -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 diff --git a/templates/latex/ecsdocs/Thesis.tex b/templates/latex/ecsdocs/Thesis.tex index f1280b559ab3617a8e14bd53a2f59f5e1e398e07..f88024eebd01fc5dd396681d27d5c5ae7b75b8b3 100644 --- a/templates/latex/ecsdocs/Thesis.tex +++ b/templates/latex/ecsdocs/Thesis.tex @@ -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 diff --git a/tex/latex/ecsdocs/ecsarticle.cls b/tex/latex/ecsdocs/ecsarticle.cls index 924593370cd894fff72e1b24d17b0b7d8229629b..1d6f2ab53dcf4b3768d7cc285d974e0f5380b482 100644 --- a/tex/latex/ecsdocs/ecsarticle.cls +++ b/tex/latex/ecsdocs/ecsarticle.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsgdp.cls b/tex/latex/ecsdocs/ecsgdp.cls index bc5311fc064d9b5b43e0dc13dc28daecc6038007..97736fe5c5b5d42f8e8aa20756ed8d79b95d3105 100644 --- a/tex/latex/ecsdocs/ecsgdp.cls +++ b/tex/latex/ecsdocs/ecsgdp.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsgdpsummary.cls b/tex/latex/ecsdocs/ecsgdpsummary.cls index ec532cd591da0c243f71f7722ca820b8d39f31c3..4471e4df5a55ca94252bd31bd119a39523edf013 100644 --- a/tex/latex/ecsdocs/ecsgdpsummary.cls +++ b/tex/latex/ecsdocs/ecsgdpsummary.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsminithesis.cls b/tex/latex/ecsdocs/ecsminithesis.cls index e97d159bcd76ad40f54f3147cdb642335619c057..db850ed5cfdcd0b8bfa678ac15baa61ca92db565 100644 --- a/tex/latex/ecsdocs/ecsminithesis.cls +++ b/tex/latex/ecsdocs/ecsminithesis.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsprogress.cls b/tex/latex/ecsdocs/ecsprogress.cls index f0aa9ce592d9814d6073c93c51aea024b47302f5..b4f38cd16911e1e20b1c85bb17da13106c7f79c4 100644 --- a/tex/latex/ecsdocs/ecsprogress.cls +++ b/tex/latex/ecsdocs/ecsprogress.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsproject.cls b/tex/latex/ecsdocs/ecsproject.cls index dd7ccd8ce85a9549645b524d332d332b65e6b437..0e3be33272c4ffe2dc24cfd04a3eba277c991503 100644 --- a/tex/latex/ecsdocs/ecsproject.cls +++ b/tex/latex/ecsdocs/ecsproject.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsreport.cls b/tex/latex/ecsdocs/ecsreport.cls index c8746c9975ec179bbd24a96bf0116babad1d2b22..b0dc7372c0cf92af15a2f036c7e23128ccc0df7a 100644 --- a/tex/latex/ecsdocs/ecsreport.cls +++ b/tex/latex/ecsdocs/ecsreport.cls @@ -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 diff --git a/tex/latex/ecsdocs/ecsthesis.cls b/tex/latex/ecsdocs/ecsthesis.cls index dce7675969c164d0b82975ee9520a9f11cdb8585..8851624d72db0e2afda56a8cce47067e2fb22f62 100644 --- a/tex/latex/ecsdocs/ecsthesis.cls +++ b/tex/latex/ecsdocs/ecsthesis.cls @@ -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}