{"id":211,"date":"2013-03-06T15:01:11","date_gmt":"2013-03-06T15:01:11","guid":{"rendered":"http:\/\/www.creatis.insa-lyon.fr\/~grenier\/?p=211"},"modified":"2013-03-29T07:47:12","modified_gmt":"2013-03-29T07:47:12","slug":"asymptote-3d-pdf-on-windows","status":"publish","type":"post","link":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/?p=211","title":{"rendered":"Latex+Asymptote: embed 3D figure in pdf file under windows"},"content":{"rendered":"<p><a href=\"http:\/\/asymptote.sourceforge.net\/\" target=\"_blank\">Asymptote<\/a> is a powerful graphics language that can produce pdf with 3D feature and be easily integrated with Latex.<\/p>\n<p>Here are the steps needed to produce <a title=\"Test of Asymptote pdf\" href=\"wp-content\/uploads\/TaT\/testAsymptote.pdf\">this pdf<\/a> under windows, with <a href=\"http:\/\/www.xm1math.net\/texmaker\/index_fr.html\" target=\"_blank\">TexMaker <\/a>and <a href=\"http:\/\/miktex.org\/\" target=\"_blank\">MikTeK<\/a> and of course asymptote.<\/p>\n<p>First, installation:<\/p>\n<ol>\n<li>Install TexMaker (and MikTex or TexLive depending of your OS). Follow the french instructions <a href=\"http:\/\/www.xm1math.net\/doculatex\/index.html\">here<\/a>.<\/li>\n<li>Install Asymptote from the guide <a href=\"http:\/\/asymptote.sourceforge.net\/doc\/Installation.html#Installation\">here<\/a>. The installation of ImageMagic is not necessary. But psview and Ghostscript are needed. Remind that asymptote uses mingw.<\/li>\n<li>Configure TexMaker:<\/li>\n<ol>\n<li>The executable of asymptote should be set in Option -&gt; Configure -&gt; Commands. <a title=\"TexMake Compil Rapid\" href=\"wp-content\/uploads\/TaT\/TexMaker_ConfigCommand.png\">See this<\/a>.<\/li>\n<li>The &#8216;Compilation Rapide&#8217; or <em>quick compil<\/em> should be changed to the setting &#8220;PdfLatex + Asymptote + PdfLatex + Voir Pdf&#8221;. <a title=\"TexMake Compil Rapid\" href=\"wp-content\/uploads\/TaT\/TexMaker_ConfigCompilRapid.png\">See here<\/a>.<\/li>\n<\/ol>\n<\/ol>\n<p>Then, use it:<\/p>\n<ol>\n<li>Download and expand the following <a title=\"Zip archive\" href=\"wp-content\/uploads\/TaT\/TestAsymptote.zip\">archive (zip)<\/a><\/li>\n<li>Compile the TestAsymptote.tex file (this file is well inspired from the asymptote example). With Texmaker it is just openning the file and pressing &#8216;F1&#8217;. The pdf\u00a0 file should be created.<\/li>\n<\/ol>\n<p>Futur use:<\/p>\n<ol>\n<li>Remember to copy the asymptote.asy file in your project directory (included into the archive)<\/li>\n<li>The example I do is reading two ASCII text files and displaying the data in an interactive 3D box with axis.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>More reading on this topic<\/p>\n<ul>\n<li><a href=\"http:\/\/www.xm1math.net\/texmaker\/asymiktex.html\">Nice how to &#8220;Miktex and Asymptote&#8221; with many screenshots<\/a> (in French).<\/li>\n<li>One may be interested by <a href=\"http:\/\/www.xm1math.net\/pdfadd\/index.html\" target=\"_blank\">PdfAdd software<\/a>.<\/li>\n<li>It is also possible to compile asymptote file (.asy) directly from NotePad++, steps perfectly detailed <a href=\"http:\/\/asy.gmaths.net\/forum\/installation-asymptote-f21\/notepad-l-editeur-qu-il-faut-sous-windows-pour-asymptote-t148.html\">here <\/a>(in French). For big document this is the good way of working (and to debug your asy files also!)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Asymptote is a powerful graphics language that can produce pdf with 3D feature and be easily integrated with Latex. Here are the steps needed to produce this pdf under windows, with TexMaker and MikTeK and of course asymptote. First, installation: Install TexMaker (and MikTex or TexLive depending of your OS). Follow the french instructions here. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-211","post","type-post","status-publish","format-standard","hentry","category-tips-and-tricks"],"_links":{"self":[{"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=\/wp\/v2\/posts\/211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=211"}],"version-history":[{"count":21,"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=\/wp\/v2\/posts\/211\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=\/wp\/v2\/posts\/211\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=211"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=211"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.creatis.insa-lyon.fr\/~grenier\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}