ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Patrick Gundlach" <pg@levana.de>
Subject: Re: Another Metafun issue
Date: 16 May 2004 21:36:54 +0200	[thread overview]
Message-ID: <m2hdugxiy1.fsf@levana.de> (raw)
In-Reply-To: <3819AB62-A76D-11D8-8A19-0003939959D2@t-online.de> (Sebastian Sturm's message of "Sun, 16 May 2004 21:14:14 +0200")

Hello again,

> I thought textext was just a faster version of btex ... etex and
> supposed that this would be the 'way to go', since it is a part of
> MetaFun. 

I guess you know now; but for the record:

btex....etex does not allow any variable part in the text to be
typeset. This is due to the fact that metapost scans for btex ... etex
parts in the input file and creates the text in one single TeX run
(preprocessing) and then executes the macros (so the texts are fixed).

There are several approaches to allow texts with variable data such
as 

%% does not work!
for i=0 upto 10:
    btex "i is now " + decimal i etex;
endfor;

one of them is textext:

for i=0 upto 10:
    textext ("i is now " + decimal i);
endfor;

should work (untested)

Patrick

      reply	other threads:[~2004-05-16 19:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-16 10:37 Sebastian Sturm
2004-05-16 12:21 ` Peter Münster
2004-05-16 16:26   ` Sebastian Sturm
2004-05-16 16:37     ` Patrick Gundlach
2004-05-16 17:46       ` Sebastian Sturm
2004-05-16 18:18         ` Patrick Gundlach
2004-05-16 19:14           ` Sebastian Sturm
2004-05-16 19:36             ` Patrick Gundlach [this message]

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=m2hdugxiy1.fsf@levana.de \
    --to=pg@levana.de \
    --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).