Forward search
The forward search functions allow you to jump from your editor directly into the associated position of the file. Since forward search must be supported by your editor, only Emacs and XEmacs are currently supported. Other editors will hopefully join in soon.
To use forward search, you have to do the following:
Set up your editor — this is described below.
Add source file information to your file, ⪚ by using the package srcltx. This has been described in the section "Producing TeX-files for inverse search".
Go! If you use Emacs and everything is properly set up, you just press x j , and pops up and jumps to the place which corresponds to the place of the TeX file which you are currently editing.

Setting up your editor for forward search

Emacs
In order to use forward search in Emacs, follow these steps:
Download the following Emacs script, kdvi-search.el (press shift and click the filename to download) and store it in a place where Emacs can access it — we recommend a directory emacs-scripts.
Add the lines


(add-to-list 'load-path (expand-file-name "~/emacs-scripts/"))
(require 'kdvi-search)
(add-hook 'LaTeX-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line)))
(add-hook 'tex-mode-hook (lambda () (local-set-key "\C-x\C-j" 'kdvi-jump-to-line)))

to your .emacs file. Restart Emacs.
Enjoy. Open Emacs, load a TeX-file, produce the corresponding file, and either enter the command M x kdvi-jump-to-line or press Ctrl-x Ctrl-j. It may happen that Emacs asks you for the name of a master file. This is useful if you use a TeX file which includes other files: the master file is the top-level file which includes the others. Emacs will perhaps also ask to save the name of the master-file as a local variable, as a comment at the very end of the file. Say either yes or no, and enjoy!
Make sure that Emacs is installed. Try to start emacs from the command line.
If Emacs fails to start , you can find its output in the Buffer kdvi-output.

XEmacs
To set up XEmacs, follow the steps for Emacs above, but modify your .xemacs rather than your .emacs file. If you use a very recent version of XEmacs, .xemacs may be a directory. In that case, append the lines to .xemacs/init.el.