Skip to content

Instantly share code, notes, and snippets.

@alexsoin
Created July 8, 2019 12:43
Show Gist options
  • Save alexsoin/fad06684abaff92dad2055806ad878e0 to your computer and use it in GitHub Desktop.
Save alexsoin/fad06684abaff92dad2055806ad878e0 to your computer and use it in GitHub Desktop.
Настройки pandoc для вывода русского текста в pdf
sudo apt install texlive-xetex
sudo apt-get install texlive-lang-all
pandoc test.md -s -o test.pdf --latex-engine=xelatex
---
title: Title text
geometry: margin=2cm
lang: ru
header-includes: |
\newfontfamily{\cyrillicfont}{Arial}
\newfontfamily{\cyrillicfontrm}{Arial}
\newfontfamily{\cyrillicfonttt}{Arial}
\newfontfamily{\cyrillicfontsf}{Arial}
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment