tbfisher / sublimetext-Pandoc

A Sublime Text plugin that uses Pandoc to convert text from one markup format into another. Pandoc can convert documents in markdown, reStructuredText, textile, HTML, DocBook, LaTeX, MediaWiki markup, OPML, or Haddock markup to XHTML, HTML5, HTML slide shows using Slidy, reveal.js, Slideous, S5, or DZSlides, Microsoft Word docx, OpenOffice/LibreOffice ODT, OpenDocument XML, EPUB version 2 or 3, FictionBook2, DocBook, GNU TexInfo, Groff man pages, Haddock markup, OPML, LaTeX, ConTeXt, LaTeX Beamer slides, PDF via LaTeX, Markdown, reStructuredText, AsciiDoc, MediaWiki markup, Emacs Org-Mode, Textile, or custom writers can be written in lua.
MIT License
137 stars 26 forks source link

Can not output Chinese character in paragraphs that also contain English characters #49

Open mediter opened 7 years ago

mediter commented 7 years ago

modified the settings related with PDF to:

"PDF": {
            "scope": {
              "text.html": "html",
              "text.html.markdown": "markdown"
            },
            "pandoc-arguments": [
              "-t", "pdf",
              "--latex-engine=/Library/TeX/texbin/xelatex",
              "--filter", "/usr/local/bin/pandoc-citeproc",
              "-V", "mainfont=Kai"
            ]
 },

the output file still shows whitespaces where there are Chinese characters in paragraphs that also contain English characters.

I am using Sublime Text 3 with pandoc on a Mac with macOS Sierra.

tan-wei commented 4 years ago

Please use a valid mainfont in your system. It seems Kai in your arguments is not OK for Chinese.