ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Fabrice Larribe <larribe.fabrice@uqam.ca>
Subject: Re: How is it possible to include DraTex codein	Context?
Date: Fri, 25 Nov 2005 13:14:40 -0500	[thread overview]
Message-ID: <43875490.1060906@uqam.ca> (raw)
In-Reply-To: <3DA71F8D231E5F40956368B045D89FB4035821D4@calepin.gst.uqam.ca>

Hans Hagen wrote:

> Fabrice Larribe wrote
>
> >>
> > Thanks for your help. I have put the two files in context/base, and
> > use \usemodule. In the log,
> > the system inform that the two modules are loaded. But I have the same
> > error, "No room for a new \dimen".
> > So this is not working. Unless you have others ideas, I guess I have
> > to do my figures in plain tex to obtain
> > pdf, and then use the pdf in Context. Of course, a better solution is
> > to learn metafun....!!
> > Thanks for your help.
>
>
> can you make a small test file that shows the problem?
>
I'm not sure if I can atatch a file to mailing-list, so I paste here a 
piece of code, which works with Tex: (between \Draw and \EndDraw of course).

\usemodule[dratex]
\usemodule[Aldratex]

\starttext

\Draw
  \Ragged(1)
  \MoveTo(0,0)\CircleNode(e0)(--0--)\MarkLoc(e0)
  \MoveTo(120,0)\CircleNode(e1)(--1--)\MarkLoc(e1)
  \MoveTo(60,80)\CircleNode(e2)(--2--)\MarkLoc(e2)
  \ArrowHeads(1)
  
\MoveToLoc(e1)\Rotate(20)\CycleEdgeSpec(40,30)\CycleEdge(e1)\EdgeLabel(--$1-p$--)
  \CurvedEdgeSpec(15,0.2,345,0.2)
  \CurvedEdge(e0,e2)\EdgeLabel(--$1$--)
  \CurvedEdge(e1,e2)\EdgeLabel(--$p$--)
  \CurvedEdge(e2,e0)\EdgeLabel(--$1-p$--)
  \CurvedEdge(e2,e1)\EdgeLabel(--$p$--)
\EndDraw

\stoptext

> (when we have it working i'll ask Eitan to fix this, i.e. adapt dratex
> to etex usage)
> Hans
>
This would be wonderfull. Dratex is simple and powerfull, and portable 
between plain tex, latex and perhaps one day context !
Thanks for the help. This is much appreciated.
Fabrice.

       reply	other threads:[~2005-11-25 18:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3DA71F8D231E5F40956368B045D89FB4035821D4@calepin.gst.uqam.ca>
2005-11-25 18:14 ` Fabrice Larribe [this message]
2005-11-25 20:17   ` Hans Hagen
     [not found] <3DA71F8D231E5F40956368B045D89FB4035821E3@calepin.gst.uqam.ca>
2005-11-26  0:25 ` Fabrice Larribe
2005-11-26  0:33   ` Hans Hagen
     [not found] <3DA71F8D231E5F40956368B045D89FB4035821F0@calepin.gst.uqam.ca>
2005-11-26  1:00 ` Fabrice Larribe

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=43875490.1060906@uqam.ca \
    --to=larribe.fabrice@uqam.ca \
    --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).