2013/2/9 Hao Fang <allen.fu...@gmail.com>: > 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 ------------------------------------------------------------------------------ Free Next-Gen Firewall Hardware Offer Buy your Sophos next-gen firewall before the end March 2013 and get the hardware for free! Learn more. http://p.sf.net/sfu/sophos-d2d-feb _______________________________________________ Vim-latex-devel mailing list Vim-latex-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/vim-latex-devel