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
136 stars 26 forks source link

trouble with adding further pdf variables #22

Closed vaiseys closed 10 years ago

vaiseys commented 10 years ago

First of all, thanks for making this. I'm having trouble adding additional variables to pdf creation. So while this works fine:

    "pandoc-arguments": [
      "-t", "pdf", "--latex-engine=xelatex"

This does not:

    "pandoc-arguments": [
      "-t", "pdf", "--latex-engine=xelatex", "--variable fontsize=12"

I've tried many permutations here but can't get this to pass additional variables on to Pandoc. Any ideas? Thanks!

vaiseys commented 10 years ago

I actually figured this out, you have to do this:

 "pandoc-arguments": [
      "-t", "pdf", "--latex-engine=xelatex", "--variable", "fontsize=12"