Copyright page now working. pagestyle{cover} moved back to rubook
This commit is contained in:
@@ -30,6 +30,7 @@
|
|||||||
|
|
||||||
\begin{document}
|
\begin{document}
|
||||||
\maketitle
|
\maketitle
|
||||||
|
\copyrightpage{}
|
||||||
\newpage
|
\newpage
|
||||||
|
|
||||||
\lipsum[0-20]
|
\lipsum[0-20]
|
||||||
|
|||||||
86
rubook.sty
86
rubook.sty
@@ -204,17 +204,17 @@
|
|||||||
%% These macros allow you to arbitrarily position things on the page
|
%% These macros allow you to arbitrarily position things on the page
|
||||||
%% This is needed for any cover pages/graphics
|
%% This is needed for any cover pages/graphics
|
||||||
|
|
||||||
\RequirePackage{printlen}% display lengths in arbitrary units
|
%\RequirePackage{printlen}% display lengths in arbitrary units
|
||||||
\ifbool{debug}{\PassOptionsToPackage{showboxes}{textpos}}
|
%\ifbool{debug}{\PassOptionsToPackage{showboxes}{textpos}}
|
||||||
\RequirePackage[absolute, verbose]{textpos}%
|
%\RequirePackage[absolute, verbose]{textpos}%
|
||||||
|
|
||||||
%% These commands set the units in \begin{textblock} when not
|
%% These commands set the units in \begin{textblock} when not
|
||||||
%% directly specified
|
%% directly specified
|
||||||
%% We set them to the page sizes so we can align from them
|
%% We set them to the page sizes so we can align from them
|
||||||
\setlength{\TPHorizModule}{\paperwidth}
|
%\setlength{\TPHorizModule}{\paperwidth}
|
||||||
\setlength{\TPVertModule}{\paperheight}
|
%\setlength{\TPVertModule}{\paperheight}
|
||||||
%\setlength{\TPMargin}{2mm} %% margins inside the textblock*
|
%%\setlength{\TPMargin}{2mm} %% margins inside the textblock*
|
||||||
\textblockorigin{0mm}{0mm} % start everything near the top-left corner
|
%\textblockorigin{0mm}{0mm} % start everything near the top-left corner
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
|
%%%%%%%%%%%%%%%%% Colors %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
|
||||||
%% Setting colors in text
|
%% Setting colors in text
|
||||||
@@ -267,6 +267,67 @@
|
|||||||
\renewcommand{\predate}{\begin{center}\large}
|
\renewcommand{\predate}{\begin{center}\large}
|
||||||
\renewcommand{\postdate}{\par\end{center}\newpage}
|
\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 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%% DRAFT AND PROOF MARKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
\newcommand{\draftmark}{}
|
\newcommand{\draftmark}{}
|
||||||
@@ -288,6 +349,15 @@
|
|||||||
\makeevenfoot{empty}{\draftmark}{}{}
|
\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}}
|
\newcommand{\coverchapter}[1]{\clearforchapter\pagestyle{cover}\chapter{#1}\thispagestyle{cover}}
|
||||||
|
|
||||||
%%% Section numbering and the Table of Contents
|
%%% Section numbering and the Table of Contents
|
||||||
@@ -331,5 +401,5 @@
|
|||||||
|
|
||||||
%%% Local Variables:
|
%%% Local Variables:
|
||||||
%%% mode: latex
|
%%% mode: latex
|
||||||
%%% TeX-master: "DEGREE-NAME-YEAR"
|
%%% TeX-master: "PHD-NAME-YEAR"
|
||||||
%%% End:
|
%%% End:
|
||||||
|
|||||||
76
ruthesis.sty
76
ruthesis.sty
@@ -42,11 +42,6 @@
|
|||||||
|
|
||||||
\newcommand{\setAbstract}[1]{\renewcommand{\abstract@ruthesisen}{#1}}
|
\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
|
%% Clean up some formatting for the text
|
||||||
\renewcommand{\thepage}{\roman{page}}
|
\renewcommand{\thepage}{\roman{page}}
|
||||||
|
|
||||||
@@ -56,47 +51,6 @@
|
|||||||
|
|
||||||
\renewcommand{\bibname}{Bibliography} %Renaming the bibliography section (if omitted it will be named "references")
|
\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}{
|
\newcommand{\frontcover}{
|
||||||
\printedcover{}
|
\printedcover{}
|
||||||
}
|
}
|
||||||
@@ -259,22 +213,6 @@
|
|||||||
% \end{cover}
|
% \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 -----------------------------------------------------
|
%% ----- SIGNATURE PAGE, ONLY THESIS -----------------------------------------------------
|
||||||
|
|
||||||
\newlength{\signaturey}
|
\newlength{\signaturey}
|
||||||
@@ -426,20 +364,6 @@
|
|||||||
|
|
||||||
%% ----- END OF BACK MATERIALS ---------------------------------------------------------------
|
%% ----- 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
|
%%% from the old cs template, if so desired
|
||||||
%\makepagestyle{oldstyle}
|
%\makepagestyle{oldstyle}
|
||||||
|
|||||||
Reference in New Issue
Block a user