Improve pandoc pdf macro for CJK by using M+ font

inky
Elnu 1 year ago
parent af3283ed20
commit 17a3ae3a89

@ -123,7 +123,7 @@ in
# pandoc macro # pandoc macro
# pandoc document.md -> pandoc document.md -o document.pdf ... # pandoc document.md -> pandoc document.md -o document.pdf ...
function pdf { function pdf {
pandoc $1 -o ''${1%.*}.pdf -V colorlinks=true -V linkcolor=blue pandoc $1 -o ''${1%.*}.pdf --pdf-engine=xelatex -V mainfont="mplus-1c-medium" -V colorlinks=true -V linkcolor=blue
} }
# Change to directory when exiting ranger with Q # Change to directory when exiting ranger with Q

Loading…
Cancel
Save