ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@mrao.cam.ac.uk>
Subject: Re: \sometxt in staticMPfigure
Date: Mon, 25 Sep 2006 20:53:11 -0400	[thread overview]
Message-ID: <E1GS1CB-0008ET-IV@approximate.corpus.cam.ac.uk> (raw)
In-Reply-To: Your message of "Tue, 26 Sep 2006 00:06:04 +0200." <451852CC.5050809@wxs.nl>

With the new beta, this stress test for \sometxt works fine:

====================================================
\setupcolors[state=start]
\starttext
\startstaticMPfigure{fig}
  label(\sometxt{he\color[blue]{ab}lo}, origin) withcolor red;
  draw fullcircle scaled 1cm xscaled 2;
\stopstaticMPfigure

\usestaticMPfigure[fig]

xyz
\stoptext
====================================================

Well, it comes out in red, then blue, but the last two letters ('lo')
are in black, I guess because pdftex doesn't have a color stack.  But
that's not what I was meaning to test.  I just wanted to test \sometxt
and it looks good.

But, the following now doesn't work (I'm pretty sure it would have
worked with 2006.08.08 because I've been using the boxes macros alot):

================= dc2.tex [my crazy naming scheme] ===================
\starttext

\startMPinclusions
  input boxes
\stopMPinclusions

\startstaticMPfigure{fig}
  boxit.h(btex h etex);
  drawboxed(h);
\stopstaticMPfigure

\usestaticMPfigure[fig]

xyz

\stoptext
====================================================

It produces

  This is MetaPost, Version 0.901 (Web2C 7.5.3)
  (/home/sanjoy/texmf/web2c/natural.tcx)
  (texexec-mpgraph.mp
  >> boxit.h
  ! Isolated expression.
  <to be read again> 
		     (
  l.150 boxit.h(
		btex  h etex
  ? 

That's from making:

============== dc2-fig.mp ======================================
;

boxit.h(btex h etex);
drawboxed(h);
====================================================

and then ruby running:

  system(texmfstart --ifchanged=dc2-fig.mp texexec --mpstatic dc2-fig.mp),

which eventually makes the larger file texexec-mpgraph.mp and then does:

  mpost -mem=metafun -translate-file=natural.tcx texexec-mpgraph.mp

which produces the same error.

Hmm, looking at texexec-mpgraph.mp, there's no 'input boxes' line, so
the MPinclusions are not being included?

-Sanjoy

`A society of sheep must in time beget a government of wolves.'
   -- Bertrand de Jouvenal

  parent reply	other threads:[~2006-09-26  0:53 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-25  3:51 Sanjoy Mahajan
2006-09-25 13:45 ` Hans Hagen
2006-09-25 20:39   ` Sanjoy Mahajan
2006-09-25 22:06     ` Hans Hagen
2006-09-25 23:04       ` Sanjoy Mahajan
2006-09-26 10:04         ` Hans Hagen
2006-09-26 12:11           ` Sanjoy Mahajan
2006-10-04 22:01           ` Aditya Mahajan
2006-10-05  8:00             ` Hans Hagen
2006-10-05 12:56               ` Sanjoy Mahajan
2006-09-26  0:53       ` Sanjoy Mahajan [this message]
2006-09-26  9:57         ` Hans Hagen
2006-09-26 12:02           ` Sanjoy Mahajan
2006-09-26 12:30             ` Hans Hagen
2006-09-26 13:33               ` Sanjoy Mahajan
2006-09-26 20:11                 ` Hans Hagen
2006-09-27  4:29                   ` Sanjoy Mahajan
2006-09-26 16:17           ` Sanjoy Mahajan
2006-09-26 16:21             ` Hans Hagen
2006-09-27  4:06               ` Sanjoy Mahajan
2006-09-27  8:03                 ` Hans Hagen

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=E1GS1CB-0008ET-IV@approximate.corpus.cam.ac.uk \
    --to=sanjoy@mrao.cam.ac.uk \
    --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).