SublimeText插件Pandoc導出PDF中文報錯或者中文不顯示解決方法

按照以下自定義配置(主要是指定latex的字體[僅限本機字體])html

{ 
  "user": {
       // "pandoc-path":"C:\\Program Files (x86)\\Pandoc\\pandoc.exe" ,
      // transformations
    "transformations": {
           // @see http://johnmacfarlane.net/pandoc/README.html#creating-a-pdf
       "PDF": {
          "scope": {
            "text.html": "html",
            "text.html.markdown": "markdown"
          },
          "pandoc-arguments": [
            "-t", "pdf",
            // use --latex-engine=engine where engine is
            // pdflatex|lualatex|xelatex. This may need to be specified with a
            // full path, e.g. on a mac with BasicTeX
            // "--latex-engine=/usr/texbin/pdflatex"
            // or on Windows with MiKTeX
            "--latex-engine=xelatex",
            "-M","mainfont:微軟雅黑","-M","sansfont:微軟雅黑", "-M", "monofont:微軟雅黑"
             //"--latex-engine=C:/Program Files/MiKTeX 2.9/miktex/bin/x64/pdflatex.exe",
            // "--latex-engine=C:/Program Files/MiKTeX 2.9/miktex/bin/x64/xelatex.exe",
            // "--latex-engine=C:/Program Files/MiKTeX 2.9/miktex/bin/x64/lualatex.exe",
            // if -o or --output missing, will write to a temporary file
             // "--output=C:/Users/xyzhuzhou/Desktop/output.pdf"
          ]
        }
      }
  }
}
相關文章
相關標籤/搜索