tlnagy
tlnagy

Reputation: 3474

Set highlight-style from Pandoc YAML front-matter

Is it possible to set Pandoc's highlight-style option from the YAML front matter? It can be set via the pandoc command as a flag

--highlight-style=kate

But I don't see any mention of a highlight style digging through the Pandoc LaTeX template. Is this possible?

Upvotes: 9

Views: 1288

Answers (2)

Ghis
Ghis

Reputation: 913

If you are using Rmarkdown :

---
output:
  beamer_presentation:
    highlight: zenburn
  pdf_document:
    highlight: zenburn
---

FYI: I use rmarkdown->master but 1.9 should suffice and pandoc->master (2.1.3)

Upvotes: 0

Andrew
Andrew

Reputation: 753

It looks like this is an open feature request: https://github.com/jgm/pandoc/issues/2925

Upvotes: 2

Related Questions