94

I want to use a font size other than the standard LaTeX list of tiny, huge, etc. How can I do that?

migrated from superuser.com Mar 16 '12 at 15:25

This question came from our site for computer enthusiasts and power users.

90

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.

  • 30
    You'll need to add \selectfont afterwards to make it kick in. – frabjous Dec 29 '10 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 Jockusch Dec 30 '10 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 Jockusch Dec 30 '10 at 0:23
  • 3
    @William: See Fonts at arbitrary sizes and Other "document font" sizes?. – Dennis Williamson Dec 30 '10 at 0:57
  • 2
    Also, it has to be within the document tags, not in the preamble. – Skippy le Grand Gourou Oct 19 '15 at 12:10
22

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.

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.