What do I put in the \documentclass
so that I can change the font size to any value? I'm asking because for {extarticle}
13pt isn't an option. So what do I do?
As stated by @TorbjørnT., the KOMA-classes allow one to use arbitrary font sizes as the base size. The important notice here is that one should load the \RequirePackage{fix-cm}
package before \documentclass
. This way, you can avoid size substitution which usually occurs when choosing a non-standard fontsize
(11.5, 13, 15, etc.). Refer to the KOMA-script manual for more details. Here is an example:
\RequirePackage{fix-cm}
\documentclass[fontsize=13pt,DIV=12]{scrartcl}
\usepackage{lipsum}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\begin{document}
\lipsum
\end{document}
-
Whatever happened to a slow, tedious METAFONT run whenever the user specified an absent font size? Twenty years ago, this question wouldn't have been asked. – Eric Towers Nov 23 '16 at 3:16
From page 2 of the 2-page user guide of the extarticle
document class:
The sizes available are
8pt
,9pt
,10pt
,11pt
,12pt
,14pt
,17pt
, and20pt
.
-
I get it but there is another document class that don't have this limitation? – Adriel Carlos Nov 22 '16 at 18:25
-
-
@Bernard - You wanna make that into a separate answer? (Maybe ask the OP first if using XeLaTeX and/or LuaLaTeX is a viable option?) – Mico Nov 22 '16 at 18:32
The KOMA-classes allow one to use arbitrary font sizes as the base size. To quote the manual:
fontsize=size
In contrast to the standard classes and most other classes that provide only a very limited number of font sizes, the KOMA-Script classes offer the feature of selection of any desired
size
for the main document font. In this context, any well known TeX unit of measure may be used and using a number without unit of measure meanspt
. If you use this option inside the document, the main document font size and all dependent
Of course these classes changes a lot of other things as well, but you could try
\documentclass[fontsize=13pt]{scrartcl}
-
-
1@AdrielCarlos That's what the manual says, but I haven't put it to the test. – Torbjørn T. Nov 22 '16 at 18:39
XeLaTeX
orLuaLaTeX
among the possibilities? – Bernard Nov 22 '16 at 18:58\fontsize{1cm}{2cm}\selectfont
for example. They are option names that just happen to look like lengths and specify not only the default body font size, but also affect margins, headings and several other aspects of the design. So if you want a 13pt font you can use\fontsize{13pt}{15pt}\selectfont
irrespective of what document class options are available. – David Carlisle Nov 22 '16 at 19:10