Installing LaTeX, Eclipse and TeXlipse on Mac OS X

LaTeX is an essential typesetting language for scientific papers and presentations. In this blog post I will explain how to install a complete LaTeX environment on your mac based on MacTex, Eclipse and TeXlipse. These components form a very powerful IDE for writing documents with LaTeX.

Installing a LaTeX distribution

The recommended LaTeX distribution to install on OS X is MacTex. Just follow the link, download the (very large!) installation bundle and execute it.

Installing Eclipse

Eclipse is a very powerful software platform, allowing to install plugins in order to assemble a flexible and powerful IDE. Download Eclipse (Version for Java Developers) here for your appropriate processor architecture. Unpack the file and execute Eclipse.app inside the unpacked folder.

If you are running Mountain Lion and get a system message that “Eclipse can not be executed because the developer is not verified”, unlock the App by starting a Terminal window and typing the following command:

xattr -d com.apple.quarantine /Applications/eclipse/Eclipse.app

Of course, you have to change the path to your custom location.

When Eclipse is started for the first time, it will ask you for a “workspace location”. This is a folder on your hard disk where your projects and files that are edited in Eclipse are stored. Choose an appropriate location of your choice and select “use this as default and do not ask again“.

01_workspace

On the first start, a welcome screen will appear, which you can simply close.

Installing TeXlipse (Option A – via Eclipse Marketplace)

To install the LaTeX plugin for Eclipse named TeXlipse, you simply go to Help -> Eclipse Marketplace.

03_marketplace

Wait until the list is loaded and type texlipse into the search field. TeXlipse will be listed as first option in the list. Click the Install button.

04_marketplace2

In the following dialog, click Next, read and accept the license and then click Finish. If you get a security warning saying that “you are trying to install software with unsigned content”, click OK. After the installation you’ll be asked to restart Eclipse, which you confirm with Yes.

Installing TeXlipse (Option B – Update Site)

If for some reason the menu item Eclipse Marketplace is missing, you can also install TeXlipse via Help -> Install new Software. In that case, you need to provide an Update Site, which is http://texlipse.sourceforge.net/.

Configuring TeXlipse

After the successful installation, TeXlipse needs some configuration. Therefore, go to Eclipse -> Preferences (Shortcut: Cmd + ,).

05_settings

In the preferences, go to TeXlipse -> Builder Settings. Here the paths to the MacTex binaries have to be set.

To set all paths simultaneously, click on the Browse… button and choose your LaTeX executable folder. On my system (64 bit), the path is

/usr/local/texlive/2011/bin/x86_64-darwin

On 32 bit systems, the path should be similar to

/usr/local/texlive/2011/bin/universal-darwin

After the path is selected, hit the Apply button. Now almost all executable paths should be configured (see screenshot).

06_builders

Next, you have to configure a PDF viewer. Go to TeXlipse -> Viewer settings -> New… and add the values shown in the screenshot (Name: open, Command: /user/bin/open, Arguments: %file).

08_viewer

Move your configuration up in the list.

09_viewer2

Creating a LaTeX project

To create your first LaTeX project, right click inside the Package Explorer (on the left) and choose New -> Project… and in the dialog select TeXlipse -> LaTeX Project. On the next screen, enter a project name and the language code and choose the output format pdf. The builds commands should automatically switch to pdflatex. The article template is a good starting point.

07_project

When you click Finish, Eclipse will ask you if the LaTeX perspective should be opened, which you confirm with Yes.

Building the PDF

To build the PDF, simply make changes to a .tex file and save it. Eclipse will automatically trigger a PDF build on every document save action. You can view the output in the console (located at the bottom of the IDE by default). To view the PDF, use the shortcut Cmd + 4. If everything went fine, you should see a simple PDF file:

10_pdfNow you are ready to write great papers with LaTeX. Enjoy 🙂

 

10 thoughts on “Installing LaTeX, Eclipse and TeXlipse on Mac OS X

  1. Hey Dave,

    thanks for the post. I was looking for exactly this kind of article.

    In your experience is TeXlipse slower compared to a setup with i.e. AquaMacs? Have you tried other editors and have some personal pro and con list for the likes of TaXmaker, TeXshop, TeXlipse etc. (I am aware of the wiki entry with the comparison table of what each one is capable of – but I am looking more after some personal views).

    Greetz,
    sakir

    • Hi Sakir,
      I only have worked with TeXnicCenter on Windows and TeXlipse on Mac. It has about the same performance except for the startup time, which is longer for Eclipse but in my opinion it is worth the editing experience.
      Best regards,
      Dave

  2. Hi Dave,
    thank you for your Blog.

    Can you help me with an example, to in insert a bibliography? I’m trying to get BibTex to work, but i don’t have success with other examples. It would be very helpfully.

    Best regards,
    Jens

    • Hi Jens,
      here is a minimal example:
      \usepackage[style=authoryear,doi,url,dashed=false,mcite,maxnames=2]{biblatex}
      \addbibresource{thesis.bib}
      \addcontentsline{toc}{chapter}{Bibliography}
      \printbibliography[maxnames=99]

  3. Hi Dave,
    thank you for your blog!

    I have a problem configuring makeindex.
    Under Preferences -> Texlipse -> Builder Settings -> Makeindex program (press Edit) I find the following argument string: ” %input -s %style”
    %style must be replaced by my own style-file, but how?

    Best regards
    Nikolas

    • Hi Nikolas,
      it’s best to leave the builder settings set to their default values. If you right-click on your project and then go to Properties -> Latex Project Properties you will find a text field named “Makeindex style file”. Here you can set your custom file and %style will be replaced with that (not tested, but that’s how I guess it works).
      best,
      Dave

Leave a Reply to dave Cancel reply

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