Dear Vim Latex-Suite developers:
Currently I'm using the vim-latex-1.8.23.-20130116.788 version and MikTex.
I want to set the paper size of the command ps2pdf, e.g.
(in tex.vim)
let g:Tex_CompileRule_pdf = 'ps2pdf -sPAPERSIZE#letter $*.ps $.pdf'
The "#" instead of "=" has to be used under Windows MikTex,
which leads to the problem.
It seems that the Latex-Suite call "make! document" to compile the PDF file.
However, # is referred to "alternative file name".
So if I compile the ps file, I would get the error
"E194: No alternate file name to substitute for '#'".
The same error message shown up when I use
" :!ps2pdf -sPAPERSIZE#letter document.ps document.pdf "
in vim.
If I use
" :!ps2pdf -sPAPERSIZE\#letter document.ps document.pdf "
(adding '\' before '#'), then it works.
The message shown at the bottom is
:!ps2pdf -sPAPERSIZE#letter document.ps document.pdf
PRESS ENTER or type command to continue
The '\' is automatically removed in this case.
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/...
(I see this message by running
make! document
after I compile the document)
In this case, '\' is not removed.
Thus, the command does not run correctly.
Currently, I can set the paper type in dvi2ps as
dvi2ps -t letter
and do not use any options in ps2pdf, which would avoid the problem.
But I still want to know is there any other solution to
directly solve the problem about "#"?
Thanks a lot for your kindly help.
Best Regards,
Hao Fang
------------------------------------------------------------------------------
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