is possible make a command like this?


Your request isn't directly possible. The command \normalsize isn't a dimension, but a command that performs several actions.

Of course the command \normalsize depends on the font size. But it also depends on the class. The standard classes define the command related to the selected font size in the files size1X.clo. The X stands for

0 => 10pt
1 => 11pt
2 => 12pt

In the file size10.clo \normalsize is defined as

   \abovedisplayskip 10\p@ \@plus2\p@ \@minus5\p@
   \abovedisplayshortskip \z@ \@plus3\p@
   \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
   \belowdisplayskip \abovedisplayskip

where \@setfontsize\normalsize\@xpt\@xiipt means:



To detect the current font size see How to display the font size in use in the final output

There you can find that the command \f@size represent the current font size. To save the standard font size use:


I can imagine the following example:


\xdef\doublesize{\noexpand\fontsize{\noexpand\numexpr2*\f@size\noexpand\relax pt}{\noexpand\dimexpr\f@baselineskip+\f@baselineskip\noexpand\relax}\noexpand\selectfont}

Text Text

\doublesize Text Text
  • 2
    The example wouldn't work for 11pt size, as \f@size would expand to 10.95, which isn't legal in \numexpr; probably \xdef\doublesize{\noexpand\fontsize{\the\dimexpr2\dimexpr\f@size pt}{\the\dimexpr2\dimexpr\f@baselineskip}\noexpand\selectfont} is better. – egreg Aug 14 '12 at 20:42

Take a look at the relsize package, it does exactly what you request. A MWE:




  • 1
    \relscale takes just one argument, the scale factor. If you want to limit the effect put the \relscale within a group, e.g. {\relscale{2}\blindtext}. – Torbjørn T. Aug 14 '12 at 18:20

it is set relative to the current fontsize:


\def\setFS#1{\@tempdima=\f@size pt\fontsize{#1\@tempdima}{\dimexpr #1\@tempdima+2pt}\selectfont}

foo \setFS{1.5}bar \setFS{2}baz \normalsize


enter image description here

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.