6

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

1
  • 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? Nov 28, 2017 at 7:40

1 Answer 1

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
1
  • Clearly I was a minute too late. :)
    – Alan Munn
    Nov 28, 2017 at 1:57

You must log in to answer this question.

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