Skip to content

Instantly share code, notes, and snippets.

@JeOam
Created February 24, 2017 06:40
Show Gist options
  • Save JeOam/b7ff8eb76d0e3f29dabc4c9fb7fc902f to your computer and use it in GitHub Desktop.
Save JeOam/b7ff8eb76d0e3f29dabc4c9fb7fc902f to your computer and use it in GitHub Desktop.
Markdown to PDF via Pandoc/LaTex
@JeOam
Copy link
Author

JeOam commented Apr 5, 2017

Mac 下:

sudo tlmgr install tcolorbox

tcolorbox 会被安装在 /usr/local/texlive/2016basic/texmf-dist/tex/latex/tcolorbox/

@JeOam
Copy link
Author

JeOam commented Apr 7, 2017

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