From 0d00c296d242ca9fcfa26acd5cbb967f6c228656 Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Thu, 3 Feb 2022 15:44:02 +0000 Subject: [PATCH] Margins work properly now --- main.tex | 5 +++-- ruthesis.sty | 18 +++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/main.tex b/main.tex index 822b609..190c76a 100644 --- a/main.tex +++ b/main.tex @@ -10,6 +10,7 @@ \usepackage{custom} %% Commonly-used packages and macros are in custom.sty %% Put any additional packages after this line +%% !!WARNING: The geometry package is incompatible with this template! \usepackage{lipsum}%provides us with text for testing %% usage: \lipsum[STARTNUM-ENDNUM] @@ -38,8 +39,8 @@ \begin{document} \maketitle{} \copyrightpage{} -%\signaturepage{} %For Print copies -%\archivesigpage{} %For Print copies +%\signaturepage{} %Generally only for Print copies +%\archivesigpage{} %Generally only for Print copies \begin{abstract} The abstract goes here translated into English. diff --git a/ruthesis.sty b/ruthesis.sty index e620b9e..6f26b57 100644 --- a/ruthesis.sty +++ b/ruthesis.sty @@ -504,15 +504,16 @@ %% WARNING: memoir class has its own margin macros %% Do not use the geometry package!!!! -% \setlength{\TPMargin}{0mm} %% margins inside the textblock* +%% The MS word template uses even 25.4mm margins which works poorly as a bound book +%% We will only do this for the online version -\semiisopage -% % The MS word template uses even 25.4mm margins, this is not as good if is bound -\setlrmarginsandblock{30mm}{25.4mm}{*} -% % {left}{right}{ratio}, * for calculate -%%% if you need it to be even (for online), use this -\ifbool{online}{\setulmarginsandblock{25.4mm}{25.4mm}{*}} -% % {upper}{lower}{ratio} * for calculate +\semiisopage{} +%Print version: iso geometry on an a4 looks best when bound +\ifbool{online} +{%Online version: symmetric margins + \setlrmarginsandblock{25.4mm}{25.4mm}{*}% {left}{right}{ratio} * for calculate + \setulmarginsandblock{25.4mm}{25.4mm}{*}% {upper}{lower}{ratio} * for calculate +}{} \checkandfixthelayout% implement the margins %% Some debugging code to check length calculation. @@ -523,7 +524,6 @@ pagecentery:\printlength{\pagecentery}\\ } - %% ----- PRINTED FRONT COVER ---------------------------------------------------------- %% This cover will be on the outside (not with window) % \newcommand{\printedcover}{