PhD cover working again but messes with spacing and fonts

This commit is contained in:
2022-02-03 16:11:51 +00:00
parent 398c087ced
commit 41a5ec972e
2 changed files with 68 additions and 48 deletions

View File

@@ -37,6 +37,8 @@
} }
\begin{document} \begin{document}
% \printedcover{TITLE IN CAPS}{13-0000000}% {TITLE}{ISBN} Primarily for PhD
%% TODO: There may be an official cover graphic, need to investigate --foley
\maketitle{} \maketitle{}
\copyrightpage{} \copyrightpage{}
%\signaturepage{} %Generally only for Print copies %\signaturepage{} %Generally only for Print copies

View File

@@ -210,13 +210,17 @@
%% Note that you can leave off elements and it will use the last value set (or default??) %% Note that you can leave off elements and it will use the last value set (or default??)
% \def\myfont{\fontencoding{T1}\fontfamily{lm}\fontseries{m}\fontshape{n}\fontsize{14pt}{16pt}\selectfont} % \def\myfont{\fontencoding{T1}\fontfamily{lm}\fontseries{m}\fontshape{n}\fontsize{14pt}{16pt}\selectfont}
% \fontsize{SIZE}{BASELINESKIP} % \fontsize{SIZE}{BASELINESKIP}
\def\titletitlefont{\fontseries{b}\fontsize{17pt}{20pt}\selectfont} \def\titletitlefont{\fontseries{b}\fontsize{17pt}{20pt}\selectfont}
\def\titletextfont{\fontsize{14pt}{16pt}\selectfont} \def\titletextfont{\fontsize{14pt}{16pt}\selectfont}
\def\titleinfofont{\fontsize{12}{14}\selectfont} \def\titleinfofont{\fontsize{12}{14}\selectfont}
\def\sigtextfont{\fontsize{12pt}{14pt}\selectfont} \def\sigtextfont{\fontsize{12pt}{14pt}\selectfont}
\def\warningfont{\fontseries{b}\fontsize{24pt}{28pt}\selectfont} \def\warningfont{\fontseries{b}\fontsize{24pt}{28pt}\selectfont}
%% Outside PhD cover we hardcode for consistency
\def\covertitlefont{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\selectfont}
\def\covertextfont{\fontfamily{phv}\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\selectfont}
%%%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5 %%%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
%% Setting colors in text %% Setting colors in text
%% Usage: %% Usage:
@@ -406,7 +410,6 @@
%\newcommand{\draftnote}[1]{\ifdraft{{\color{gray}#1}}} %\newcommand{\draftnote}[1]{\ifdraft{{\color{gray}#1}}}
%%%%%%%%%%%%%%%%%%%% Addional Font Adjustments%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%%%%%%%%%%%%%%%%%%% Addional Font Adjustments%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% ruthesis sets up some reasonable fonts, but we may need further adjustments
%% Note that you can leave off elements and it will use the last value set (or default??) %% Note that you can leave off elements and it will use the last value set (or default??)
% \def\myfont{\fontencoding{T1}\fontfamily{lm}\fontseries{m}\fontshape{n}\fontsize{14pt}{16pt}\selectfont} % \def\myfont{\fontencoding{T1}\fontfamily{lm}\fontseries{m}\fontshape{n}\fontsize{14pt}{16pt}\selectfont}
% \fontsize{SIZE}{BASELINESKIP} % \fontsize{SIZE}{BASELINESKIP}
@@ -415,9 +418,6 @@
\RequirePackage{newtxtext} \RequirePackage{newtxtext}
\RequirePackage{newtxmath} \RequirePackage{newtxmath}
%% This is the special font used on the PhD cover
\def\phdcovertitlefont{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\selectfont}
\def\phdcovertitletext{\fontfamily{phv}\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\selectfont}
%% We need the paralist and dashrule package in order to format the signature pages %% We need the paralist and dashrule package in order to format the signature pages
\RequirePackage{paralist} \RequirePackage{paralist}
@@ -524,47 +524,68 @@
pagecentery:\printlength{\pagecentery}\\ pagecentery:\printlength{\pagecentery}\\
} }
%% ----- PRINTED FRONT COVER ---------------------------------------------------------- %% ----- PRINTED FRONT COVER (PHD) ----------------------------------------------------------
%% This cover will be on the outside (not with window) %% This cover will be on the outside (not with window)
% \newcommand{\printedcover}{ %% Needs textpos package!
% \begin{covernonum} \RequirePackage{calc}%arithmetic on lengths
% \setlength{\TPMargin}{0mm} %% margins inside the textblock*
% \sffamily \RequirePackage{printlen}% display lengths in arbitrary units
% \begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,68mm)% \ifbool{debug}{\PassOptionsToPackage{showboxes}{textpos}}
% {\centering\includegraphics[width=55mm]{\frontlogo@ruthesis}\\}% \RequirePackage[absolute, verbose]{textpos}%
% %
% \setSingleSpace{1.8}\SingleSpacing% %% These commands set the units in \begin{textblock} when not
% \begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,120mm)% %% directly specified
% \textcolor{rugray}{\frontcovertitlefont\titleCover@ruthesis}\par% %% We set them to the page sizes so we can align from them
% %% Originally title was forced uppercase, but no-one seems to have \setlength{\TPHorizModule}{\paperwidth}
% %% noticed, so I'm removing it. \setlength{\TPVertModule}{\paperheight}
% \end{textblock*}% \setlength{\TPMargin}{2mm}%% margins inside the textblock*
% % \textblockorigin{0mm}{0mm}% start everything near the top-left corner
% \setSingleSpace{1.5}\SingleSpacing% \newlength{\pagecenterx}%
% \begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,222mm)% \setlength{\pagecenterx}{0.5\stockwidth}
% \begin{minipage}{\textwidth} \newlength{\pagecentery}
% \textcolor{rugray}{ \setlength{\pagecentery}{0.5\stockheight}
% \frontcovertitletext{}
% \textbf{\theauthor}\\%
% \DegreeLong@ruthesis\\% \newcommand{\printedcover}[2]{
% \whensigned@ruthesis\\% \thispagestyle{empty}
% \theSchool\\% \setlength{\TPMargin}{0mm} %% margins inside the textblock*
% \theInstitution% \sffamily
% }\par \begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,68mm)%
% \vspace*{5mm} {\centering\includegraphics[width=55mm]{\frontlogo@ruthesis}\\}%
% \textcolor{rured}{ \end{textblock*}
% \frontcovertitlefont{} \setSingleSpace{1.8}\SingleSpacing%
% \documenttype@ruthesis \begin{textblock*}{\textwidth}[0,0](30mm,120mm)%
% }\par \textcolor{rugray}{\covertitlefont#1}\par%
% \vspace*{3mm} %% Originally title was forced uppercase, but no-one seems to have
% {\scriptsize\color{rugray}\Bookidnumber}% %% noticed, so I'm removing it.
% \end{minipage} \end{textblock*}%
% \end{textblock*} %
% \setSingleSpace{1.0} \setSingleSpace{1.5}\SingleSpacing%
% \end{covernonum} \begin{textblock*}{\textwidth}[0,0](30mm,222mm)%
% \newpage\quad%% I am not sure why we must put this to ensure that the covers don't overlap \begin{minipage}{\textwidth}
% \newpage % without this, page numbers show up. Weird. \textcolor{rugray}{
% } \covertextfont{}\noident
\textbf{\theauthor}\\%
\theDegreeLong\\%
\thedate\\%
\theSchool\\%
\theInstitution%
}\par
\vspace*{5mm}
\textcolor{rured}{
\covertitlefont{}\noindent
\theDocumentType
}\par
\vspace*{3mm}
{\scriptsize\color{rugray}#2}%
\end{minipage}
\end{textblock*}
\setSingleSpace{1.0}
% \end{covernonum}
\newpage\quad%% I am not sure why we must put this to ensure that the covers don't overlap
\newpage % without this, page numbers show up. Weird.
%% TODO: isolate font and spacing changes from the rest of the document
}
%% ----- INTERNAL TITLE PAGE WITH COMMITTEE --------------------------------------------------- %% ----- INTERNAL TITLE PAGE WITH COMMITTEE ---------------------------------------------------
%% TODO: make counter for supervisors in the very rare case that there %% TODO: make counter for supervisors in the very rare case that there
@@ -590,7 +611,6 @@
%% ----- SIGNATURE PAGE, ONLY THESIS ----------------------------------------------------- %% ----- SIGNATURE PAGE, ONLY THESIS -----------------------------------------------------
\newlength{\signaturey} \newlength{\signaturey}
\setlength{\signaturey}{8mm} \setlength{\signaturey}{8mm}
\newlength{\signaturex} \newlength{\signaturex}
@@ -631,7 +651,6 @@
%% ----- ARCHIVAL SIGNATURE, ONLY THESIS ---------------------------------------------------- %% ----- ARCHIVAL SIGNATURE, ONLY THESIS ----------------------------------------------------
%% TODO: Icelandic translation?
\newcommand{\archivesigpage}{ \newcommand{\archivesigpage}{
\begin{cover} \begin{cover}
\enableindents{} \enableindents{}
@@ -690,7 +709,6 @@
{\par\end{coverleft}\end{otherlanguage}\newpage} {\par\end{coverleft}\end{otherlanguage}\newpage}
%% ----- END OF FRONT MATERIALS --------------------------------------------------------------- %% ----- END OF FRONT MATERIALS ---------------------------------------------------------------
%\RequirePackage{stackengine}%% not sure why this is here %\RequirePackage{stackengine}%% not sure why this is here
%% --------------------------------------------------------------------------------------------- %% ---------------------------------------------------------------------------------------------