Skip to content
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

Beamer language #9868

Closed
raffaem opened this issue Jun 10, 2024 · 3 comments
Closed

Beamer language #9868

raffaem opened this issue Jun 10, 2024 · 3 comments
Labels

Comments

@raffaem
Copy link

raffaem commented Jun 10, 2024

Explain the problem.

Consider the following markdown file, which includes a lang: it metadata entry:

---
title: "My Title"
author: "This Author"
theme: Madrid
date: \today
toc: true
lang: it
---

# Section 1

## Slide 1

Lorem ipsum

## Slide 2

Doler sit amen

Compile it with:

pandoc --from markdown --to beamer --standalone main.md --output main.pdf

Section heading stays in English:
image

To obtain section heading in the correct language, we need to pass the language as beamer option.

pandoc --from markdown --to beamer --standalone main.md --output main.tex

Replace the document class with:

\documentclass[
  ignorenonframetext,
  italian
]{beamer}

Now we have the section heading in the correct language

image

Pandoc version?
What version of pandoc are you using, on what OS? (If it's not the latest release, please try with the latest release before reporting the issue.)

➜  pandoc --version
pandoc 3.1.13
Features: +server +lua
Scripting engine: Lua 5.4
User data directory: /home/raffaele/.local/share/pandoc
Copyright (C) 2006-2023 John MacFarlane. Web: https://pandoc.org
This is free software; see the source for copying conditions. There is no
warranty, not even for merchantability or fitness for a particular purpose.

OS is Arch Linux

@raffaem raffaem added the bug label Jun 10, 2024
@jgm
Copy link
Owner

jgm commented Jun 10, 2024

I'll fix this. In the mean time you should be able to work around it with

classoptions:
- italian

in your metadata.

@jgm jgm closed this as completed in 8e227ab Jun 10, 2024
@raffaem
Copy link
Author

raffaem commented Jun 11, 2024

I'll fix this. In the mean time you should be able to work around it with

classoptions:
- italian

in your metadata.

Just to say that the proposed workaround based on the classoptions metadata tag doesn't work and nothing is put in the class options in the corresponding latex file

@raffaem
Copy link
Author

raffaem commented Jun 11, 2024

ok it's classoption singular, not plural

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants