ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: sometxt in mkiv
Date: Sun, 7 Sep 2008 09:43:54 -0400 (EDT)	[thread overview]
Message-ID: <alpine.DEB.1.00.0809070942140.9440@nqv-yncgbc> (raw)
In-Reply-To: <CC532023-8911-46F1-89D5-0089C9DEAB24@uni-bonn.de>

Hi Thomas,

On Sat, 6 Sep 2008, Thomas A. Schmitz wrote:

> Hi all,
>
> I was just wondering if this is a bug or if it's something that still
> needs to be implemented: the example on p. 10 of Mojca's sometxt MyWay
> works in mkii, yet in mkiv, it doesn't:
>
> \starttext
> \startTeXtexts
> \dorecurse{12}{\TeXtext{\recurselevel}{\recurselevel}}
> \stopTeXtexts
>
> \startMPcode
> numeric r; r = 1.5cm;
> draw fullcircle scaled 2r;
> for i=1 upto 12:
> draw (origin--down) scaled 4pt shifted (0,r) rotated -30i;
> label(sometxt(i), up scaled .75r rotated -30i);
> endfor;
> \stopMPcode
> \stoptext
>
> in mkiv, I get no labels and the somewhat cryptic sentence "[do we
> need TeXtexts in MkIV]" on my pdf. Anybody able to answer this or my
> question?

In MKIV, you can simply use textext for such purposes:

\starttext
\startMPcode
numeric r; r = 1.5cm;
draw fullcircle scaled 2r;
for i=1 upto 12:
draw (origin--down) scaled 4pt shifted (0,r) rotated -30i;
label(textext(decimal i), up scaled .75r rotated -30i);
endfor;
\stopMPcode
\stoptext

Aditya
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


  reply	other threads:[~2008-09-07 13:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-06 11:15 Thomas A. Schmitz
2008-09-07 13:43 ` Aditya Mahajan [this message]
2008-09-07 19:42 ` Mojca Miklavec
2008-09-08  7:22   ` Thomas A. Schmitz
2008-09-08  9:26     ` Hans Hagen
2008-09-08 18:43       ` Thomas A. Schmitz
2008-09-09 15:07       ` Mojca Miklavec
2008-09-09 15:13     ` Mojca Miklavec
2008-09-09 17:23       ` Thomas A. Schmitz
2008-09-08  8:16   ` Hans Hagen
2008-09-07 15:52 Thomas A. Schmitz
2008-09-07 23:32 ` Aditya Mahajan

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=alpine.DEB.1.00.0809070942140.9440@nqv-yncgbc \
    --to=adityam@umich.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).