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

Change font of table of contents #150

Open
pascalhuszar opened this issue Jul 28, 2023 · 2 comments
Open

Change font of table of contents #150

pascalhuszar opened this issue Jul 28, 2023 · 2 comments

Comments

@pascalhuszar
Copy link

pascalhuszar commented Jul 28, 2023

I would like to change the fonts of "Table of content". As you can see in the image below, there are two different fonts used and I need to change the font of the section titles.
Screenshot 2023-07-28 at 10 20 47

I managed to change the font via the config.text and the command
\setsansfont[Scale=.9]{TeX Gyre Heros} but I want it to change specifically for the table of content text

also I would like the text in section titles larger than the text in subsections, I changed the Scale in the command above but this will affect also other text (cover title, etc.). I'm working in overleaf

@pascalhuszar
Copy link
Author

pascalhuszar commented Jan 21, 2024

Managed to set the chapters font by adding this to the preamble

\usepackage{tocloft}
\renewcommand{\cftchapfont}{<custom font settings>}

@koppor
Copy link
Member

koppor commented Jan 22, 2024

Thank you for providing the hint!

I reopen the issue to be reminded to add a FAQ entry.

@koppor koppor reopened this Jan 22, 2024
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