ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Kevin D. Robbins" <krobbins@alumni.princeton.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Trouble making basic MetaPost graphics using ConTeXt Minimals
Date: Thu, 14 Jul 2011 18:59:05 -0600	[thread overview]
Message-ID: <CAPtCXryw=J3shxY2DYDzPGMOR_zEdO5U9OpGm4n5d8ZEg7gawg@mail.gmail.com> (raw)

Using a fresh install of ConTeXt Minimals today (ConTeXt version
2011.07.14 16:09, luatex version beta-0.70.1-2011051918) I am trying
to build the following MetaPost graphics:

---8<--- file: test.mp
fontmapfile "=lm-math.map" ;

beginfig(1)
  draw fullcircle scaled 3cm ;
endfig ;

beginfig(2) ;
  fill fullcircle scaled 5cm withcolor red ;
endfig ;

beginfig(3);
  numeric u;
  u = 1cm;
  draw (0,2u)--(0,0)--(4u,0);
  pickup pencircle scaled 1pt;
  draw (0,0){up}
    for i=1 upto 8: ..(i/2,sqrt(i/2))*u endfor;
  label.lrt(btex $\sqrt x$ etex, (3,sqrt 3)*u);
  label.bot(btex $x$ etex, (2u,0));
  label.lft(btex $y$ etex, (0,u));
endfig;

end .
---8<---

Building the file using "mpost test.mp" I get the following:

This is MetaPost, version 1.504 (kpathsea version 6.0.0)
(mpost.mp (/opt/tools/ConTeXt/beta/tex/texmf/metapost/base/plain.mp
Preloading the plain mem file, version 1.004))
(./test.mp{pdftex.map}{lm-math.map} [1]
[2]/opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:570:in
`locateseries': undefined method `each' for "tex":String
(NoMethodError)
	from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:397:in
`block in expand'
	from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:392:in
`each'
	from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/base/switch.rb:392:in
`expand'
	from /opt/tools/ConTeXt/beta/tex/texmf-context/scripts/context/ruby/texexec.rb:789:in
`<main>'


>> test.mp
>> test.mpx
! Unable to make mpx file.
l.18   label.lrt(btex
                      $\sqrt x$ etex, (3,sqrt 3)*u);
2 output files written: test.1 .. test.2

The first two graphics are produced correctly, but there is no output
for the third graphic with the labels.

Building the file using "texexec --mptex test.mp" all three graphics
are produced, but the label $\sqrt x$ does not produce the square root
symbol.

Am I doing something obviously wrong? Can anyone reproduce this?

Thanks,

Kevin
___________________________________________________________________________________
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:[~2011-07-15  0:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15  0:59 Kevin D. Robbins [this message]
2011-07-15  1:04 ` luigi scarso
2011-07-15  7:44   ` Hans Hagen
2011-07-15  7:47     ` Mojca Miklavec
2011-07-15  7:50       ` luigi scarso
2011-07-15  8:54       ` Hans Hagen
2011-07-15 16:24   ` Kevin D. Robbins
2011-07-15  7:13 ` Mojca Miklavec
2011-07-15  7:42   ` Hans Hagen
2011-07-15 16:28   ` Kevin D. Robbins

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='CAPtCXryw=J3shxY2DYDzPGMOR_zEdO5U9OpGm4n5d8ZEg7gawg@mail.gmail.com' \
    --to=krobbins@alumni.princeton.edu \
    --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).