reworking the cover: still broken

This commit is contained in:
2026-01-27 12:00:26 +00:00
parent 633630282f
commit 9aadaece9d
4 changed files with 2357 additions and 35 deletions

View File

@@ -85,6 +85,7 @@
\enableindents{}\newpage}%
\RequirePackage{calc}%arithmetic in commands like lengths
%\RequirePackage{printlen}% display lengths in arbitrary units
\RequirePackage[absolute, verbose]{textpos}
% option: showboxes for placement
\RequirePackage{xcolor}
@@ -95,8 +96,8 @@
%% These commands set the units in \begin{textblock} when not
%% directly specified
%% We set them to the page sizes so we can align from them
\setlength{\TPHorizModule}{\paperwidth}
\setlength{\TPVertModule}{\paperheight}
\setlength{\TPHorizModule}{\stockwidth}
\setlength{\TPVertModule}{\stockheight}
%\setlength{\TPMargin}{2mm} %% margins inside the textblock*
\textblockorigin{0mm}{0mm} % start everything near the top-left corner
\newlength{\pagecenterx}%
@@ -111,51 +112,46 @@
% \def\frontcovertitlefont{\fontfamily{phv}\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\selectfont}
\def\frontcovertitlefont{\fontseries{b}\fontshape{n}\fontsize{20.74}{24}\phdcoverfont}
% \def\frontcovertitletext{\fontfamily{phv}\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\selectfont}
\def\frontcovertitletext{\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\phdcoverfont}
\def\frontcovertitletextfont{\fontseries{m}\fontshape{n}\fontsize{14.4}{16}\phdcoverfont}
\def\titletitlefont{\fontseries{b}\fontsize{17pt}{20pt}\phdcoverfont}
\def\titletextfont{\fontsize{14pt}{16pt}\phdcoverfont}
\def\titleinfofont{\fontsize{12}{14}\phdcoverfont}
%% ----- PRINTED FRONT COVER ----------------------------------------------------------
%% This cover will be on the outside (not with window)
\newcommand{\printedcover}{
\begin{printcover}
\newcommand{\printedcover}[2]{
\thispagestyle{empty}
\setlength{\TPMargin}{0mm} %% margins inside the textblock*
\sffamily
\begin{textblock*}{\textwidth}[0.5,0.5](\pagecenterx,68mm)%
\begin{textblock*}{\textwidth}[0,0](30mm,30mm)%
{\rulogo{}}%
\end{textblock*}
%
\setSingleSpace{1.8}\SingleSpacing%
\begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,120mm)%
\textcolor{rugray}{\frontcovertitlefont\thetitle}\par%
\end{textblock*}%
%
\setSingleSpace{1.5}\SingleSpacing%
\begin{textblock*}{\textwidth}[0,0](\covernowinmarginl,222mm)%
\begin{minipage}{\textwidth}
\textcolor{rugray}{
\frontcovertitletext
\textbf{\theauthor}\\%
Name of Degree\\%
Whensigned\\%
School\\%
Institution%
}\par
\vspace*{5mm}
\textcolor{rured}{
\frontcovertitlefont
DEgree abbrev.
%\ifbool{projectreport}{}{\degreeabbrv@ruthesis{}} \documenttype@ruthesis
}\par
\vspace*{3mm}
{\scriptsize\color{rugray}Book ID}%
\end{minipage}
\end{textblock*}
\SingleSpacing{}
\end{printcover}
\begin{textblock*}{\textwidth}[0,0](30mm,110mm)%
\noindent\textcolor{rugray}{\frontcovertitlefont#1}\par%UPPERCASE
\end{textblock*}%
%
\setSingleSpace{1.5}\SingleSpacing%
\begin{textblock*}{\textwidth}[0,0](30mm,225mm)%
\noindent\textcolor{rugray}{
\frontcovertitletextfont\textbf{\theauthor}\\%
\theDegreeLong\\%
\thedate\\%
\theSchool\\%
\theInstitution
}\par
\vspace*{5mm}
\noindent\textcolor{rured}{
\frontcovertitlefont\theDocumentType{}
}\par
\vspace*{3mm}
{\noindent\scriptsize\color{rugray}#2}%
\end{textblock*}
\setSingleSpace{1.0}
\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
}