2012-12-26 40 views
0

在與LatexTools插件崇高文本提供的構建文件建立,我通過用乳膠替代pdflatex的第二個實例修改的聲明運行崇高文本與膠乳代替pdflatex從LaTeXTools插件

"cmd": ["latexmk", "-e", "\\$pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 %S'", "-f", "-pdf"] 

。 我的問題是,如何指定我是否想使用「dvipdfm」或「dvi2ps + ps2pdf」。

如果有人可以爲此提供示例構建文件,那將是最有幫助的。

回答

0

經過一些試驗和錯誤,我終於有了以下的構建文件正常工作。這讓我pdflatex和乳膠之間進行選擇,而dvipdfm包含與「dvi2ps + PS2PDF」

// Compilation settings 
    // ==================== 
    // 
// The actual magic happens in the make_pdf command 
// I stick to the format of standard ST2 sublime-build files 
// with minor variations. 
// NOTE: the viewer is NOT configured from here! 
// As of 5/24/11, it cannot be changed, but I will introduce a setting later 

{ 
    // General settings; DO NOT MODIFY!!! 
    "target": "make_pdf", 
    "selector": "text.tex.latex", 

    //----------------------- 
    // Linux-specific settings 
    // ---------------------- 
    // If linux/os variable is used, then command palette does not show variant names 

     // Linux texification settings 
     // ------------------------- 
     // Personalize this, IF you know what you are doing! 
     // e.g. change 'pdflatex...' to 'xelatex...' 
     // Refer to the documentation for latexmk 
     // 
     // Note: do NOT include $file or similar!!! 
     // Only configure the compilation parameters you need, MINUS the 
     // actual file to be compiled 
     // 
     // By default, latexmk is told to use pdflatex, with synctex on for 
     // backward/forward search, forcing compilation (e.g. even if no bib file is found) 
     // and producing pdf rather than dvi output 



     "cmd": ["latexmk", 
       "-e","\\$dvipdf = 'dvipdfmx %O -o %D %S'", "-e", "\\$latex = 'latex %O -interaction=nonstopmode -synctex=1 %S'", 
       "-f", "-pdfdvi"], 


     "variants": 
     [ 

     { "cmd": ["latexmk", 
       "-e", "\\$pdflatex = 'pdflatex %O -interaction=nonstopmode -synctex=1 %S'", 
       "-f", "-pdf"], 
      "name": "Run" 
     }, 


     { "cmd": ["latexmk", 
       "-e", "\\$latex = 'latex %O -interaction=nonstopmode -synctex=1 %S'", 
       "-f", "-pdfps"], 
      "name": "LaTeX_PS_PDF" 
     }, 

     {"cmd": ["latexmk", "-e", "\\$clean_ext = 'aux fls fdb_latexmk dvi ps synctex.gz'", "-c"], 
     "name" : "Clean " 
     } 

     ]  
} 
+0

到的相關問題只是一個鏈接的替代之間也可以選擇有興趣的人士:http://stackoverflow.com/questions/16114576 /運行shell腳本-的bash的命令功能於崇高的文本乳膠 - 構建 - 無 - 任何文件,申辯/ 16133159#16133159 – lawlist