11

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.

2 Answers 2

5

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.

3
  • I get CallArity-TFP.tex_lhs:2: unknown directive 'setlist' – any ideas? Mar 11, 2014 at 8:28
  • According to the manual, accesible with info rubber, you should type % rubber: set arguments -shell-escape.
    – Nemikolh
    Aug 11, 2014 at 18:10
  • 1
    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, 2015 at 17:41
1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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