You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When specifying lang: el-polyton in a Markdown document, either in the metadata or in a div or span in the body, the LaTeX writer converts el-polyton to polutonikogreek. This is done by this line in Lang.hs:
Combined with the default.latex template, Pandoc produces this line in the LaTeX output:
\babelprovide[main,import]{polutonikogreek}
babel no longer recognizes polutonikogreek as a locale, so PDF compilation fails:
According to the babel documentation (p21), babel's locale name for el-polyton is now polytonicgreek. Manually replacing every instance of polutonikogreek with polytonicgreek in the LaTeX file fixes the problem and allows for successful PDF compilation.
Pandoc version?
This is reproducible in the online Pandoc sandbox by entering the following as a Markdown document, and converting to LaTeX using pandoc --from markdown --to latex --standalone --wrap=none --no-highlight:
---lang: el-polyton---
I discovered this on my desktop using Pandoc 3.1.12.2.
The text was updated successfully, but these errors were encountered:
Explain the problem.
When specifying
lang: el-polyton
in a Markdown document, either in the metadata or in a div or span in the body, the LaTeX writer convertsel-polyton
topolutonikogreek
. This is done by this line inLang.hs
:pandoc/src/Text/Pandoc/Writers/LaTeX/Lang.hs
Line 36 in f5c7d4d
Combined with the
default.latex
template, Pandoc produces this line in the LaTeX output:\babelprovide[main,import]{polutonikogreek}
babel no longer recognizes
polutonikogreek
as a locale, so PDF compilation fails:According to the babel documentation (p21), babel's locale name for
el-polyton
is nowpolytonicgreek
. Manually replacing every instance ofpolutonikogreek
withpolytonicgreek
in the LaTeX file fixes the problem and allows for successful PDF compilation.Pandoc version?
This is reproducible in the online Pandoc sandbox by entering the following as a Markdown document, and converting to LaTeX using
pandoc --from markdown --to latex --standalone --wrap=none --no-highlight
:I discovered this on my desktop using Pandoc 3.1.12.2.
The text was updated successfully, but these errors were encountered: