15For xdvik (http://xdvi.sourceforge.net) go to Options>Preferences>Helper Applications and select gnuclient -q +%l %f in order to open the file in an existing XEmacs buffer or emacsclient --no-wait +%l %f for Emacs.

Choose firefox -raise -remote ’openURL(%s,new-tab)’ or similar for what webbrowser xdvik should open.