Re: [Vim-latex-devel] [Wishlist] Shortcut to produce postscript files
Brought to you by:
srinathava,
tmaas
From: Mikolaj M. <mi...@wp...> - 2003-05-29 08:22:48
|
On Wed, May 28, 2003 at 03:43:27PM +0200, Preben Randhol wrote: > This is only a wishlist item so if somebody has the time to add it it > would be great. > Sorry if this is already present in vim-latex, but I cannot find it. > I use \lv to run xdvi, but it would be great to also be able to easily > make postscript versions of the document using dvips. I mean that one > can just hit \lo (\lp is taken) to generate a postscript file from the > dvi file. The reason it would be nice is when I want to manipulate the > size etc of postscript (eps) pictures and need to use gv to view the > document to see that it becomes correct. > I know there is the comile target and view target, but I cannot get it > to work, besides it is a bit akward. Yes I agree that using every time :TCTarget is a bit awkward but why not make map yourself? For me works: Direct compilation of .ps: :map <Leader>lo <Leader>ll:TCTarget ps<cr><Leader>ll:TCTarget dvi<cr> <Leader>lo - \ is not hardcoded in latexSuite it is in fact <Leader> <Leader>ll - compile with default target - here dvi :TCTarget ps<cr> - change target to ps <Leader>ll - compile with new target - ps :TCTarget dvi<cr> - return to old target Compilation fo .ps from existing .dvi (it will compile existing .dvi file with %:r equal to %:r of your file): :map <Leader>lo <Leader>ll:TCTarget ps<cr><Leader>ll:TCTarget dvi<cr> <Leader>lo - \ is not hardcoded in latexSuite it is in fact <Leader> :TCTarget ps<cr> - change target to ps <Leader>ll - compile with new target - ps :TCTarget dvi<cr> - return to old target IMO latexSuite is already complicated enough to build things from its "API". Building from bricks is Vim philosophy :) m. |