ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Lua:mplib
Date: Thu, 23 Sep 2010 10:08:41 +0200	[thread overview]
Message-ID: <4F062860-81F9-44C5-A768-1AECAA5B6BB4@gmail.com> (raw)
In-Reply-To: <op.vjg6vojs8lgizc@lk-2008-nbk>


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


Am 23.09.2010 um 09:53 schrieb Procházka Lukáš:

> Hello,
> 
> I'm looking for some stuff about calling MP from ConTeXt Lua.
> 
> The only thing I found is a short reference at http://www.luatex.org/svn/trunk/manual/luatexref-t.pdf, but even when I read some basics (pages 79-83), I don't even know how to draw a line between two points.
> 
> So I'd like to find a tutorial or examples or a deeper reference about how to call MP via Lua from ConTeXt. - Any idea?

You don’t have to think so complicated:

\starttext
\startluacode
context.startMPpage()
context("draw fullcircle scaled 2cm;")
context.stopMPpage
\stopluacode
\stoptext

See also http://pragma-ade.com/show-man-44.htm

Wolfgang


[-- Attachment #1.2: Type: text/html, Size: 1230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 486 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2010-09-23  8:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23  7:53 Lua:mplib Procházka Lukáš
2010-09-23  8:08 ` Wolfgang Schuster [this message]
2010-09-23  8:20 ` Lua:mplib Philipp Gesang
2010-09-23  8:35   ` Lua:mplib Procházka Lukáš
2010-09-23  9:24     ` Lua:mplib Hans Hagen
2010-09-23  8:23 ` Lua:mplib luigi scarso

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=4F062860-81F9-44C5-A768-1AECAA5B6BB4@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --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).