Skip to content

Using latexmk.py as builder for Texlipse

ms4py edited this page Sep 28, 2011 · 1 revision

Using //latexmk.py// as builder for Texlipse

Introduction

You have to configure latexmk.py as a builder one-time in your workspace. Then you can import the custom builder into each LaTeX-Project you create.

Workspace configuration

  • Choose Run > External Tools > External Tools Configurations...

Open External Tools Configurations

  • First rightclick on Program, then select New.

New External Tools Configuration

  • Now specify a name for your builder (default: "latexmk.py").
  • Under location you have to define the path to your Python executable.
  • Choose the working directory as directory of your current project by selecting Variables and then project_loc.
  • As arguments you have to insert first "/path/to/python/Scripts/latexmk.py" and as last ".texlipse". Between these two arguments you can add additional options. See CommandlineHelp for details. You can add project specific options, too.

Builder settings.

  • Choose Apply and then Close. Don't run your configuration!

Project settings

  • Open the project properties and choose Builders

Project properties

  • Disable Latex Builder and pass the warning. Then choose Import..
  • Choose your created builder and select OK.

Import //latexmk.py//-builder.

  • With Edit... you can pass project specific options to latexmk.py and configure the Eclipse Build Options.
  • If you want your builder run on auto build, you have to specify it under Build Options.
  • Your Builder configuration should now look like this.

New builder configuration.

  • Your project now will be built with latexmk.py when you press "Ctrl+B" or automatically, if you configured auto build.