HOWTO: clean setup of TeXlipse and SumatraPDF

  • Anonymous - 2009-08-06

    Hi all,

    I'm so happy with TeXlipse I decided to write a bit on how to set it up on Windows together with Sumatra PDF. Here's the link:

    If you don't feel like following the link (which does have some useful screenshots), here's the text:

       1. Download and install MikTeX 2.7 (or newer if you're up for it). Shouldn't be too difficult.
       2. Get a good version of Eclipse. A bit more difficult, since there are gazillion versions floating on the internet. The standard ones come with support for either C++ or Java, which we don't want. The cleanest distribution I could find is the Platform Runtime Binary. Download it and extract the zip file in C:\Program Files\ or the likes. Also put a shortcut to eclipse.exe on the desktop if you're lazy like me.
       3. Fire up Eclipse and follow the instructions on the TeXlipse website in order to install TeXlipse.
       4. Download and install Sumatra PDF. Also easy.
       5. And now the going gets though: it's time to configure TeXlipse. Luckily the TeXlipse folks also have a page for that. The extra ingredient from me is to add the switch "-synctex=1" to the pdflatex command, which enables PDF syncing. The pdflatex config should look something like this: <screenshot>
       6. Add a new viewer configuration for SumatraPDF, and make it the top of the list so it's the default viewer. Here's how its config should look: <screenshot>
       7. We're almost done. We still need to configure the inverse search for Sumatra PDF. Create a .BAT file in the Eclipse directory (or somewhere else convenient), with the following line:

              java -classpath "%ECLIPSEDIR%\plugins\net.sourceforge.texlipse_1.3.0\texlipse.jar" net.sourceforge.texlipse.viewer.util.FileLocationClient -p 55000 -f %1 -l %2

          There are no hard line breaks here, it's just one single line. Also add a environment variable via Control Panel -> System -> Advanced -> Environment variables -> System variables -> New. The variable name should be "ECLIPSEDIR", its value "c:\program files\eclipse" or wherever you installed Eclipse (both without the quotes).
       8. Configure Sumatra PDF for inverse search by running the command

              SumatraPDF.exe -inverse-search "\&quot;C:\Program Files\eclipse\inverse_search.bat\&quot; \&quot;%f\&quot; %l"

          where you should take care to properly point to the .BAT file you created in the previous step.

    And that's it. Now you should be ready to experience all the wonders of the TeXlipse + Sumatra PDF combination. Enjoy!

  • Laloi

    Laloi - 2010-05-10

    And you can configure forward search too, with this parameters :
    In Eclipse / Window / Preferences / TeXlipse / Viewer Settings / SumatraPDF :
    Viewer name : SumatraPDF
    Viewer command : C:\Program Files\SumatraPDF\SumatraPDF.exe
    Viewer arguments : -reuse-instance -inverse-search "\"C:\Program Files\eclipse\texlipse-inverse-search.bat\" \"%f\" %l"

    DDE message to send on view :
    Server : SUMATRA
    Topic : control

    Viewer input file format : pdf
    Inverse search support : Viewer runs external command
    Viewer support forward search : checked

  • Anonymous - 2012-04-16


    Is this suppossed to work with Ctrl+Alt+F Forward search?

    because this does not work for me!

  • Laloi

    Laloi - 2012-04-16

    I'm sorry, I don't know, because I don't use TeXlipse anymore (TeXlipse is now hasbeen).

    With texworks (which is included in miktex), there is a included PDF viewer, then you have nothing to configure, all is directly ok ! Or, if you prefer, I think there is the same advantage with texmaker.


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks