码迷,mamicode.com
首页 > 其他好文 > 详细

SublimeText插件Pandoc导出PDF中文报错或者中文不显示解决方法

时间:2017-11-08 20:09:11      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:may   htm   files   with   exe   arguments   style   lan   window   

按照如下自定义配置(主要是指定latex的字体[仅限本机字体])

{ 
  "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"
          ]
        }
      }
  }
}

 

SublimeText插件Pandoc导出PDF中文报错或者中文不显示解决方法

标签:may   htm   files   with   exe   arguments   style   lan   window   

原文地址:http://www.cnblogs.com/xyzhuzhou/p/7805392.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!