#27 Feature request: allow builds in other directories


It'd be nice if asymptote supported a directory structure like


where all the .tex and .asy files reside in src/ and all the output,
including intermediate files goes into build/, thereby not polluting
src and allowing for it to be readonly.

this works with tex. I can do something like

TEXINPUTS=src: pdflatex -output-directory build u3.tex

leaving src untouched except to read u3.tex from it and yielding

This won't work with embedded asymptote (\begin{asy}...\end{asy}).

There's no way to redirect the output (that i'm aware of) for all of the
resulting files (u3_1.pdf, u3_2.pdf, etc.).


asy build/u3.asy

they end up in my current directory. Now, I can do something like

( cd build && asy u3.asy )

which leaves all of the output in the build dir. While that might sound
like the end of the story, I still need to run pdflatex to take those
newly generated graphics into consideration. The asymptote module
will not find them unless they're in my current working directory.

There should be a way to tell the asymptote module where to look for those PDFs.


  • John Bowman

    John Bowman - 2008-10-13

    This is a feature request, not a bug. We'll work on this soon, but it won't make the 1.45 release. I always wanted to do this but didn't know that
    (pdf)latex supports a -output-directory option.

  • John Bowman

    John Bowman - 2008-10-18
    • summary: asymptote module does not find its graphics --> Feature request: allow builds in other directories
  • John Bowman

    John Bowman - 2008-12-09

    In svn r3838, one can specify an alternate output directory /dir with -o /dir/
    This directory is now also used for temporary files.

  • John Bowman

    John Bowman - 2008-12-09
    • labels: 673138 -->
    • status: open --> closed-fixed

Log in to post a comment.