Thread: [Vim-latex-devel] [Wishlist] Shortcut to produce postscript files
Brought to you by:
srinathava,
tmaas
From: Preben R. <ra...@pv...> - 2003-05-28 13:44:50
|
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. Thanks in advance. -- Preben Randhol http://www.pvv.org/~randhol/ |
From: A. S. B. <vim...@so...> - 2003-05-28 13:55:40
|
I also think this would be great, as would a latex->dvips->ps2pdf option -- this is the way I normally view the output of latex as I can see the pictures and colour nicely and kghostview showing pdf is much faster than anything showing ps when you've got bitmapped images in the document. Al Thus spake Preben Randhol: > 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. > > Thanks in advance. > > -- > Preben Randhol http://www.pvv.org/~randhol/ > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your application fit in a > relational database is painful, don't do it! Check out ObjectStore. > Now part of Progress Software. http://www.objectstore.net/sourceforge > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |
From: Mikolaj M. <mi...@wp...> - 2003-05-29 10:45:29
|
On Wed, May 28, 2003 at 02:55:24PM +0100, A. S. Budden wrote: > I also think this would be great, as would a latex->dvips->ps2pdf option > -- this is the way I normally view the output of latex as I can see the > pictures and colour nicely and kghostview showing pdf is much faster > than anything showing ps when you've got bitmapped images in the > document. As I wrote previously you can make with :map with existing "bricks". Just change g:Tex_CompileRule_pdf in texrc with ps2pdf (default is pdflatex). You can also create your own CompileRule. Example: I replaced in first section of texrc DefaultTargetFormat with 'mik' (default is dvi). Then in section of Compilers added: TexLet g:Tex_CompileRule_mik = 'platex ' . s:CompileFlags . \ ' -interaction=nonstopmode $* ; dvips -Ppdf -o $*.ps $*.dvi' And in Viewers: TexLet g:Tex_ViewRule_mik = 'ghostview' And I can create .ps with one <Leader>ll. IMO there is too many possible combinations to include them in lS. But lS provides simple API to make various things possible. Maybe such things could be put in TIPS&TRICKS section of latex-suite.txt (by OTHER PLUGINGS - any propositions?). m. Drone, Offensive, Special Circumstances, Contact. :) ps. Ah, I understand now problems with ps target. It produces .ps from .dvi not directly from .tex file. |
From: Alan S. <ala...@po...> - 2003-05-28 14:17:25
|
* Preben Randhol (ra...@pv...) 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. First, a small disclaimer: this is a shameless plug for a piece of software I helped writing. If you are running linux, and if your document does not use postscript fonts, you might want to have a look at Active dvi: http://pauillac.inria.fr/advi/ Alan Schmitt -- The hacker: someone who figured things out and made something cool happen. |
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. |