vim: se fdl=4:
$MD4PDF/README.md
For markdown
files containing up to five level of heading, here are three small resources for smoother conversion to pdf using Pandoc
calling XeLaTeX
. Setup is a little tricky, but the result is something I use almost very day to convert my personal markdown notes to PDF so I can easily read them anywhere (but mostly on my Android devices).
LaTeX
,Pandoc
and my adapted pandoc-templates
-
Linux
: environment variable$MD4PDF
set to the the path of this file's directory -
Windows 10
: apdf
viewer that doesn't lock thepdf
file, such asSumatraPDF
-
heading styles are decided by whichever file is symlinked to
latex/m4p/headings.sty
- in my case, decided in thePandoc
sections of these shell configuration files: -
your Pandoc's
defaults
directory needs these:md4pdfToC.yaml
- symlinked from$MD4PDF/defaults-toc.yaml
md4pdf.yaml
- symlinked from$MD4PDF/defaults.yaml
Arimo Regular Nerd Font Complete
can handle "•"
- Burmese
-V CJKmainfont='Noto Sans CJK SC:style=Regular'
doesn't cope with "长城"