9

I am writing a document for my university, and it requires that the entire document be written in 12pt font (including title, TOC, header, subheaders, references, body text, etc.). Is there a way to force it so that nothing in the document can be a different size?

13
  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. It can, but are you sure that the requirement is as bad as you say? Because if yes and if I ever get to see the document, I'll very likely vomit :( As for the question: putting \let\oldfontsize\fontsize\def\fontsize#1#2{\oldfontsize{12}{14}} before \begin{document} should do that, but it's a very very very bad idea.
    – yo'
    Dec 8, 2014 at 1:37
  • Yes, it is that bad (I've lost marks before because my title and headers were too large), and everyone who writes one hates it. Thanks for your help though! For the record, it's this: math.uwaterloo.ca/math/current-undergraduates/co-op-information/…
    – Mamick
    Dec 8, 2014 at 1:41
  • @tohecz and OP It is particularly disappointing to see such guidelines issued by a department of mathematics which one might hope would encourage the use of LaTeX, if anybody did. Obviously they are using 'properly formatted' and 'professional' in a some kind of non-standard sense I'm not familiar with.
    – cfr
    Dec 8, 2014 at 1:55
  • @tohecz An answer? Yours seems to me the only sane way to respond to an insane requirement.
    – cfr
    Dec 8, 2014 at 2:15
  • 1
    @cfr Waterloo is famous for its "co-operative" education programs where you study for one or two terms and then get a paid internship for a term, usually in industry. The guidelines are for the reports that students must submit after their work terms, and they are designed to conform to business, not academic standards.
    – Alan Munn
    Dec 8, 2014 at 2:42

2 Answers 2

8

Adjust all the font size changing macros to mean \normalsize:

\documentclass[12pt]{report}

\renewcommand{\tiny}{\normalsize}
\renewcommand{\footnotesize}{\normalsize}
\renewcommand{\small}{\normalsize}
\renewcommand{\large}{\normalsize}
\renewcommand{\Large}{\normalsize}
\renewcommand{\LARGE}{\normalsize}
\renewcommand{\huge}{\normalsize}
\renewcommand{\Huge}{\normalsize}

\usepackage{fancyhdr,blindtext}
\pagestyle{fancy}

\title{A Title}
\author{An Author}
\date{\today}

\begin{document}

\maketitle
\tableofcontents
\Blinddocument

\end{document}

For the most part, this will ensure that all font size switches are "no-ops". Direct font switches using \fontsize is still in play.

Note that this does not change any of the math font sizes. However, that wasn't part of the request and it would horrible.

4

This is among the ugliest things I've ever done, but here you go. We simply modify \fontsize to always think it's got {12}{14.5} as its arguments.

\documentclass[12pt]{report}

\let\origfontsize\fontsize
\def\fontsize#1#2{\origfontsize{12}{14.5}}

\setlength{\parindent}{0pt}
\setlength{\parskip}{2ex plus 1ex minus 0.5ex}
\usepackage[small,compact]{titlesec}

\pagestyle{headings}

\title{A Title}
\author{An Author}
\date{\today}

\usepackage{blindtext}

\begin{document}

\maketitle

\tableofcontents

\Blinddocument

\end{document}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .