Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why would LaTeX ignore the font size in the documentclass [closed]

I have a LaTeX file. I'm experimenting with trying to reduce the font size (this is related to my other question here LaTeX - Changing the font size for a document, but in the preamble, not the document class? ).

The LaTeX file is generated from another programme. I have edited it to start with

\documentclass[4pt,a4paper,english]{report}

i.e. I am trying to make the text really small. However it doesn't work. I change that 4pt to anything and the font size is the same.

When running pdflatex on it, I get this message printed out.

LaTeX Warning: Unused global option(s):
    [4pt].

That might explain why the error message is

What could be going on here? How do I make it use the font size in the documentclass definition?

like image 832
Amandasaurus Avatar asked Apr 15 '10 09:04

Amandasaurus


People also ask

What is LaTeX default font size?

Per default latex use a font size of 10pt (depending of the used documentclass article, report, book und letter ) . This could be changed to 11pt or 12pt as a option of documentclass. That does not mean that only these three sizes can be used, it is only the size of the normalsize font.

How do you change the font and size in LaTeX?

Font styles Part of this text is written \textsl{in a different font style} to highlight it. If you want to go back to "normal" font style (default for the LaTeX class you are using), this can be done by using the \textnormal{...} command or the \normalfont switch command.

How do I change the default font in LaTeX?

Changing default font typeface The font can also be changed for a specific element in the document. The command \fontfamily{qcr}\selectfont will set the TeX gyre cursor font typeface, whose fontcode is qcr , for the text inside the braces.


2 Answers

You can use only

10pt|11pt|12pt

in the default documentclass

I think you have to redefine the main text command to support smaller (unreadable) font sizes

like image 174
fabrizioM Avatar answered Oct 04 '22 21:10

fabrizioM


There is no option 4pt defined for documentclass article, as it was already mentioned. So your 4pt is simply not recognized by LaTeX.

You can however use extsizes package, which allows some more size options: 8 through 12, 14, 17 and 20pt. However no support for 4pt. There exist other packages that allow for non-standard default sizes, listed at the same page.

like image 40
Vlad Avatar answered Oct 04 '22 20:10

Vlad