Replies: 3 comments 2 replies
-
If I understand properly, I would use something like what is described in https://quarto.org/docs/projects/profiles.html#language-content.
|
Beta Was this translation helpful? Give feedback.
-
No, I have a template.tex file with language specific headers and I want to define two separate |
Beta Was this translation helpful? Give feedback.
-
@Nihasa Check out https://github.com/nmfs-opensci/quarto_titlepages_v1 This is a version of quarto_titlepages that is for LaTeX users who want to write their own LaTeX template partials. Your question is a combo of a LaTeX question, pandoc and Quarto.
However... based just on what you wrote, I think you don't need to get into pandoc templates
```{=latex} whatever code you need to switch languages ``` This is basically how language switching works in LaTeX. You switch languages with a command and in Quarto you issue raw latex commands with Also fyi, pandoc often understands LaTeX which means that Quarto understands LaTeX too. So always try first just entering the raw LaTeX into your Quarto doc and see what happens. For example you can create a command with |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a simple format that takes inputs in two languages in the body, framed by certain elements that determine language-specific style and spacing. Is there a way to designate sub body elements that can be called from the template? e.g.$body.eng$ and $body.fr$ for language-specific content in English and French.
Beta Was this translation helpful? Give feedback.
All reactions