Re: [Vim-latex-devel] View document in another directory
Brought to you by:
srinathava,
tmaas
From: Luc H. <her...@fr...> - 2004-06-18 23:30:16
|
* On Fri, Jun 18, 2004 at 03:38:16PM -0700, Srinath Avadhanula <sr...@fa...> wrote: > > I'm trying to configure g:Tex_ViewRule_html. > > The situation is that into the current directory I have a file > > foo.tex and that I use TeX4HT to generate several HTML pages into > > the subdirectory ./html/ > [...] > But I think it would have been better to use the strategy for > Tex_CompileRule_dvi. Basically something like: > :let _mp = &mp > :let &mp = Tex_ViewRule_dvi > :exec 'make '.mainfname > > This way you could have set Tex_ViewRule_html to something like > :let Tex_ViewRule_html = '!start cygstart html/$*.html' > and have things work OOTB. That's neat. But a bit problematic. While this works perfectly with cygstart (because this program forks), it can not be used with start (execution error) which would be required with programs that do not fork like AcroRd32 -- I've just made some experiments. It seems we will need our own make-like command. Its only work beeing to substitute $* by the name of the result of the compilation. In the long run, it can even be extended to support custom formats like %pwd, %line, %col, ... > Maybe have a seperate setting in addition to Tex_ViewRule_html? > Something like Tex_ViewRuleComplete_html which if exists takes > precedence over Tex_ViewRule_html? Having both approaches to maintain may require more work than necessary. However, it present the avantage to be more easy to upgrade LaTeXSuite for end-users. Moreover, I do not think the complete rule must unhide details like how the viewer is launched into the background > [...] > As a hack in the while it takes me to modify latex-suite, why don't > you make a little scriptlet which calls cygstart the way you want it > to? It would be a solution for the time being... Something like > #!/usr/bin/bash > cygstart $PWD/html/$* Indeed. Thanks! (I should have though of it ... a few hours ago I wrote a wrapper for gvim in order to add "--servername=LATEX" when gvim is launched with (La)TeX files as parameters.) > > [Request: option for the preview window] > This should also be an easy thing to modify. I'll put it on the TODO. Thanks. -- Luc Hermitte http://hermitte.free.fr/vim/ |