[OS X TeX] Changing texdoc behaviour

Charilaos Skiadas skiadas at hanover.edu
Mon Jan 29 07:56:44 CET 2007


On Jan 28, 2007, at 11:26 PM, Alan Munn wrote:
>>
>> dvipdf $FileName $OutputFile
>> open -a preview $OutputFile
>
> Thanks.  That was what I figured out soon after.
>
I would quote most of these variable names, in case they have spaces  
in them:

#!/bin/sh
FileName= `basename $1 .dvi`
OutputFile= "/var/tmp/$FileName.pdf"
dvipdf "$FileName" "$OutputFile"
open -a preview "$OutputFile"

Perhaps it would never happen, but it is a good habit to get into.

> Alan

>

Haris



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the macostex-archives mailing list