Re: [Vim-latex-devel] View document in another directory
Brought to you by:
srinathava,
tmaas
From: Srinath A. <sr...@fa...> - 2004-06-18 22:35:09
|
On Fri, 18 Jun 2004, Luc Hermitte 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/ > Okay, this seems like a reasonable thing to want latex-suite to do by default. I just looked at compiler.vim and it turns out that I use something like: :let execString =3D '!start '.s:viewer.' "'.mainfname.'.'.s:target.'"' :exec execString (here s:viewer =3D Tex_ViewRule_html and s:target =3D 'html') But I think it would have been better to use the strategy for Tex_CompileRule_dvi. Basically something like: :let _mp =3D &mp :let &mp =3D Tex_ViewRule_dvi :exec 'make '.mainfname This way you could have set Tex_ViewRule_html to something like :let Tex_ViewRule_html =3D '!start cygstart html/$*.html' and have things work OOTB. 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? > Playing with cygstart, I found out that =AB$PWD/html=BB was the argument = I > was looking for. > Unfortunatelly, while > :!cygstart $PWD/html/ "foo.html" > works very well, > :!start cygstart $PWD/html/ "foo.html" > does not. :( > 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/$* and then point Tex_ViewRule_html to it... > BTW, I have a request: I'd like an option to disable the default opening > of the preview windows as the quickfix windows is enough for me 99% of > the time. > This should also be an easy thing to modify. I'll put it on the TODO. --=20 Srinath |