Re: [Vim-latex-devel] Questions about adding options of ps2pdf while Windows
Brought to you by:
srinathava,
tmaas
From: Hao F. <all...@gm...> - 2013-02-10 19:41:36
|
Hi Alessandro, Thanks for your help. I tried to use double quotes while escaping the '#' with '\', then it again shows "E194: No alternate file name to substitute for '#'". Anyway, I think I can still achieve my goal by avoid using options in ps2pdf. Best Regards, Hao Fang On Sat, Feb 9, 2013 at 3:32 AM, Alessandro Pezzoni < ale...@la...> wrote: > 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 > > |