ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re:  loop textext and \MPstring{…}
Date: Wed, 12 Aug 2009 20:34:14 +0200	[thread overview]
Message-ID: <6faad9f00908121134n11fed555n5eb6d41976b8d487@mail.gmail.com> (raw)
In-Reply-To: <E3B6DDA5-297A-4485-8C48-AB695C83A5BE@uni-koblenz.de>

On Wed, Aug 12, 2009 at 12:51, Andreas Harder wrote:
> Am 12.08.2009 um 07:40 schrieb Aditya Mahajan:
>
>> Another way to do this is to use
>>
>> \TeXtext{1}{ABC} etc.
>>
>> and then call
>>
>> draw sometxt(i)
>>
>> For Sec 4.5 of Mojca's my way on sometxt
>> http://dl.contextgarden.net/myway/sometxt.pdf
>
> Thank you for the tip, I tried it, but sometext seems deprecated in mkiv
> ("[do we need TeXtexts in MkIV]").

This only means that you need to send a request to Hans and ask for
reenabling the feature, explaining that it's still usable :) :) :)
It's a question from him after all (I think that I disabled the
feature in my module for mkiv since it didn't work). If he was sure
that it needs to be deprecated, he would not write that string :)

I'm sure that there's a workaround (or at least a dozen of other
ways), but I have no time (and my computer is being repaired again) to
inspect right now.

MKIV is both very powerful and fast, so you could probably also define
strings inside metapost run, something like

string mystrings[]; strings[1] := "ABC"; strings[2] = "DEF";
draw textext(strings[1]);

Untested.

> I've different buffers named 1–12 and would like to pipe them to Metapost. I
> thought I could use a textext(\getbuffer[i])-construct, it failed. So I
> tried it with \setMPtext{}{} …

(There should be at least quotation marks: textext("\getbuffer[i]"),
but I don't clain that it would work then.)

Maybe Hans should answer why \setMPtext fails.

Mojca
___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2009-08-12 18:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-11 14:08 Andreas Harder
2009-08-11 22:07 ` Hans Hagen
2009-08-12  5:40 ` Aditya Mahajan
2009-08-12 10:51   ` Andreas Harder
2009-08-12 13:25     ` Aditya Mahajan
2009-08-12 14:53       ` Andreas Harder
2009-08-13  3:00         ` Aditya Mahajan
2009-08-13 16:41           ` Andreas Harder
2009-08-12 19:23       ` Hans Hagen
2009-08-12 18:34     ` Mojca Miklavec [this message]
2009-08-12 21:22       ` Hans Hagen
2009-08-13 16:50         ` Andreas Harder
2009-08-12 21:27       ` Andreas Harder

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=6faad9f00908121134n11fed555n5eb6d41976b8d487@mail.gmail.com \
    --to=mojca.miklavec.lists@gmail.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).