ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mathias Schickel <msch@fa.uni-tuebingen.de>
To: ntg-context@ntg.nl
Subject: Using Asymptote in ConTeXt
Date: Thu, 19 Jan 2017 13:09:38 +0100	[thread overview]
Message-ID: <D3AB72E9-AD22-4E8E-A711-419C2B65A6D3@fa.uni-tuebingen.de> (raw)
In-Reply-To: <3FFD8942-E01F-4C83-A2F2-A1E0FAF25230@fa.uni-tuebingen.de>


[-- Attachment #1.1: Type: text/plain, Size: 987 bytes --]

Dear ConTeXt users,

presently I try to use asymptote to render a graphic in a ConTeXt document using the module filter. I have found some suggestions on this mailing list how this can be done:

https://mailman.ntg.nl/pipermail/ntg-context/2015/080581.html <https://mailman.ntg.nl/pipermail/ntg-context/2015/080581.html>

I replaced the asymptote code with my own one and everything works fine. But if I use LaTeX together with the asymptote package I get an interactive 3D graphic (if I open the output with Adobe Acrobat). To do this I compile my attached file LuaLaTeX-asymptote.tex and then I compile the asymptote code via the command

asy LuaLaTeX-asymptote-*.asy

in the console. If I compile the LaTeX document again the result is the attached pdf LuaLaTeX-asymptote.pdf that contains the interactive graphic.

Can I achieve the same using ConTeXt if I modify the attached code example I used? What do I have to modify?

Best regards
Mathias Schickel







[-- Attachment #1.2.1: Type: text/html, Size: 1781 bytes --]

[-- Attachment #1.2.2: LuaLaTeX-asymptote.tex --]
[-- Type: application/x-tex, Size: 1350 bytes --]

[-- Attachment #1.2.3: Type: text/html, Size: 470 bytes --]

[-- Attachment #1.2.4: LuaLaTeX-asymptote.pdf --]
[-- Type: application/pdf, Size: 241044 bytes --]

[-- Attachment #1.2.5: Type: text/html, Size: 470 bytes --]

[-- Attachment #1.2.6: ConTeXt-abstract.tmp --]
[-- Type: application/octet-stream, Size: 16 bytes --]

  % no abstract

[-- Attachment #1.2.7: Type: text/html, Size: 470 bytes --]

[-- Attachment #1.2.8: ConTeXt-Asymptote.pdf --]
[-- Type: application/pdf, Size: 44782 bytes --]

[-- Attachment #1.2.9: Type: text/html, Size: 471 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

           reply	other threads:[~2017-01-19 12:09 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <3FFD8942-E01F-4C83-A2F2-A1E0FAF25230@fa.uni-tuebingen.de>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D3AB72E9-AD22-4E8E-A711-419C2B65A6D3@fa.uni-tuebingen.de \
    --to=msch@fa.uni-tuebingen.de \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).