TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Gedit with latex plugin is a great tool for working with latex. However I need to modify standard tool which is is just a call of rubber. I would like to have possibility to to use inverse search. To this end I need to pass -src option to latex compiler and I do not know if it is possible with rubber.

share|improve this question

From a rubber's launchpad bug site:

Actually, there is already a way to do that, although I admit it is not very well documented. From the command line, you can do

$ rubber -c 'setlist arguments --shell-escape' -d foo.tex

Alternatively, you can make this automatic in your document by including a comment line that says

% rubber: setlist arguments --shell-escape

As you can guess, this "arguments" variable can be used to pass arbitrary arguments to the compiler. The complete list of such variables and directives is in the info documentation.

share|improve this answer
I get CallArity-TFP.tex_lhs:2: unknown directive 'setlist' – any ideas? – Joachim Breitner Mar 11 '14 at 8:28
According to the manual, accesible with info rubber, you should type % rubber: set arguments -shell-escape. – Nemikolh Aug 11 '14 at 18:10
Apparently newer versions (I have 1.1) don't support setlist anymore, info rubber says one should just use set, like this: % rubber: set arguments --shell-escape. – eudoxos Jan 22 '15 at 17:41

I have used the following kludge. In my case I wanted to always pass certain additional options to bibtex. Therefore I created the following script and saved it as ~/bin/bibtex:

#! /bin/sh
exec /usr/texbin/bibtex -min-crossrefs=999 "$@"

Then I made sure that ~/bin is in my PATH before /usr/texbin. That's all. Now rubber (and all other tools that invoke bibtex) have the right parameters set.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.