Re: [Vim-latex-devel] Questions about adding options of ps2pdf while Windows
Brought to you by:
srinathava,
tmaas
From: Alessandro P. <ale...@la...> - 2013-02-09 10:33:07
|
2013/2/9 Hao Fang <all...@gm...>: > If I use > " :!ps2pdf -sPAPERSIZE\#letter document.ps document.pdf " > (adding '\' before '#'), then it works. > [...] > However, if I set it in tex.vim, i.e., > let g:Tex_CompileRule_pdf = 'ps2pdf -sPAPERSIZE\#letter $*.ps $.pdf' > It will actually run > :!ps2pdf -sPAPERSIZE\#letter document.ps document.pdf > C:/Users/... Dear Hao Fang, escaping the '#' (i.e. adding '\' in front of it) should be indeed the way to go. I don't know at which point in the code the substitutions are made, but you could try changing the quotes with double quotes (i.e. put " instead of '). You could have to escape some other characters in that case, though. If you don't need the .dvi or the .ps, you could also try to bypass the issue entirely by compiling with pdflatex (this could possibly require some small tweaks in your source file, though). Alessandro |