From: Oliver Buerschaper <oliver.buerschaper@mpq.mpg.de>
To: Hans Hagen <pragma@wxs.nl>
Cc: mailing ConTeXt users list for <ntg-context@ntg.nl>
Subject: Re: textext vs. btex ... etex
Date: Sat, 21 Aug 2010 16:24:09 +0200 [thread overview]
Message-ID: <A9926F46-F099-41BD-922D-ADE8ED41174E@mpq.mpg.de> (raw)
In-Reply-To: <4C6BEF5D.3040004@wxs.nl>
>>> so, if in mkiv you want pieces, you need to textext each snippet that you want as such
>>
>> Alright... in that case how would I make sure that all glyph positions are kept if my TeX material is, say, some complex formula? How could I find the baseline with textext?
>
> see mp.mplib for all those anchor points
OK. I found in mp-mplib.mp that rawtextext() does what I was looking for... the baseline is anchored to the current point:
---
\setupbodyfont[10pt]
\starttext
\startMPinclusions
pickup pencircle scaled 0.05pt;
defaultpen := savepen;
picture crosshair;
crosshair := image(draw fullcircle scaled 2pt;
draw (0,-2pt)--(0,2pt);
draw (-2pt,0)--(2pt,0);
);
bboxmargin := 0;
\stopMPinclusions
\startMPpage
for item within rawtextext("$(h,g)$"):
draw bbox item withcolor 0.8white;
draw item;
endfor;
draw crosshair;
\stopMPpage
\stoptext
---
This solves step one!
Now onto step two: how can I typeset each glyph in the formula individually such that it appears precisely in the right location?
Thanks,
Oliver
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2010-08-21 14:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-17 14:32 Oliver Buerschaper
2010-08-17 15:34 ` Hans Hagen
2010-08-18 12:20 ` Oliver Buerschaper
2010-08-18 13:02 ` Khaled Hosny
2010-08-18 14:00 ` Oliver Buerschaper
2010-08-18 14:34 ` Hans Hagen
2010-08-21 14:24 ` Oliver Buerschaper [this message]
2010-08-21 14:49 ` Taco Hoekwater
2010-08-22 7:53 ` Oliver Buerschaper
2010-08-22 9:32 ` Taco Hoekwater
2010-08-24 9:31 ` Oliver Buerschaper
2010-08-24 10:19 ` Taco Hoekwater
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=A9926F46-F099-41BD-922D-ADE8ED41174E@mpq.mpg.de \
--to=oliver.buerschaper@mpq.mpg.de \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.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).