In my last post I had discussed about configuring gvim and okular with synctex. In this post I will discuss configuring kile and okular with synctex.
For forward search (kile to okular), put your cursor in any text part of your tex file and click on ``ForwardPDF". Okular opens the file to the exact page of your text.
For reverse search (okular to kile), ``Shift+click" on any part of your pdf file in okular. Kile scrolls the file in the exact location.
This file was generated via LATEX2html.
Configuration of Kile for pdflatex
Add the option-synctex=1
for building via pdflatex. Kile > Settings > Configure Kile > Tools > Build PDFLaTeX General: Command: pdflatex Options: -interaction=nonstopmode -synctex=1 '%source'One can do the same configuration for latex as opposed to pdflatex. The ForwardPDF build config should already be present. If not then do the following:
Kile > Settings > Configure Kile > Tools > Build ForwardPDF General: Command: okular Options: --unique '%absolute_target' Advanced: Run Outside of Kile ForwardDVI Source extension: pdf Target extension: pdf State: Editor Menu: Add tool to Build menu: ViewFinally configure the Quick build option.
Kile > Settings > Configure Kile > Tools > Build Quick Build General: PDFLaTeX ForwardPDF
Configuration of Okular
Okular > Settings > Configure Okular > General > Program Features > Uncheck "Reload document on file change" Editor > Editor: Kile
Usage
Open or create a new tex file in kile. Press QuickBuild (Shortcut: Alt+1) to compile via pdflatex. Okular automatically opens the pdf file in the exact page where your cursor is in kile.For forward search (kile to okular), put your cursor in any text part of your tex file and click on ``ForwardPDF". Okular opens the file to the exact page of your text.
For reverse search (okular to kile), ``Shift+click" on any part of your pdf file in okular. Kile scrolls the file in the exact location.
Other kile configs
Couple of other kile configs which I found useful.Kile > Settings > Configure Kile > Editor > Editing > General # Tabs configuration Insert spaces instead of tabulators Highlight tabulators Tab Width 4 characters # For word wrap (static) # To avoid a long line and also to justify text Enable static word wrap Show static word wrap marker (if applicable) Word wraps at 80 charactersThis post however doesn't deal with multi-document projects (Eg: thesis). In my next post I will talk about how to implement handling multi-document projects in Kile + Okular with synctex.
This file was generated via LATEX2html.