Skip to content
Discussion options

You must be logged in to vote

@fredguth Just to give some context on how Pandoc is handling multiple langue by default - interesting as we are based on Pandoc's template and leveraging such features.

lang in YAML is used to defined main language to use, and any other language needed for other content in a document is to be set on block or inline basis using lang attributes on Divs or Spans created. This is explain in https://pandoc.org/MANUAL.html#language-variables and here is an example

---
format: pdf
lang: en
keep-tex: true
---

This is in English

::: {lang=fr}
Mais cela est écrit en Français
:::

And another [ejemplo]{lang=es}

In the generated TeX, we get

\ifLuaTeX
\usepackage[bidi=basic]{babel}
\else
\usepackage[

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@fredguth
Comment options

Comment options

You must be logged in to vote
3 replies
@fredguth
Comment options

@cderv
Comment options

@fredguth
Comment options

Answer selected by fredguth
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
books latex LaTeX engines related libraries and technologies
4 participants