[OS X TeX] hyperref error?

Herbert Schulz herbs at wideopenwest.com
Thu May 26 18:54:04 EDT 2011

On May 26, 2011, at 5:39 PM, David Arnold wrote:

> Herbert, Here is part of the script we use on our system, which has some metapost, pstricks, and tikz graphics used in its files:
> if ($os eq 'osx') {
>    print "\nStarting gen_questions.pl ...\n";
>    system "$macbin/gen_questions.pl $testbank --preview=$macqinclude $secondarg";
>    print "\nStarting latex ...\n";
>    system "latex --shell-escape $testbank-preview.tex";
>    system "dvips -o $testbank-preview-pics.ps $testbank-preview.dvi";
>    system "ps2pdf -dAutoRotatePages=/None $testbank-preview-pics.ps $testbank-preview-pics.pdf";
>    system "pdflatex  --shell-escape $testbank-preview.tex";
>    system "rm $testbank-preview.dvi $testbank-preview-pics.ps $testbank-preview.aux q1111-*.*";
> David


Since I don't know if you are using jpg, png, or pdf graphics inclusion I can't make a recommendation. If everything is eps or metapost, pstricks and tkz you can remove the use of the pst-pdf package and simply change the script to use latex, dvips, ps2pdf. For cross reference resolution you can use several runs of latex (2 or 3 usually does it) before dvips and ps2pdf. More information is definitely needed. Even better would be a sample file so we can take a look at the kind of things that are included. Finally, if pdflatex is needed (because of of inlcusion of jpg, png or pdf graphics files) it may be possible to use the auto-pst package or even set up latexmk to do the processing as needed.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)

More information about the MacOSX-TeX mailing list