I want to temporarily change a KOMA option. I want to first save the current value of the option to be able to return back to it.
Asked
Active
Viewed 379 times
3
-
2Which option do you want to change? Did you try to use a group? – Ulrike Fischer Feb 19 '14 at 14:05
-
@UlrikeFischer fontsize. I don't know how to use a group. Can you point me to some documentation where I can learn how to? – Sinan Feb 19 '14 at 14:15
-
@Sinan fontsize for which element(s)? Can you please add some code to your question showing the option you intend to change and how are you doing it? – Gonzalo Medina Feb 19 '14 at 14:59
-
1@Sinan: What is the best book to start learning LaTeX? or LaTeX Introductions in languages other than English. Or the KOMA-Script documentation depending of what you want to know. – Speravir Feb 19 '14 at 18:24
2 Answers
1
the fontsize is saved in \@ptsize:
\documentclass[fontsize=15pt]{scrartcl}
\makeatletter
\def\fontsizeInPT{\the\numexpr\@ptsize+10\relax pt}
\makeatother
\begin{document}
\makeatletter
We have a fontsize of \makeatletter\@ptsize\makeatother,
which is \fontsizeInPT
\end{document}
However, I do not understand why do you want to change this value. Are you looking for something like this: \small, \large and so on?
-
I need this because I am trying to edit a document format created for the default font. I want the body of the text to become 12pt. However if i set 12pt globally then many hard coded pages including a very complicated title page are broken. So they have to remain at 11pt but main body of the text together with some other sections have to become 12pt. – Sinan Feb 19 '14 at 20:10
0
All KOMA-script options are described in the manual, which contains the default value as well. Let's say you were looking for parskip, you'll find that the default is parskip=false. If you changed the option from default to something else, and afterwards again, then it's even easier, isn't it? Go back to the line were you changed it for the first time.
Edit: According to your comment you are interested in the fontsize. See the manual: default fontsize is 11 pt.
-
Ok, my wording was incorrect (not a native speaker, sorry). By default, I meant the values set with
\documentclass– Sinan Feb 19 '14 at 20:14