Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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
add comment

2 Answers

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 at 8:28
add comment

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
add comment

Your Answer

 
discard

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.