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

latex template sets fonts before applying beamer theme #6260

Closed
Drakulix opened this issue Apr 7, 2020 · 1 comment · Fixed by #8316
Closed

latex template sets fonts before applying beamer theme #6260

Drakulix opened this issue Apr 7, 2020 · 1 comment · Fixed by #8316

Comments

@Drakulix
Copy link

Drakulix commented Apr 7, 2020

Using pandoc 2.5
Compiled with pandoc-types 1.17.5.4, texmath 0.11.2.2, skylighting 0.7.7
In an ubuntu/eoan container environment

metadata.yaml:

---
theme: metropolis
monofont: JetBrainsMono
...

cmdline:
pandoc -s -f markdown -t beamer --pdf-engine=lualatex -V classoption=notes --fail-if-warnings --metadata-file=metadata.yaml -o slides.pdf slides.md

Results in a PDF that uses FiraMono as metropolis sets defaults for fonts (FiraSans and FiraMono), which is unexpected to say the least.

WIth a custom template I confirmed, that re-ordering the blocks that apply beamer themes and the font block fixes this problem for me. I am not very familiar with latex and therefor am not aware of any new problems this might cause for other latex-engines.

Would you accept a PR changing the default latex template?

@jgm
Copy link
Owner

jgm commented Apr 7, 2020

I'd certainly consider one. Just as long as it doesn't break anything for other themes.
(I seem to recall other similar issues -- have you searched closed issues and pull requests?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants