Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PhilippMatthes opened this issue Sep 29, 2021 · 3 comments

Comments

@PhilippMatthes
Copy link

PhilippMatthes commented Sep 29, 2021

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.

@mrpiggi
Copy link
Member

mrpiggi commented Sep 29, 2021

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.

@PhilippMatthes
Copy link
Author

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

@mrpiggi
Copy link
Member

mrpiggi commented Sep 29, 2021

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.

@mrpiggi mrpiggi reopened this Sep 29, 2021
@mrpiggi mrpiggi changed the title Unclarity on how to change font of the author, "Betreuer" and "Betreuender Hochschullehrer" into serif Settings with \addtokomafont are not applied before \begin{document} Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants