-
Notifications
You must be signed in to change notification settings - Fork 302
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
Package babel Error: There is no ini file for the requested language #757
Comments
Does this happens only with Quarto Books ? |
Yes. |
I can reproduce using Quarto book but I also have the issue with a single document. Can you retry with a single qmd file (out of quarto book project) ? I tried example from ---
title: "demo"
format:
pdf:
lang: zh
keep-tex: true
---
# 标题 got the same compilation failed- error
Package babel Error: There is no ini file for the requested language
(babel) (: ). Perhaps you misspelled it or your
(babel) installation is not complete..
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.144 \babelprovide[main,import]{} I think this is an issue related to jgm/pandoc#7945 which lead to a change in pandoc's template that we don't have yet in Quarto jgm/pandoc@bc7f749 quarto-cli/src/resources/formats/pdf/pandoc/template.tex Lines 233 to 235 in 4c2f4b8
With Pandoc 2.18, when I don't know why Pandoc does not manage to do the correct conversion. It seems something that would need to be improve and the pandoc maintainer is asking for help on this. jgm/pandoc#7945 (comment) By the way, you can look into the tex file produced by adding So it seems to a Pandoc issue. I don't know how Slightly related: @dragonstyle what is our process to keep template up to date with the Pandoc version we are including in quarto ? It seems like we don't benefit from their last fix yet. Hope it helps |
Thanks for digging this, I get the same issue when I just use
|
Thanks for the confirmation. So I really think this is a Pandoc issue first. Meaning this would work probably in Pandoc 2.18 but |
There are any other ways to translate instead of
Here is output of above qmd |
@cderv I don't have much experience here. I have never tried to set the
@XiangyunHuang I'm surprised that |
Oh I see now. The translation of this part is directly related to Quarto internationalization feature: https://quarto.org/docs/authoring/language.html . Quarto is using the same I believe this is conflicting with the error with Pandoc template. Probably when we have the template fix ported (ignore As a workaround, note that you can customize any value of the translation (https://quarto.org/docs/authoring/language.html#alternate-language) or download the language file and use it in the YAML directly: https://github.com/quarto-dev/quarto-cli/tree/main/src/resources/language
it should work. I can't test, as I don't have a valid font available 😓 |
It looks like we have some missing template updates from pandoc 2.18 (we have a new tool to update our pandoc dependency which also generates template diffs, but that tools came online right when pandoc 2.18 was release so we didn't use It). I'll update the template now. |
Thanks @dragonstyle. Once there are a new release @XiangyunHuang you could try again adding Hopefully using |
Ok, I've updated the template here: a39271c and the release https://github.com/quarto-dev/quarto-cli/releases/tag/v0.9.327 contains the updated template. Apologies for missing the update! |
Thanks for all of you! The problem is solved. |
Thanks @dragonstyle ! |
@cderv @yihui and @XiangyunHuang did all the real work here- thank you! |
An reproducible example
create skeleton quarto book.
add
lang: zh
to_quarto.yml
.Click
Render Book
button to build PDF document.partial log
Here is a full log file index.log
Session Info
I use Quarto Version 0.9.309 which installed from
brew install quarto
The text was updated successfully, but these errors were encountered: