First, we need to know what you are using to create your
LaTeX documents. I can only give you advice which is Emacs specific but maybe I will be lucky and that is what you are using.
This will allow you to jump to the lines in the
.tex document by holding
shift and left clicking the equation in your
Open Okular and go to settings-Configure Okular. A new window will open, and at the bottom, you will see Editors. There will be a drop down menu of editors you can select. In my case, I would select Emacs.
Since you are using Okular, I am going to guess you are on a Linux system. You need to set up your software to open in server mode. Again, I will be using Emacs as the example. In my
~/.bashrc, I have the following:
# Emacs-server mode and non-GUI alias
alias emacs='emacsclient -t --alternate-editor='
This starts Emacs in server mode and I run Emacs from the terminal not the GUI.
Next, you need to set up synctex. I use
LaTeXMK so I will be using it for the example of what you need to do. In my
~/.emacs, I have
;; ============ Latexmk setup ==============
(defun run-latexmk ()
(let ((TeX-save-query nil)
(TeX-command-expand "latexmk -pdflatex='pdflatex -file-line-error
-synctex=1' -pdf %O %S" 'TeX-master-file)
(if (plist-get TeX-error-report-switches (intern master-file))
(minibuffer-message "latexmk: done."))))
You will see that
-synctex=1 is set during the compile.
Then I had to make adjustments for Okular and settings in my custom-set-variables in my
;; Set okular to open with C-c C-v view option
(defun Okular-make-url () (concat
(expand-file-name (funcall file (TeX-output-extension) t)
(add-hook 'LaTeX-mode-hook '(lambda ()
'(("Okular" "okular --unique %u")))
(setq TeX-view-program-selection '((output-pdf "Okular")))
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(TeX-source-correlate-method (quote synctex))
'(TeX-view-program-list (quote (("Okular" "okular -unique %o#src:%n%b"))))
'(TeX-view-program-selection (quote ((output-pdf "Okular"))))
Finally, I had to set up my
~./latexmkrc file for synctex.
$pdf_mode = 1;
$pdflatex = 'pdflatex -interaction=nonstopmode %O %S -file-line-error -synctex=1';
With this set up, I can click anywhere in my
pdf and jump to the line my
.tex file without having to scroll.
Basically, for whatever editor you are using, you need to set up
synctex and Okular to use synctex for this to work.
To address your question on a list of the equations, you could use
RefTeX which is a plugin for
AUCTeX that comes with Emacs. Again, I don't know what editor you are using though. If you are using Emacs, I can update my answer with how to use
RefTeX to show the equations in a separate buffer. Then you can hit
r to rescan as you change your equations.
This isn't exactly what you asked for but it would work in simplifying your work load.