-
Notifications
You must be signed in to change notification settings - Fork 330
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 compilation fails with libertinus font package #10655
Comments
fontfamilyoptions
is tuned as in the quarto documentionsfontfamilyoptions
is tuned as in the quarto documention
The issue is not Quarto but your setup or use of TinyTex (https://github.com/rstudio/tinytex) as indicated in the log I don't believe TinyTex automatically install fonts, but I might be wrong. |
Thank @mcanouil . I can run your example smoothly with the Rendering PDF
running xelatex - 1
This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
updating tlmgr
updating existing packages
finding package for merriweather.sty
> 1 package to install
> installing merriweather (1 of 1)
This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
running xelatex - 2
This is XeTeX, Version 3.141592653-2.6-0.999996 (TeX Live 2024) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
Output created: test.pdf The same code fails with Libertinus, as I said earlier, cause of the supposedly missing file ~/.TinyTeX/bin/x86_64-linux/tlmgr install libertinus-fonts So I'm going to try my luck by reporting the bug on the TinyTex repo. |
I'll look into this. Just to be clear: TinyTeX, the distribution is not responsible for automatic package installation. It seems here this is an issue of the right missing package to be installed. It is possible that the wrong package is installed, or something else specific if not taken into account. In R ecosystem for R Markdown, tinytex the R package is the one doing the log parsing, and detecting which package to install, and running the install command. In Quarto, this is internal Quarto LaTeX engine which does this. I'll follow this trail and find more. From what I can observe trying to reproduce, Quarto correctly tries to install packages, but not the one you mentioned called
|
Thanks @cderv for the insight! |
Problem is the same with R Markdown. So not a Quarto problem directly. When no package installed, first render gives in the log a missing It seems this is not enough to render the pdf. When we do install Usually, when a font is missing, it is logged by LaTeX in
This is quite specific to libertinus. @jchiquet I can reproduce a build error without any |
fontfamilyoptions
is tuned as in the quarto documention
Let's not that The font is included only in > tinytex::tlmgr_search("LibertinusSerif-Regular.otf")
tlmgr search --file --global "LibertinusSerif-Regular.otf"
tlmgr.pl: package repository https://distrib-coffee.ipsl.jussieu.fr/pub/mirrors/ctan/systems/texlive/tlnet/ (not verified: pubkey missing)
libertinus-fonts:
texmf-dist/fonts/opentype/public/libertinus-fonts/LibertinusSerif-Regular.otf So we probably need to make an exception for this package |
Thanks a lot for the insight, I changed the Issue title. I'll try to find out more about libertinus... or change fonts! |
I'll open an issue in tinytex R package too, because it seems the log message is not found. Maybe Taking the example on R side, we see this in the log
And it is not match to any known error by the package. So it won't try to find the font and install. That is the problem. Once the rule is working on tinytex I'll adapt on Quarto. |
Thanks for the report @jchiquet. PR is up to teach Quarto about this new fontspec error. |
@cderv using the latest version
I'm new to Quarto and not really sure how to debug. Do you know might be going on here? |
@sam-b-rose This issue is closed, please open a new GitHub Discussion (or eventually a GitHub Issue) referencing this issue. Sharing only an error message is unfortunately never enough to debug. |
Bug description
When rendering PDF documents and setting the
fontfamilyoptions
as exemplified on the Quarto website,fontspec
cannot find the appropriate font file, even thoughtlmgr
appears to install it on the fly. This issue causes the rendering to fail when using eitherXeTeX
orLuaLaTeX
.A possible fix is to manually install and register the font with TinyTeX before rendering:
~/.TinyTeX/bin/x86_64-linux/tlmgr install libertinus-fonts
.Although this seems more like a
tlmgr
/TinyTeX
bug, I believe it's important to mention this issue here since it relates to an example taken directly from the Quarto documentation.Steps to reproduce
Here is a minimal
qmd
file to reproduce :I have also set up a gh repo for reproducibility, see the failing actions there :
https://github.com/jchiquet/quarto-libertinus/actions/runs/10631297158/job/29471892228
Expected behavior
No response
Actual behavior
Your environment
No response
Quarto check output
The text was updated successfully, but these errors were encountered: