12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

21. AN EXAMPLE THESIS DESIGN\usepackage{url}\urlstyle{same}\setverbatimfont{\normalfont\rmfamily}% make verbatims use the body fontEnsuring that footnotes use the body font is a simple matter of redefining \foottextfont.\renewcommand*{\foottextfont}{\normalfont\normalsize}Noticing that the requirements can involve switching between double and single spacing,some of which will be done internally in the package, give the user a chance tochange the default double spacing. <strong>The</strong> argument to \setasuspacing can be either\OnehalfSpacing or \DoubleSpacing. <strong>The</strong> result sets \AsuSpacing to be one of thesecommands.% To enable spacing to be changed if neccesary by the user\newcommand*{\setasuspacing}[1]{%\let\AsuSpacing#1\AsuSpacing}\setasuspacing{\DoubleSpacing}21.2.2 Page layoutAs this is for an American University on letterpaper sized paper we’ll assume letterpaperstock, so no cropping will be needed. Setting the side margins is easy:% left, right margins and textwidth\setlrmarginsandblock{1.5in}{1in}{*}Setting the top and bottom margins requires more thought. La<strong>TeX</strong> provides the headerand footer areas for page numbers. However, the requirements state that page numbersmust be either on the top or bottom line (of the textblock) with the text extending downto the bottom line or up to the top line (of the textblock). I’ll organise it according to thelayout for the main body. Here, the top of the header is 1 inch below the top of the paperand the bottom of the text is 1 inch above the bottom of the paper (with the footer belowthat).%% for main body, bottom of text at 1in, footer below%% top of header at 1in, first text line double spaced%% below base of header\newlength{\linespace}\setlength{\linespace}{\baselineskip} % current equivalent of \onelineskip\setlength{\headheight}{\onelineskip}\setlength{\headsep}{\linespace}\addtolength{\headsep}{-\topskip}\setlength{\uppermargin}{1in}\addtolength{\uppermargin}{\headheight}\addtolength{\uppermargin}{\headsep}And for the bottom margin:%% and for the bottom\setlength{\lowermargin}{1in}\setlength{\textheight}{\paperheight}364

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!