I want to use a font size other than the standard LaTeX list of tiny, huge, etc. How can I do that?
2 Answers
From info latex
:
\fontsize{size}{skip}
Set font size. The first parameter is the font size to switch to; the second is the\baselineskip
to use. The unit of both parameters defaults to pt. A rule of thumb is that the baselineskip should be 1.2 times the font size.
As @frabjous noted, you'll need to add \selectfont
afterwards to make it kick in.
-
44You'll need to add
\selectfont
afterwards to make it kick in.– frabjousCommented Dec 29, 2010 at 21:31 -
Thanks . . . that works . . . but now my superscript is in the new size (not made smaller). Is there a way to tell it to keep it proportional?– William JockuschCommented Dec 30, 2010 at 0:21
-
Also, the baseline skip doesn't seem to do anything. It ends up that the top of the text of each line is at basically the same place as the bottom of the previous line . . . maybe a tiny bit lower, but certainly not sensible line spacing.– William JockuschCommented Dec 30, 2010 at 0:23
-
3@William: See Fonts at arbitrary sizes and Other "document font" sizes?.– Dennis WilliamsonCommented Dec 30, 2010 at 0:57
-
2Also, it has to be within the
document
tags, not in the preamble. Commented Oct 19, 2015 at 12:10
There are a couple of LaTeX packages available that provide for additional font sizes:
The moresize
package offers additional commands to have a broader range (\HUGE
, \ssmall
), whereas extsizes
extends the standard LaTeX classes by additional class options (8pt
, ... 20pt
for the base font, so that all fonts in the document become smaller or bigger, but remain their relative difference. Advanced document classes (memoir, but especially the KOMA-Skript bundle) provide built-in capabilities for flexible font sizes.