[OS X TeX] bibtex <filename>.rsp

Herbert Schulz herbs at wideopenwest.com
Fri Mar 24 15:49:18 CET 2006


On Mar 24, 2006, at 7:23 AM, Rechtsanwalt Friedrich Vosberg wrote:

> Morning.
>
> I want to use jurarsp
>
>   ftp://dante.ctan.org/tex-archive/macros/latex/contrib/jurarsp.zip
>
> a class to cite german jugdements. The package makes necessary to run
>
>   latex <filename>
>   bibtex <filename>.rsp
>   latex <filename>  ^^^
>   latex <filename>
>
> How can I run
>
>   bibtex <filename>.rsp
>
> in TeXShop?
>
> TIA and kind regards. Friedrich
>

Howdy,

Go to ~/Library/TeXShop/Engines/ and duplicate one of the .engine  
files there; this preserves the execute bit so you don't have to set  
it in Terminal later. Rename the duplicate something like  
jurarsp.engine and open it up (TeXShop will open it by default when  
you double click it). Replace the contents of the file with

#!/bin/sh
basefname="`basename "$1" .tex`"
latex "$1"
bibtex "${basefname}.rsp"
latex "$1"
simpdftex latex "$1"

which runs latex, then bibtex on the correct file, then latex again  
and finally simpdftex as latex with the addition of sending the  
final .dvi file through dvips and finally producing a .pdf file.

If you would rather use pdflatex, producing a .pdf file directly, you  
can use

#!/bin/sh
basefname="`basename "$1" .tex`"
pdflatex "$1"
bibtex "${basefname}.rsp"
pdflatex "$1"
pdflatex "$1"

instead.

Once the engine file is saved in ~/Library/TeXShop/Engines/, enter  
the line

%!TEX TS-program = jurarsp

(note the space before and after the `=') at the beginning of  
the .tex file.

You can get similar information by searching through the list  
archives at <http://tug.org/pipermail/macostex-archives/>.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)


------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list