3

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.

Sinan
  • 295

2 Answers2

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.

Speravir
  • 19,491
Keks Dose
  • 30,892
  • 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