Created
February 24, 2017 06:40
-
-
Save JeOam/b7ff8eb76d0e3f29dabc4c9fb7fc902f to your computer and use it in GitHub Desktop.
Markdown to PDF via Pandoc/LaTex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mac 下:
sudo tlmgr install tcolorbox
tcolorbox 会被安装在 /usr/local/texlive/2016basic/texmf-dist/tex/latex/tcolorbox/
Ubuntu 配置:
wget https://github.com/jgm/pandoc/releases/download/1.19.2.1/pandoc-1.19.2.1-1-amd64.deb
sudo dpkg -i pandoc-1.19.2.1-1-amd64.deb
# Tex Live 2016
sudo add-apt-repository ppa:jonathonf/texlive
sudo apt-get install texlive # for PDF output, TeX Live, sudo apt install texlive-full
sudo apt install texlive-xetex
# 把 /Library/Fonts/AdobeFangsongStd-Regular.otf 文件,cp 到 /usr/share/fonts/ 目录下
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mac OS 配置:
pandoc -f markdown_github --latex-engine=xelatex -V mainfont="AdobeFangsongStd-Regular" -V geometry:margin=1in --toc --smart -N -s --template=custom.tex test.md -o output.pdf
导出 Pandoc 默认 pdf