-
Notifications
You must be signed in to change notification settings - Fork 320
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
Greek unicode letters not rendered in pdf output #3013
Comments
Thanks for the report. I don't know how we could proceed without user interaction when fonts is not installed. When latex packages are missing, we automatically install them. But in the case of missing fonts, there's no standard repository. |
In the meantime, I've found that the following front matter will make it so that Unicode symbols such as alpha, etc will generally work on PDF output: format:
pdf:
monofont: "DejaVu Sans Mono"
mainfont: "Times New Roman" Naturally, you'll need to install DejaVu Sans Mono. |
One part of the issue is handling missing fonts. Maybe it makes sense to just package the default font with quarto? |
The default font is installed, but Computer Modern does not have unicode symbols. We could try to scan the document for code points that are missing, but coming up with a font that handles those correctly is a generally hard problem (especially since Unicode continues to add new code points over time). I think this is a limitation of LaTeX in general that we won't be able to solve with quarto. I do agree that we should better document this Unicode limitation! |
Would it be worth bundling a font like STIX Two, which is built by technical publishers to include all the characters and symbols they might conceivably need? It probably doesn't include a full set of emoji, for instance, but it includes Latin, Greek, and Cyrillic, plus diacritics and technical symbols. |
Pushing out to 1.4 and re-assigning to @cwickham to consider a better way to document this limitation. |
Hello everyone. I have additional details on this error (missing unicode symbols), where it seems to be related to use of the What I did:
What I observed:
What I expected:
System Specs:
Any help would be greatly appreciated!!! Thank you for making Quarto such a great program. |
CC: @jmb280cam |
(Adding a note for the documentation task) Mostly covered in https://quarto.org/docs/output-formats/pdf-basics.html#unicode-characters but this section could use a comment on unicode characters in code cells and setting Also see #5185 |
Bug description
Using unicode letters and rendering to pdf results in the letters bein omitted (on manjaro linux, vscode). Setting
lets me render unicode in the main text flow, but not in code blocks. Also this option results in an error when run on my system because the font is not installed. This is not the best UX. This should just work without user interaction.
See this example:
The output is
Checklist
The text was updated successfully, but these errors were encountered: