Free FreeHand organization
Wednesday, December 30th, 2009Help them (freefreehand.org)!

Help them (freefreehand.org)!
To use latexmk with gvim + xdvi, I have the following lines in my .Xdefaults file:
xdvi.editor: gvim --servername xdvi --remote +%l %f
xdvi.watchFile: 1
One has to issue
xrdb -merge .Xdefaults
after changing the .Xdefaults file. The second line lets xdvi check every one second whether the dvi file has been updated and reloads it. Probably it’s not necessary because latexmk is updating the viewer anyway, but why not? Now, one only needs
latexmk -pvc -dvi latex-file.tex
Every time the tex file gets saved, latexmk will latex the file and update the viewer. Used with the forward and inverse search, you can save hours. Great!
This is an update to the entry about gvim + xdvi. I found out why the forward search did not work: It was as always a trivial reason… I forgot to set the viewer for dvi to xdvi. So, the following lines in .vimrc will enable forward and inverse search with gvim and xdvi
let g:Tex_CompileRule_dvi = 'latex --interaction=nonstopmode --src-specials $*'
let g:Tex_ViewRule_dvi = 'xdvi'
let g:Tex_ViewRuleComplete_dvi = 'xdvi -editor "gvim --servername xdvi --remote +\%l \%f" $* &'
(I forgot the second line last time)
You have to launch gvim and xdvi using
gvim --servername xdvi file.tex
xdvi -editor "gvim --servername xdvi --remote +%l %f" file.dvi
These days, I’m using latexmk and it’s great! Next time, I’ll write down how to use it with gvim and xdvi.
Gestern habe ich den Live-Auftritt von Florian Schroeder in Pantheon gesehen! Sehr gut! Ich kannte einige Nummern schon, z.B. Schäuble über Demokratie und ihre Gesetze und Merkels Rede im Jahre 2058 oder 2085, aber Vieles war neu. Zumindest für mich. Wenn jemand die Chance hat, ihn live zu erleben, sollte es unbedingt tun! Ach ja, übrigens ist er nur ein Jahr älter als ich…