2

I use LaTeX and rubber to compile my tex sources via command line. The command I usually use is rubber --pdf test.tex && rubber --clean test.tex. How can I create a custom command so that I only have to type rubber text.tex or rubb text.tex (or something like this) for it to do the same as the long command above?

Til Hund
  • 625

1 Answers1

2

I would use something simple, like

#!/bin/bash
rubber --pdf $1 && rubber --clean $1

then you save it in a folder in your $PATH and you are done.

I usually suggest to create (if not present) the folder ~/bin to contain your user's scripts, and then add it to your $PATH variable, following this solution.

dadexix86
  • 6,776