Starting KDVI
Prev
Next

Chapter 2. Starting KDVI

Most of the time, KDVI will be started by just clicking onto a .dvi file in the file manager. For convenience there exists a command kdvi which calls KViewshell with the KDVI plugin preloaded. The viewer may thus be started using the command kdvi somepath/paper.dvi. The command lines kdvi somepath/paper or kdvi somepath/paper. will also work. If you are connected to the internet, you can access files which reside on other computers by giving a URL as a parameter, like this: kdvi http://somepath/paper.dvi

If you give a URL as a parameter, you can tell KDVI to jump directly to certain place of the DVI file. For example, kdvi file:paper.dvi#43 will make KDVI to open page 43. If you have included source file information, a command like kdvi file:paper.dvi#src:43paper.tex will make KDVI search for the place in the DVI file which corresponds to line 43 in the TeX file paper.tex. You will hardly use this option yourself — read the section on forward search to learn how to set up your editor to start KDVI automatically.

Warning

Don't forget the file: prefix or it will give unexpected results. For example, the command kdvi file:paper.dvi#43 will open page 43 of the file paper.dvi. The command kdvi paper.dvi#43 will try to open the file paper.dvi#43.

There is another option which you will most likely not need to specify yourself. If you type kdvi --unique somepath/paper.dvi, KDVI will load the file if there is no other instance running which has the file already loaded. If there is, this instance of KDVI will pop to the front. A command like kdvi --unique file:paper.dvi#43 can be used in shell scripts to make a running instance of KDVI to jump to page 43.

The usual parameters handled by Qt™ and KDE applications also work: kdvi -style windows -display :0 -geometry 400x400+0+0 -caption "DVI"

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team