Pdf4Eclipse integration with Texlipse

Shortly after explaining how to enable cross-platform access to Texlipse project in the last post, a new project emerged on the Eclipse marketplace called Pdf4Tex and it’s developed by the same people who are behind the excellent Texlipse plug-in for LaTeX editing in Eclipse. They announced it on the Texlipse project webpage a couple of weeks ago:

21.10.2011: Pdf reader for Eclipse

Good news everyone. We developed a new project called Pdf4Eclipse, which is a Pdf reader for Eclipse. It is perfectly usable with TeXlipse since it supports SyncTeX and automatic reload of changed pdf documents.
It will soon also be available from TeXlipse’s update site.

With this plug-in, .pdf files can be double-clicked and viewed in Eclipse, without the need to set up external viewers (which can be quite nasty when accessing the same project from multiple OSs as seen before).

Forward and inverse search enable quick source and output snippet locating.


  • Eclipse integration – no need to set up external viewers separatly on different machines
  • Forward searching – right click anywhere in your LaTeX code and choose Forward search to view that element in the pdf file
  • Inverse searching – double click anything in the pdf file to see the corresponding source code highlighted


  • The project’s source and output files must all be inside the project root folder in order for Synctex to work (so don’t choose src/ output/ or similar sub-folders when creating the Texlipse project).
  • The Pdf4Eclipse viewer has to be open for forward searching to work

Since the program is available on the Eclipse marketplace, installation is very simple – drag’n’drop this image to your Ecilpse window (not an active editor, but somewhere in the toolbar):

To enable forward and inverse searching, go to Window – Preferences – Texlipse – Builder Settings, select PdfLatex program and click the Edit… button. Now add this option to the begining of the Arguments text box:


To use the plug-in, simply double-click a pdf file inside your Project Explorer (if it opens with your old viewer, maybe you need to right-click and choose Open With – PDF Viewer). You can drag the editor view to the right side to get optimal side-by-side code’n’design views. Enable automatic building from the Project drop-down menu for that extra “everything refreshes automatically as I write” feeling 🙂

A note for future exploration: it seems there is another new plug-in for integrating BibSonomy citations with Texlipse which might be worth investigating…

Published by


Building apps, analysing data at Punk Rock Dev and sharing weird & cool photographs, drawings, music, films, games... More about me here. You can get new blog posts via RSS or follow @metakermit on Twitter where I also announce new stuff.

2 thoughts on “Pdf4Eclipse integration with Texlipse”

  1. Pretty neet. Another simple way to add to the preview function of TeXlipse is to set eclipse as a pdf viewer in the viewer options and set it on top of list.

    just put %fullfile in arguments and set inverse search unavailable since pdf4eclipse has this feature integrated (to avoid conflicts)

Leave a Reply

Your email address will not be published. Required fields are marked *