tud-cd / tudscr

TUD-Script

Home Page:http://latex.wcms-file3.tu-dresden.de/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Settings with `\addtokomafont` are not applied before `\begin{document}`

PhilippMatthes opened this issue Β· comments

Hi πŸ‘‹πŸΌ I searched the documentation and the forums but didn't find an answer to my question.

How can I change the font of the author, "Betreuer" and "Betreuender Hochschullehrer" into the serif font I am using (which is bitstream-charter)? For my configuration, see https://github.com/PhilippMatthes/diplom/blob/master/thesis.tex#L13

Finally, here is a screenshot of the problem

Bildschirmfoto 2021-09-29 um 13 13 05

Maybe there could be a configuration command that allows to change the base font? I am by any means no LateX expert. And, maybe, the process of changing the default font could be documented.

Just use

\addtokomafont{titlepage}{\rmfamily}
\addtokomafont{author}{\rmfamily}

after \begin{document}.

Since you have deactivated OpenSans with cdfont=false all the other settings with \addtokomafont{...}{...} are actually not necessary.

Thanks! So my mistake was to place those calls before the begin of document?

Exactly. This is one of many items on my ToDo list. As tudscr does a lot for font selection and tries to derive settings from other font packages, all settings can only be applied after the preamble. That's why your configurations are actually no-op. For the next version, I'm going to delay settings with \addtokomafont after the font settings done by tudscr but currently I do not have any time for further development.