TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

is possible make a command like this?

share|improve this question

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
share|improve this answer
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:




share|improve this answer
\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
@TorbjørnT. Corrected. Thank you! – Sveinung Aug 14 '12 at 18:53

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.