6

I've seen \reset@font (often immediately before \mathrm or \footnotesize) in macros and I was wondering what it does.

  • it is just an old name for \normalfont as shown in the answer, but it's a text font command, you should not see it in front of \mathrm in any cases I can think of? – David Carlisle Nov 28 '17 at 7:40
7

In short, \reset@font reverts to the normal/default font.

The easiest way to see what it does is to \show it:

enter image description here

\documentclass{article}

\begin{document}

\large Large

\makeatletter
\reset@font
\show\reset@font
\makeatother

Normal

\end{document}

The above yields

> \reset@font=macro:
->\protect \normalfont

in the .log.

You can also take a gander at the LaTeX kernel where you'll find

\DeclareRobustCommand\normalfont
                 {\usefont\encodingdefault
                          \familydefault
                          \seriesdefault
                          \shapedefault
                  \relax}
\let\reset@font\normalfont
  • Clearly I was a minute too late. :) – Alan Munn Nov 28 '17 at 1:57

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.