解决 Pandoc 导出的问题
Pandoc 导出
解决方案如下:
/opt/homebrew/bin/pandoc -f markdown --resource-path="/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync/Python-100-Days/Day01-15" --resource-path="/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync" --lua-filter="/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync/.obsidian/plugins/obsidian-enhancing-export/lua/pdf.lua" --embed-resources --standalone --metadata title="01.初识Python" -s -o "/Users/lincolnmac16/Downloads/01.初识Python.pdf" -t pdf "/Users/lincolnmac16/Documents/LincolnStorageForObsidianSync/Python-100-Days/Day01-15/01.初识Python.md" --pdf-engine=xelatex -V CJKmainfont="Source Han Sans CN Normal"
特别是当中的
--pdf-engine=xelatex -V CJKmainfont="Source Han Sans CN Normal"
如果要查看本地支持的字体的话,可以使用
fc-list :lang=zh
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。