5

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?

  • I thin that does also (or even exclusively?) depend on the font you use, does it not? What exactly happens? You get a warning? – Manuel Weinkauf Nov 22 '16 at 18:17
  • Any font, if I put a valor that isn't listed all formating brake – Adriel Carlos Nov 22 '16 at 18:24
  • Are XeLaTeXor LuaLaTeX among the possibilities? – Bernard Nov 22 '16 at 18:58
  • 1
    the documentclass options are not font sizes. You can have any font size you want whatever option you use, \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
  • Since you have some responses below that seem to answer your question, please consider marking one of them as ‘Accepted’ by clicking on the tickmark below their vote count (see How do you accept an answer?). This shows which answer helped you most, and it assigns reputation points to the author of the answer (and to you!). It's part of this site's idea to identify good questions and answers through upvotes and acceptance of answers. – user36296 Nov 23 '16 at 2:48
5

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
4

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, and 20pt.

  • I get it but there is another document class that don't have this limitation? – Adriel Carlos Nov 22 '16 at 18:25
  • Maybe try compiling with xelatex, loading fontspec? – Bernard Nov 22 '16 at 18:31
  • @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
4

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 means pt. 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}
  • 13 was just a random number it will work with any value? – Adriel Carlos Nov 22 '16 at 18:38
  • @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

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.