I've seen a few related questions, but can't find one that actually answers this question. What I want to do is to specify the font size AFTER \documentclass. I don't want to change the command line, nor have to define something like \def\pointsize{12pt} beforehand, and then use that in the \documentclass[\pointsize] as per Norman's solution to setting class options after documentclass. So, what I am looking for is the definition of \SetFontSize below so that it has the same effect as if I had said \documentclass[12pt]{some_class} in terms of text location and size:
\documentclass{some_class}
\SetFontSize{12pt}{15pt}
I am also not sure that 12,15 are the correct numbers to match with the [12pt] option. I tried the following, but this does not producing identical output as \documentclass[12pt]{article}:
\documentclass{article}
\fontsize{12pt}{15pt}\selectfont
\begin{document}
blah blah
\end{document}
Based on lockstep's link, I believe that the solution is:
\let\savednewcommand\newcommand
\let\newcommand\renewcommand
\makeatletter
\input{size12.clo}
\makeatother
\let\newcommand\savednewcommand
This seems to be working for the {article} class. But according the same link this may not work for all classes.
\begin{document}triggers\normalsize. – lockstep Apr 30 '11 at 19:10\def\pointsize{12pt} ... \documentclass[\pointsize]{<class>}using\PassOptionsToClass{12pt}{<class>} ... \documentclass{<class>}is better. I'm aware that you try to avoid this, but just like to point it out. – Martin Scharrer Apr 30 '11 at 19:17\documentclasslater. @Martin: I like your solution, but I have other people working with me and would prefer not to require them to adjust their software setup beyond including my header files. – Peter Grill Apr 30 '11 at 19:34