Copyright page now working. pagestyle{cover} moved back to rubook

This commit is contained in:
2020-02-05 20:59:15 +00:00
parent c302012d06
commit 212295472f
3 changed files with 79 additions and 84 deletions

View File

@@ -30,6 +30,7 @@
\begin{document}
\maketitle
\copyrightpage{}
\newpage
\lipsum[0-20]

View File

@@ -204,17 +204,17 @@
%% These macros allow you to arbitrarily position things on the page
%% This is needed for any cover pages/graphics
\RequirePackage{printlen}% display lengths in arbitrary units
\ifbool{debug}{\PassOptionsToPackage{showboxes}{textpos}}
\RequirePackage[absolute, verbose]{textpos}%
%\RequirePackage{printlen}% display lengths in arbitrary units
%\ifbool{debug}{\PassOptionsToPackage{showboxes}{textpos}}
%\RequirePackage[absolute, verbose]{textpos}%
%% 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{\TPMargin}{2mm} %% margins inside the textblock*
\textblockorigin{0mm}{0mm} % start everything near the top-left corner
%\setlength{\TPHorizModule}{\paperwidth}
%\setlength{\TPVertModule}{\paperheight}
%%\setlength{\TPMargin}{2mm} %% margins inside the textblock*
%\textblockorigin{0mm}{0mm} % start everything near the top-left corner
%%%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
%% Setting colors in text
@@ -267,6 +267,67 @@
\renewcommand{\predate}{\begin{center}\large}
\renewcommand{\postdate}{\par\end{center}\newpage}
%% ----- COPYRIGHT PAGE -----------------------------------------------------------------------
\newcommand{\copyrightpage}{
% actually in books, this is often on the left side
\begin{coverleft}
\begin{vplace}[1.0] % ratio of space above and below
\centering
\OnehalfSpacing%
Copyright\\
\theauthor\\
\thedate\\
\end{vplace}
\end{coverleft}
}
%% ---------- Page Styles --------------------------------------------------------------
%% ---------------------------------------------------------------------------------------------
%% Setup the formatting at the beginning of the document (Front material)
%% TODO: use the memoir \frontmatter \mainmatter \backmatter
%% See documentation, page 73
%%%%%%%%% PARAGRAPH ADJUSTMENTS %%%%%%%%%%%%%%%%%%%%%%%%%%%
\newlength{\savedparindent}
\newcommand{\disableindents}{\setlength{\parindent}{0pt}}
\newcommand{\enableindents}{\setlength{\parindent}{\savedparindent}}
\AtBeginDocument{
\frontmatter
\setlength{\savedparindent}{\parindent} % save the current parindent
\SingleSpacing%
}
%% Disable clearforchapter on formats that do not need blank pages
\ifbool{online}{\renewcommand{\clearforchapter}{\newpage}}{}
\ifbool{draftbool}{\renewcommand{\clearforchapter}{\newpage}}
% waste less blank pages in draft mode
% see p123 http://ctan.uib.no/macros/latex/contrib/memoir/memman.pdf
\newenvironment{cover}% commonalities for the cover material
{\thispagestyle{cover}%
\pagestyle{cover}%
\clearforchapter% clear to chapter setting if note online
\disableindents%
\titletextfont\SingleSpacing}%
{%\setlength{\TPMargin}{0mm} %% margins inside the textblock
\enableindents{}\newpage}%
\newenvironment{coverleft}%This is material that is OK being on the
%backside
{\thispagestyle{cover}%
\pagestyle{cover}%
\ifbool{online}{}{\cleartoverso}%
%\clearforchapter% clear to chapter setting
\disableindents%
\titletextfont\SingleSpacing}%
{%\setlength{\TPMargin}{0mm} %% margins inside the textblock
%% I don't remember why we need to mess with \TPmargin --foley
\enableindents{}\newpage}%
%%%%%%%%%%%% DRAFT AND PROOF MARKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newcommand{\draftmark}{}
@@ -288,6 +349,15 @@
\makeevenfoot{empty}{\draftmark}{}{}
}{}
\makepagestyle{cover}% The cover pages don't have numbers by default
\makeoddfoot{cover}{}{}{}
\makeevenfoot{cover}{}{}{}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lof}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lot}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\newcommand{\coverchapter}[1]{\clearforchapter\pagestyle{cover}\chapter{#1}\thispagestyle{cover}}
%%% Section numbering and the Table of Contents
@@ -331,5 +401,5 @@
%%% Local Variables:
%%% mode: latex
%%% TeX-master: "DEGREE-NAME-YEAR"
%%% TeX-master: "PHD-NAME-YEAR"
%%% End:

View File

@@ -42,11 +42,6 @@
\newcommand{\setAbstract}[1]{\renewcommand{\abstract@ruthesisen}{#1}}
\newlength{\savedparindent}
\newcommand{\disableindents}{\setlength{\parindent}{0pt}}
\newcommand{\enableindents}{\setlength{\parindent}{\savedparindent}}
%% Clean up some formatting for the text
\renewcommand{\thepage}{\roman{page}}
@@ -56,47 +51,6 @@
\renewcommand{\bibname}{Bibliography} %Renaming the bibliography section (if omitted it will be named "references")
%% ---------------------------------------------------------------------------------------------
%% Setup the formatting at the beginning of the document (Front material)
%% TODO: use the memoir \frontmatter \mainmatter \backmatter
%% See documentation, page 73
\AtBeginDocument{
\frontmatter
\setlength{\savedparindent}{\parindent} % save the current parindent
\SingleSpacing%
}
%% Disable clearforchapter on formats that do not need blank pages
\ifbool{online}{\renewcommand{\clearforchapter}{\newpage}}{}
\ifbool{draftbool}{\renewcommand{\clearforchapter}{\newpage}}
% waste less blank pages in draft mode
% see p123 http://ctan.uib.no/macros/latex/contrib/memoir/memman.pdf
\newenvironment{cover}% commonalities for the cover material
{\thispagestyle{cover}%
\pagestyle{cover}%
\clearforchapter% clear to chapter setting if note online
\disableindents%
\titletextfont\SingleSpacing}%
{\setlength{\TPMargin}{0mm} %% margins inside the textblock
\enableindents{}\newpage}%
\newenvironment{coverleft}%This is material that is OK being on the
%backside
{\thispagestyle{cover}%
\pagestyle{cover}%
\ifbool{online}{}{\cleartoverso}%
%\clearforchapter% clear to chapter setting
\disableindents%
\titletextfont\SingleSpacing}%
{\setlength{\TPMargin}{0mm} %% margins inside the textblock
\enableindents{}\newpage}%
\newcommand{\frontcover}{
\printedcover{}
}
@@ -259,22 +213,6 @@
% \end{cover}
% }
%% ----- COPYRIGHT PAGE -----------------------------------------------------------------------
\newcommand{\copyrightpage}{
% actually in books, this is often on the left side
\begin{coverleft}
\begin{vplace}[1.0] % ratio of space above and below
\centering
\OnehalfSpacing%
Copyright\\
\author@ruthesisen\\
\whensigned@ruthesisen\\
\end{vplace}
\end{coverleft}
}
%% ----- SIGNATURE PAGE, ONLY THESIS -----------------------------------------------------
\newlength{\signaturey}
@@ -426,20 +364,6 @@
%% ----- END OF BACK MATERIALS ---------------------------------------------------------------
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% HEADERS AND FOOTERS
%% TODO: ensure that the chapter and section headings are in lowercase.
%% package fancyhdr is not needed
%\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ #1}{}}
%\renewcommand{\sectionmark}[1]{\markright{\thesection\ #1}}
\makepagestyle{cover}% The cover pages don't have numbers by default
\makeoddfoot{cover}{}{}{}
\makeevenfoot{cover}{}{}{}
\AtBeginDocument{\addtocontents{toc}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lof}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
\AtBeginDocument{\addtocontents{lot}{\protect\thispagestyle{cover}}}%The TOC should use the cover format
%%% from the old cs template, if so desired
%\makepagestyle{oldstyle}