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).
- 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…