[OS X TeX] EPS to PDF--en masse?

Thomas Braun thomas.braun at unibas.ch
Mon Jun 7 00:20:37 CEST 2004


OK. apply is MUCH simpler. Did not know that....

Thomas

On 07.06.2004, at 00:15, Thomas Braun wrote:

> Hi
>
> I was using a csh batch for such a task some years ago (see below). 
> You need ghostscript for that (contributed by the i-installer). Copy 
> the patch-file lines in a texteditor and save it in the directory with 
> the epsfiles e.g. as allpdf. Make it executable with
> chmod +x allpdf
> and type
>  ./allpdf
>
> in the terminal (you have to navigate first to the corresponding 
> directory with cd and the path name or simply drag the folder on the 
> terminal window).
>
> I hope this helps and keeps the quality. I had mixed experiences with 
> ghostscript (or the eps files produced by some programs).
>
> Thomas
>
> ---Batchfile:
> #/bin/csh
> #
> set WORKFILE
> #
> foreach FILE ( *.eps )
>      set WORKFILE=`\ls $FILE | cut -d\. -f1`
>      echo "*****Converting "$FILE
>      ps2pdf $WORKFILE.eps $WORKFILE.pdf
> end
> echo "done"
>
>
> On 06.06.2004, at 23:38, Louis A.Talman wrote:
>
>> I've a few hundred EPS files, produced by Mathematica, that I want to 
>> include in some documents I'm LaTeXing.  The files are in batches of 
>> several dozen, serially named.  I can convert them to PDFs by 
>> dropping them on the TeXShop icon.  However, in the numbers I want to 
>> make the conversions, that's very inconvenient--TeXShop wants to open 
>> a window for each, and then I have to close the windows or shut down 
>> TexShop and restart it for the next batch.  Moreover, it seems to 
>> take forever if I drop more than about 20 of them on the icon at 
>> once.
>>
>> Neither Adobe Distiller nor Lemke's Graphic Converter does as good a 
>> job--the quality PDFs thet produce is inferior to that of those 
>> produced by TeXShop.
>>
>> Is there a way to script this so it'll run in the 
>> background--preferably without opening a window for each picture?
>>
>> --Lou Talman
>>   Department of Mathematical and Computer Sciences
>>   Metropolitan State College of Denver
>>
>>   <http://clem.mscd.edu/~talmanl>
>>
>> -----------------------------------------------------
>> Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
>> Please see <http://www.esm.psu.edu/mac-tex/> for list
>> guidelines, information, and LaTeX/TeX resources.
>>
>>
>
> -----------------------------------------------------
> Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
> Please see <http://www.esm.psu.edu/mac-tex/> for list
> guidelines, information, and LaTeX/TeX resources.
>
>

-----------------------------------------------------
Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
Please see <http://www.esm.psu.edu/mac-tex/> for list
guidelines, information, and LaTeX/TeX resources.





More information about the macostex-archives mailing list