Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.01k stars 957 forks source link

feat: Add CJKsansfont and CJKmonofont for XeLatex #328

Closed krahets closed 1 year ago

krahets commented 1 year ago

The XeLaTex supports CJKsansfont and CJKmonofont which is useful to change the CJK fonts for the titles and codes.

The following args were tested and worked well.

---

mainfont: "Noto Serif SC"
sansfont: "Noto Sans SC"
monofont: "Ubuntu Mono"
CJKmainfont: "Noto Serif SC"
CJKsansfont: "Noto Sans SC"
CJKmonofont: "Noto Sans SC"

...
Wandmalfarbe commented 1 year ago

This looks like it could fit into the pandoc default template LaTeX https://github.com/jgm/pandoc/blob/main/data/templates/default.latex. Please create a pull request there and if it gets merged I will merge it into this repository.

I periodically merge with the pandoc default LaTeX template.

krahets commented 1 year ago

I see. The PR for the default LaTeX template is

https://github.com/jgm/pandoc/pull/8656