From 17a3ae3a89abd70ffa979e9dc9f0d7264fa1a3ec Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Tue, 13 Jun 2023 20:49:55 -0700 Subject: [PATCH] Improve pandoc pdf macro for CJK by using M+ font --- hosts/home.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/home.nix b/hosts/home.nix index af31684..d364d9a 100644 --- a/hosts/home.nix +++ b/hosts/home.nix @@ -123,7 +123,7 @@ in # pandoc macro # pandoc document.md -> pandoc document.md -o document.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