-
-
Save chaojian-zhang/4dfce09ad9cf32b7c2d262384108d1ea to your computer and use it in GitHub Desktop.
Convert Markdown to PDF within Sublime Text using Pandoc
This file contains 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
{ | |
"cmd": ["pandoc --pdf-engine=xelatex --filter=pandoc-citeproc -o '$file_base_name.pdf' '$file_name'"], | |
"selector": "text.html.markdown", | |
"shell": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A functional version for Chinese and Unicode symbols, on Windows:
In addition, you can change the used font with
mainfont
andsansfont
when using--pdf-engine=xelatex
inside the YAML header per this thread, in case some symbols are missing:Remarks:
SegoeUIEmoji
-V mainfont="DejaVu Sans"
which seems absent in Windows, download here (Notice this breaks the "academic" look of default font, which seems to be from Latin Modern family)Reference: