[OS X TeX] Installing Asymptote
Richard Koch
koch at math.uoregon.edu
Tue Sep 14 05:55:29 CEST 2010
Folks,
I should have sent this message three days ago. I was paying attention, but not enough attention.
In the following message, William Adams is trying to use the Asymptote.engine in
TeXShop to process a sample TeX file with asymptote figures, also included in
TeXShop.
On Sep 10, 2010, at 5:04 AM, William Adams wrote:
> I must be dense or still not have something set up right though. I compile the Asymptote Sample.tex file w/ the Asymptote engine (multiple times) I get:
>
> Package asymptote Warning: file `Sample-1.pdf' not found on input line 71.
>
>
> Package asymptote Warning: file `Sample-2.pdf' not found on input line 87.
>
>
> Package asymptote Warning: file `Sample-3.pdf' not found on input line 111.
>
> The top of the log file says:
>
> This is pdfTeX, Version 3.1415926-1.40.11 (TeX Live 2010)
> restricted \write18 enabled.
> entering extended mode
>
> and all of the packages are loading like to:
>
> (/usr/local/texlive/2010/texmf-dist/tex/latex/base/article.cls
>
> w/ no other errors, except for:
>
> error: could not load module 'Sample.asy'
>
> Presumably it's something really simple....
This is an error in the Asymptote engine included in TeXShop, which did not keep up
with changes made in the latest Asymptote program. To fix the problem,
edit the Asymptote engine, which is either in ~/Library/TeXShop/Engines
or in ~/Library/TeXShop/Engines/Inactive/Asymptote.
The correct version is given below, and will shortly be in the version of TeXShop
on my web page.
The email thread continued with a suggestion by Herb Schulz to use latexmk with
Asymptote, and a remark by William Adams that latexmk worked. If you use Latexmk rather than this
Asymptote engine, Asymptote will not reprocess images when the document is
typeset again, unless the image changes.
Dick Koch
koch at math.uoregon.edu
----------------------
#!/bin/tcsh
set path= ($path /usr/texbin /usr/local/bin)
set filename = "$1"
set asyname = "${filename:r}"
pdflatex -synctex=1 "$filename"
asy -v "$asyname"-*.asy
pdflatex -synctex=1 "$filename"
More information about the macostex-archives
mailing list