2

I am writing my dissertation in LaTeX, using the turabian formatting package. The dissertation handbook for my university include the following line: "All margins must be one inch wide. Page numbers should not fall within the one-inch margins."

I have one inch margins all around, but I cannot figure out how to move the page numbers so that they are not within the page margins. Any guidance on how to do this would be greatly appreciated.

MWE:

\documentclass[12pt]{turabian-thesis}
\usepackage[margin=1in]{geometry}
\usepackage{etoolbox}
\usepackage{lipsum}
\title{MWE}
\begin{document}
\maketitle
\chapter{Introduction}
\lipsum[2-6]
\end{document} 
9
  • 1
    Welcome to TeX.SX! Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}.
    – albert
    Oct 8, 2018 at 14:45
  • Ok, I think this will do: \documentclass[12pt]{turabian-thesis} \usepackage[margin=1in]{geometry} \usepackage{etoolbox} \usepackage{lipsum} \title{MWE} \begin{document} \maketitle \chapter{Introduction} \lipsum[2-6] \end{document} The turabian-thesis class does margins exactly the way I want them, except for the page numbers bit.
    – bopgah
    Oct 8, 2018 at 15:39
  • Do not provide a MWE in a comment but as part of the original question.
    – albert
    Oct 8, 2018 at 15:59
  • @bopgah: Where can we get turabian-thesis.cls - your \documentclass?
    – Werner
    Oct 8, 2018 at 16:11
  • It's from the turabian formatting package, available here: ctan.org/pkg/turabian-formatting?lang=en
    – bopgah
    Oct 8, 2018 at 16:18

1 Answer 1

1

Having headers or footers (with page numbers) removed from the margins (in effect, having page numbers "not fall within the one-inch margins") can be accomplished by using the includeheadfoot option with the geometry package. This option places both headers and footers within the \textheight of each page.

To make this change, adjust the preamble to the following:

\usepackage[margin=1in, includeheadfoot]{geometry}

Through this method, space for both a header and a footer is allocated within the \textheight of each page of the document.

It may be preferable, however, that space for a header or footer only be provided where needed on a page (e.g. space for a header only on pages with numbers located at the top of the page).

With the turabian-thesis document class, this would require pages that use the plain page style only reserve space for the footer and allow text to start immediately under the top margin. Likewise, pages that use the headings page style only reserve space for the header and not the footer. More so, the title page (using the empty page style with no header or footer) would have no space reserved for either a header or footer.

To implement this approach, make the following changes to your document:

\documentclass[12pt]{turabian-thesis}

% Set geometry package defaults to match default layout, albeit with no binding offset
\usepackage{geometry}
\geometry{margin=1in, ignoreall, onecolumn}
\makeatletter
    \geometry{headheight=\dimexpr \f@size pt \relax}
\makeatother
\geometry{footskip=0.5in}

% Make \headsep and \headheight adjustable where plain page style used
% New variables to adjust \headsep and \headheight
\newlength{\plainheadsep}
\newlength{\plainheadheight}
% Set new variables to initial defaults
\setlength{\plainheadsep}{\headsep}
\setlength{\plainheadheight}{\headheight}
% Append new variables to each instance in which plain page style used
\makeatletter
    \appto{\ps@plain}{%
        \setlength{\headsep}{\plainheadsep}
        \setlength{\headheight}{\plainheadheight}}
\makeatother

% Adjust page layout at specific instances in the document
% Title page has no header or footer included in \textheight
\preto{\maketitle}{%
    \newgeometry{margin=1in, ignoreall, noheadfoot}}
% After title page, footer included in \textheight
\appto{\maketitle}{%
    \newgeometry{margin=1in, ignoreall, includefoot}}

% With start of main matter, header included in \textheight
% Where plain page style used, header removed so footer is typeset above bottom margin
\appto{\mainmatter}{
    \setlength{\plainheadsep}{0in}
    \setlength{\plainheadheight}{0in}
    \newgeometry{margin=1in, ignoreall, includehead}}

\usepackage{lipsum}
\title{MWE}
\author{}

\begin{document}

\frontmatter
\maketitle

\mainmatter
\chapter{Introduction}
\lipsum[2-6]

\end{document}

This approach is certainly more complex, but should have the desired result when using the turabian-thesis document class.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.