I am using the acmsmall
to do an essay; I have a custom cls
and I've re-defined all of {title, author, etc}font
to be more appropriate. However, I am having trouble getting the normal font to be anything but 10pt. If I set \fontsize{26}{30}\selectfont
in my document it works, but how do I get it in the cls
?
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{essay}[2015/04/01 Essay]
\LoadClass{acmsmall}
% these don't appear to do anything
\renewcommand\@ptsize{2}
\renewcommand\normalfont{\fontsize{16}{18}}
\renewcommand\normalsize{16}
\renewcommand{\normalsize}{\@setfontsize\normalsize\@xpt{26\p@}}
\renewcommand{\small}{\@setfontsize\small\@ixpt{26\p@}}
\@setfontsize\normalsize\@xpt{26\p@}
% title works
\renewcommand\titlefont{\fontfamily{\sfdefault}\fontsize{16}{18}\selectfont\bfseries}
\renewcommand\paragraphfont{\fontsize{16}{18}\selectfont\itshape}
% debug
\newcommand\FontSize{{font size: \f@size~pt}}
\endinput
tex,
\documentclass{essay}
\title{Title~\FontSize}
\begin{document}
\maketitle
Normal~\FontSize.
\end{document}
gives,
Title font size: 16 pt
Normal font size: 10 pt.
\AtBeginDocument{...}
. However, this is a hack and you should not really do it like this. Since I don't know where the class is to be found, it is hard to give a good answer. But do you really want 26pt for the default font size for an essay?\AtBeginDocument
hack works for me; thanks. You don't do all your documents in 26pt? :] (I wanted to differentiate between 10pt.)