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?
2 Answers
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.
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}
:(
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.