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\baselineskipto 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
\selectfontafterwards to make it kick in.frabjous– frabjous2010-12-29 21:31:30 +00:00Commented 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 Jockusch– William Jockusch2010-12-30 00:21:59 +00:00Commented 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 Jockusch– William Jockusch2010-12-30 00:23:41 +00:00Commented Dec 30, 2010 at 0:23
- 3@William: See Fonts at arbitrary sizes and Other "document font" sizes?.Dennis Williamson– Dennis Williamson2010-12-30 00:57:50 +00:00Commented Dec 30, 2010 at 0:57
- 2Also, it has to be within the
documenttags, not in the preamble.Skippy le Grand Gourou– Skippy le Grand Gourou2015-10-19 12:10:44 +00:00Commented 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.