-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Passing american
to \babelfont
produces LaTeX error when realscript
is used
#8728
Labels
Comments
You're probably right. We can try it. See #8538 -- I want to make sure we don't break what we fixed there. |
OK, seems to work in both cases. I'll make the change. |
Thanks for the quick fix. I'll just use the corrected template with |
dragonstyle
added a commit
to quarto-dev/quarto-cli
that referenced
this issue
Jul 8, 2023
(Fix for this issue jgm/pandoc#8728)
jjallaire
added a commit
to quarto-dev/quarto-cli
that referenced
this issue
Jul 10, 2023
* initial import for pandoc 3.1.5 * changes to typst templates for pandoc 3.1.5 * Update template to match pandoc 3.1.5 (Fix for this issue jgm/pandoc#8728) * remove unused * Adapt format typst for Pandoc 3.1.5 new behavior. Typst own citation is still used by default, so citeproc by Pandoc needs to be activated explicitly using `citeproc: true`. In that case, we add `-citations` extensions if not set already by the users. What has changed since #5575: - Patch to set a variables for Pandoc template is no more needed as Pandoc will do that now when `+citations` is passed (default for `--to typst` in Pandoc) -> change in Pandoc 3.1.5 - Short syntax to typst labels is used now so test needs to be adapted -> change in Pandoc 3.1.3 * typst: remove footnote filter (now handled by pandoc) * remove call to render-typst * update changelog --------- Co-authored-by: Charles Teague <[email protected]> Co-authored-by: Christophe Dervieux <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Explain the problem.
MWE (
test.md
):Command line:
pandoc test.md --pdf-engine=xelatex -o test.pdf
Error:
Environment: pandoc 3.1.1, macOS 12.6.3, TeXLive 2023
The error depends on the line
\babelfont[american]{rm}{cochineal}
. Ifamerican
is changed toenglish
, xelatex completes the required two passes without error. Withamerican
, it fails on the second pass. Also if[american]
is deleted, two XeLaTeX passes complete without error. I know 3.1.2 has been released, but it's not yet available through Homebrew, and the LaTeX template looks like it would still produce this line.The bug here may be in
babel
, because specifying[american]
works with TeXLive 2021, but I don't thinkpandoc
should be passing any language here in the template. As I read thebabel
documentation, one passes a language to\babelfont
in order to use a different font for a specific language. So this first invocation should not pass a language, because it's setting the default font. It's only with the newbabelfonts
variable that a language should be passed, to override the default\babelfont
for a specific language or languages.So I propose changing line 366 of
data/templates/default.latex
from\babelfont[$babel-lang$]{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
to
\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
The text was updated successfully, but these errors were encountered: