Text Formattingfontsize not changeable with class-option

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
SkragZombi666
Posts: 1
Joined: Sat Feb 04, 2012 10:33 pm

fontsize not changeable with class-option

Post by SkragZombi666 »

Hello Forum,
I'm working with LaTeX for about 6 Month now and grew very fond of it!
However, today i encountered the first problem i could not solve on my own and thus I'm now asking the community:
In my working document i wanted to change the fontsize via the scrreprt-classes options. As i found this not to be working, i made a little example for myself and that didn't work either:
  • My System:
    Windows XP, SP3, all updates
    TexMakerX - PDFLaTex
    MiKTeX 2.9

Code: Select all

\documentclass[fonsize=10pt]{scrreprt}
\begin{document}
TEST
\end{document}
and

Code: Select all

\documentclass[fonsize=12pt]{scrreprt}
\begin{document}
TEST
\end{document}
This did not show any change at all, while the following clearly did:

Code: Select all

\documentclass[fonsize=12pt]{scrreprt}
\begin{document}
\fontsize{10}{16}\selectfont 
TEST
\end{document}
and

Code: Select all

\documentclass[fonsize=12pt]{scrreprt}
\begin{document}
\fontsize{12}{16}\selectfont 
TEST
\end{document}
Oh, and \large and the alike are working just fine...!
Normaly that would be just a minor drawback and i wouldn't care too much, but firstly this really bugs me, and secondly I'm currently creating my own Class for my fellow Students (there are some real computer-noob's among them) and i just wouldn't like to make them write \fontsize{10}{16}\selectfont in every preamble...
I would really greatly appreciate it if anybody could help my with this!

Thanks in advance,

Roman

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

fontsize not changeable with class-option

Post by Stefan Kottwitz »

Hi Roman,

welcome to the board!
There's a simple mistake in the class option - write fontsize:

Code: Select all

\documentclass[fontsize=12pt]{scrreprt}
Stefan
LaTeX.org admin
Post Reply