jgm / pandoc

Universal markup converter
https://pandoc.org
Other
34.7k stars 3.39k forks source link

German Image Caption: "Abbildung" in Article, "Figure" in Slides #7408

Closed patrickbucher closed 3 years ago

patrickbucher commented 3 years ago

Versions:

$ pandoc --version
pandoc 2.14.0.2
Compiled with pandoc-types 1.22, texmath 0.12.3, skylighting 0.10.5.1,                                                         
citeproc 0.4.0.1, ipynb 0.1.0.1

Example:

source.md (using lena.png from https://upload.wikimedia.org/wikipedia/en/7/7d/Lenna_%28test_image%29.png):

---
title: Image Caption
author: Patrick Bucher
---

# Image

![Image Caption](lena.png){height=80%}

Building article.pdf and slides.pdf:

$ pandoc --pdf-engine=xelatex -V lang=de source.md -o article.pdf
$ pandoc --pdf-engine=xelatex -t beamer -V lang=de source.md -o slides.pdf

Results:

article.pdf slides.pdf

I know it worked before with similar settings a year ago.

In article.pdf, the caption starts with "Abbildung" (correct in German), but in slides.pdf, the caption starts with "Figure" (which is English).

jgm commented 3 years ago

Sorry, I can't reproduce this. I get Abbildung when creating a beamer document with this command line. texlive 2020, though -- maybe something changed in beamer itself?

patrickbucher commented 3 years ago

You're right, it's not a pandoc issue, it happens with texlive itself. Sorry, forgot to check the manual process. I need to get in touch with the KOMAScript guys, I guess...