TransWikia.com

Is this the right way to use Asymptote in LaTeX?

TeX - LaTeX Asked by Lee Laindingold on January 9, 2021

enter image description here

This is the code i have written:

documentclass[12pt,openany]{book}

usepackage{asymptote} 

begin{document} 

begin{asydef} 
import three; 
import solids; 
end{asydef}

begin{asy} 
draw((0,0)--(100,100))

end{asy}

end{document}

This is whats written down there:

Package asymptote Warning: file `asymptote-1.pdf' not found on input line 15.

(asymptote.aux) )
No pages of output.
Transcript written on asymptote.log.

Sorry, but "MiKTeX Compiler Driver" did not succeed.

The log file hopefully contains the information to get MiKTeX going again:

  C:/Users/OEM/AppData/Local/MiKTeX/2.9/miktex/log/texify.log

You may want to visit the MiKTeX project page, if you need help.

I have already downloaded the asymptote package… what have I done wrong?
I am merely following the instructions here:

enter image description here

To be honest, I have been using LaTeX for a while now but im still new to Asymptote…….Im desperately trying to draw my first Asymptote graphic —even a straight line would be good…..but i havent had any progress
am i doing everything right? Or have I done everything wrong? Do i draw an Asymptote graphic in LaTeX this way? Thanks!

One Answer

Step 1 (the first latex step):

latex main.tex

Step 2 (the asy step):

asy main-1.asy

Step 3 (the second/final latex step):

latex main.tex

Answered by Bo Thidé on January 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP