When embedding a rendered 3D frame into a 2D picture, if asymptote is run with the -inlinetex option, the generated .tex file is broken as it tries to \includegraphics from a file that doesn't exist.
The \includegraphics should actually be an \input to another .tex file.
The last line tries to include test+0.pdf which doesn't exist. It should instead input test+0.tex which in turn includes test+0_0.pdf. Therefore, if I simply change that to:
then I can use the file in another project and everything works fine.
Note that if I don't use -inlinetex, everything just works without issues. Also, if there's no 3D involved in the drawings, no problems occur and the .tex file is generated correctly.
Asymptote version
Asymptote version 2.73-7 [(C) 2004 Andy Hammerlindl, John C. Bowman, Tom Prince]
ENABLED OPTIONS:
WebGL 3D HTML rendering
OpenGL 3D OpenGL rendering
SSBO GLSL shader storage buffer objects
GSL GNU Scientific Library (special functions)
FFTW3 Fast Fourier transforms
XDR external data representation (portable binary file format for V3D)
CURL URL support
lsp language server protocol
Readline interactive history and editing
Sigsegv distinguish stack overflows from segmentation faults
GC Boehm garbage collector
DISABLED OPTIONS:
Description
When embedding a rendered 3D frame into a 2D picture, if
asymptote
is run with the-inlinetex
option, the generated.tex
file is broken as it tries to\includegraphics
from a file that doesn't exist.The
\includegraphics
should actually be an\input
to another.tex
file.Example
Here is the example file:
The
config.asy
is empty, and I run:asy -inlinetex -tex pdflatex test
, which then generates files:The problem is in
test.tex
:The last line tries to include
test+0.pdf
which doesn't exist. It should instead inputtest+0.tex
which in turn includestest+0_0.pdf
. Therefore, if I simply change that to:then I can use the file in another project and everything works fine.
Note that if I don't use
-inlinetex
, everything just works without issues. Also, if there's no 3D involved in the drawings, no problems occur and the.tex
file is generated correctly.Asymptote version