Installing and configuring MikTeX, TeXlipse, and Pdf4Eclipse to write and compile LaTeX documents

Setting up a „development“ environment for LaTeX is quite complicated compared to installing Microsoft Word ­čśë And it gets even more complicated, if you decide to use Eclipse as the platform for writing your documents. However, as I had to setup such an environment from scratch today, here’s how I did it with minimum impact on the system.

  1. (Optionally) create a base directory in which all of the programs below will get installed, e.g. D:\LaTeX.
  2. Download MikTeX – Portable Edition and extract it to D:\LaTeX\MikTeX.
  3. Download and install the JDK: Java SE Downloads. If you have security concerns like me, make sure to download the latest version and enable daily updates and/or disable the Java plugin in your browser.
  4. Download Eclipse (the most basic version will do, e.g. „classic“ or „for Java developers“) and extract it to D:\LaTeX\Eclipse.
  5. Start Eclipse and choose a convenient path for the workspace (where your LaTeX projects will get saved), e.g. D:\LaTeX\Workspace.
  6. Install TeXlipse into Eclipse: Help – Install New Software – Add a new repository with name „TeXlipse“ and location „http://texlipse.sourceforge.net/“. Select all installable items as shown below. As you can see, Pdf4Eclipse will already be installed, too.
    Installation of TeXlipse
    Simply click through the installation wizard and restart Eclipse after the installation is finished.
  7. After TeXlipse is installed, you should already be able to open the LaTeX perpective in Eclipse.
    Open the LaTeX perspective in Eclipse
  8. Now it’s time to tell TeXlipse where it can find your LaTeX executables and therefore be able to compile your LaTeX documents. Go to Window – Preferences – Texlipse – Builder Settings, enter the path to your MikTeX executables – D:\LaTeX\MikTeX\miktex\bin – into Bin directory of TeX distribution, and click Apply. That should automatically fill in all the needed programs in Programs used for building the document for you.
    Configure TeXlipse to use MikTeX
  9. Now you should already be able to create and compile your first LaTeX project. Right-click into your Project Explorer and create a new project.
    Create a new LaTeX project with TeXlipse
    Create a new LaTeX project with TeXlipse (2)
    If you save document.tex, it should automatically be compiled. Take a look at the corresponding console output.
    Compiling a LaTeX project with TeXlipse
  10. If you double-click on the created document.pdf file in the Project Explorer (a Refresh may be needed to show the file), it should be opened with Pdf4Eclipse. If you double-click a line in the PDF file, Eclipse should now jump to the corresponding position in your LaTeX source.

And that’s it! Now you can start writing your LaTeX document. If you need a template, take a look at these blog posts (they are in German):

├ťber uns Stefan

Polyglot Clean Code Developer

5 Kommentare

  1. Sehr gute Anleitung, danke!

  2. Sehr hilfreiche Anleitung f├╝r jemanden, der bisher nur unter Linux und mit einem entsprechenden Editor mit Latex gearbeitet hat. Danke!

  3. Tolle Anleitung. Allerdings reicht es f├╝r LaTeX, wenn man das JRE (statt des JDKs) installiert.

  4. F├╝r LaTeX vielleicht, aber nicht f├╝r Eclipse. Daf├╝r braucht man ein JDK.

  5. Sehr gute anleitung! Habe stunden rumgemacht! Mit deiner Anleitung ist man in 3min durch :-)!“ DANKE <3

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht ver├Âffentlicht. Erforderliche Felder sind mit * markiert.

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax