Description
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 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.