# 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.
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.

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

If you save document.tex, it should automatically be compiled. Take a look at the corresponding console output.
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 Stefan

Polyglot Clean Code Developer

### 8 Kommentare

1. arthur

Sehr gute Anleitung, danke!

2. Fabian

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

3. Stromzaehler

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. rasti

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

6. Andi

Danke, der Guide hat mir sehr geholfen, nur hat sich bei Schritt 8. etwas geändert: Der Pfad zu den LaTex executables ist bei miktex-portable-2.9.6521.exe nun unter „D:\LaTeX\MikTeX\texmfs\install\miktex\bin“ zu finden.

7. Guter Hinweis! Danke!