[OS X TeX] Autorotation again

Herbert Schulz herbs at wideopenwest.com
Fri Oct 3 17:08:49 EDT 2008


On Oct 3, 2008, at 2:27 PM, Roberto Avanzi wrote:

> Until a couple of days ago I used to modify /usr/texbin/simpdftex
> to add a -dAutoRotatePages=3D/None parameter to the ps2pdf13 call.
>
> I would change lines 488-497 as follows
>
> 	if [ "${distillerfilter}" = "yes" ]; then
> 		/bin/echo "### ${distillerprog} <${psfile} >${pdffile}"
> 		"${distillerprog}" "-dAutoRotatePages=3D/None" <"${psfile}" >"$ 
> {pdffile}" || \
> 			{ /bin/echo "### FAILED to generate ${pdffile} (${status})"
> 			  exit 1; }
> 	else
> 		/bin/echo "### ${distillerprog} ${psfile} ${pdffile}"
> 		"${distillerprog}" "-dAutoRotatePages=3D/None" "${psfile}" "$ 
> {pdffile}" || \
> 			{ /bin/echo "### FAILED to generate ${pdffile} (${status})"
> 			  exit 1; }
>
> I made a TL updare (using tlmgr) this morning and noticed that some
> pages were again rotated automatically.  The /usr/texbin/simpdftex  
> file
> had been modified (updated?) and thus I modified the likes again. Now,
> the result at the end of a compilation had become
>
> -dvar=name requires name=null, true, or false
> ### FAILED to generate /tmp/altpdflatex.90958-1223061711/wurzel- 
> utalca.pdf ()
>
> How can I turn autorotation  off again?
>
>
> thanks
>
>  Roberto


Howdy,

Since updates to simpdftex via tlmgr will wipe out any changes you  
make directly to that script the idea is to use another technique.

I don't know if you use TeXShop but this is what I'd do.  
Unfortunately, simpdftex doesn't have an option to add options to the  
ps2pdf call so you can't just add it in the TeXShop preferences.  
However, if you use latexmk packaged for TeXShop (latest version is  
Latexmk401TeXShop218.zip on <http://homepage.mac.com/herbs2> and it  
comes with instructions to install and use it) you can add the option  
to the $ps2pdf variable in ~/Library/TeXShop/bin/latexmkrc like this

$ps2pdf = 'ps2pdf14 -dAutoRotatePages=3D/None %O %S %D';

(test it---you may have to escape the / by writing it as \/) and then  
put

%%!TEX TS-program = latexmk

at the top fo the file.

Good Luck,

Herb Schulz
(herbs at wideopenwest dot com)






More information about the MacOSX-TeX mailing list