Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using Kile editing my tex files, with Okular for viewing the dvi and PDF files. And I can search the source file from PDF fairly well. I have configured Kile as follows in order to highlight the source line when search incontrovertibly:

Configure Kile->Editor->Fonts & Colors->Text Area Background, 

then I changed the default color of Current line into blue for example, thus I can locate the line when I clicked Shift+Click in PDF file.

But I can not do so when in ForwardPDF, that is from tex to PDF. What I have seen is just the page of the PDF file that corresponds to the source file.

How can I configure my Okular (or Kile), so that I can locate the line (for example, by highlight the line) when in forwardPDF?

share|improve this question
Welcome to TeX.SE. I assume you have the -synctex=1 option set? –  Peter Grill Oct 4 '12 at 3:02
Certainly I have set. Here is my configuration of Kile: XeLaTeX: Select: PDF Modern; Command: xelatex; Options: -synctex=1 -interaction=nonstropmode '%source' –  azhi Oct 4 '12 at 3:34
Did you find a solution for highlighting the relevant line in okular when jumping to it in forward search? –  Charl Botha Jun 2 '13 at 10:12
No, I have not find a solution for locating and highlighting the relevant line in okular in forward search. And now I am using Texstudio, it works very well in Debian Wheezy, whose function of forward search and backward search is fairly wonderful. –  azhi Jun 3 '13 at 11:40
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.