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

Font options don't work with pdflatex #4390

Closed
4 tasks done
rmcd1024 opened this issue Feb 16, 2023 · 3 comments
Closed
4 tasks done

Font options don't work with pdflatex #4390

rmcd1024 opened this issue Feb 16, 2023 · 3 comments
Assignees
Labels
bug Something isn't working documentation Doc improvements & quarto-web
Milestone

Comments

@rmcd1024
Copy link

Bug description

This document renders correctly:

---
title: Here is a first title
author: Iam Author
format: 
  pdf:
    mainfont: Latin Modern Roman
    sansfont: Latin Modern Roman
    #pdf-engine: pdflatex
---

# First section

Here is some body text

If I remove the hash in front of pdf-engine, so that rendering uses pdflatex rather than xelatex, the font options are ignored. The two rendered examples are attached.

Not sure if this is a bug, but if not it should be documented. (I looked, but in general had trouble figuring out the font options from the online documentation.)

This is using quarto version 1.3.191 on Ubuntu 22.04, and pdflatex is pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian) kpathsea version 6.3.4/dev

pdf-fonts-issue.zip

Checklist

  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
@rmcd1024 rmcd1024 added the bug Something isn't working label Feb 16, 2023
@dragonstyle
Copy link
Collaborator

Thanks for raising this - yes, those options are for xelatex and lualatex only. The best documentation we currently have is the reference for PDF, which includes a section on fonts:

https://quarto.org/docs/reference/formats/pdf.html#fonts

I think a section in the PDF Basics or Advanced on modifying document fonts would be a nice addition in terms of outlining for newer users how to do this, and also calling attention to option variability like this too. I'll leave this open to track improving that!

@dragonstyle dragonstyle added this to the v1.4 milestone Feb 16, 2023
@cscheid cscheid added the documentation Doc improvements & quarto-web label Feb 16, 2023
@rmcd1024
Copy link
Author

Fonts are a difficult subject, but in the revised documentation I think it would be very helpful to give a specific complete example (very brief) where the fonts look like the default LaTeX fonts. That's what I was going for with the Latin Modern Roman. I predict that font control will be a FAQ as Quarto use grows to encompass more LaTeX users.

@cwickham
Copy link
Collaborator

Closing and moving doc issue to #5185

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Doc improvements & quarto-web
Projects
None yet
Development

No branches or pull requests

4 participants