ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* textext vs. btex ... etex
@ 2010-08-17 14:32 Oliver Buerschaper
  2010-08-17 15:34 ` Hans Hagen
  0 siblings, 1 reply; 12+ messages in thread
From: Oliver Buerschaper @ 2010-08-17 14:32 UTC (permalink / raw)
  To: mailing ConTeXt users list for

[-- Attachment #1: Type: text/plain, Size: 562 bytes --]

Hi,

I've been trying to troubleshoot a problem with TeX labels I ran into the other day... finally I discovered that

1. MkIV (textext) includes TeX material as one single chunk apparently while MkII (btex ... etex) used to include a decomposable picture and that
2. the anchor point is completely different!

Is there any way to restore both the "individual addressing" of glyphs and the MkII anchor point in MkIV?

This would be crucial for a customized labelling macro...

Best,
Oliver


P.S. Why is "h," included as one piece in MkII?




[-- Attachment #2: mkii2.mp --]
[-- Type: application/octet-stream, Size: 471 bytes --]

verbatimtex
    \setupbodyfont[10pt]
etex


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;



beginfig(1);            
    for item within btex $(h,g)$ etex:
        draw bbox item withcolor 0.8white;
        draw item;
    endfor;
    
    draw crosshair;
endfig;



end

[-- Attachment #3: Type: text/plain, Size: 2 bytes --]




[-- Attachment #4: mkii2.pdf --]
[-- Type: application/pdf, Size: 9269 bytes --]

[-- Attachment #5: Type: text/plain, Size: 2 bytes --]




[-- Attachment #6: mkiv2.tex --]
[-- Type: application/octet-stream, Size: 542 bytes --]

\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 textext("$(h,g)$"):
        draw bbox item withcolor 0.8white;
        draw item;
    endfor;
    
    draw crosshair;
\stopMPpage


\stoptext

[-- Attachment #7: Type: text/plain, Size: 2 bytes --]




[-- Attachment #8: mkiv2.pdf --]
[-- Type: application/pdf, Size: 8643 bytes --]

[-- Attachment #9: Type: text/plain, Size: 486 bytes --]

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2010-08-24 10:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-17 14:32 textext vs. btex ... etex 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
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

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).