Hi,

I pploaded a new lmtx (no rpi 64 bins yet, one can pick these up from the build in a few days).

Apart from a few fixes (older side float issue, some recent special rule related things) the only new thing is 'low level anchoring'. More can be found in ontarget.pdf (ontarget-anchoring.tex). It basically boils down to boxes listening to source, target and anchor keys, as in:

\vbox
    source 123
    \bgroup
        \offinterlineskip
        \blackrule[width=4cm,height=2cm,depth=0cm,color=darkred]\par
        \blackrule[width=4cm,height=0cm,depth=1cm,color=darkblue]\par
        \setbox\scratchboxtwo\hbox
            anchors "0004 "0001
          % anchor "00040001
            target 123
            orientation 1
            {\blackrule[width=2cm,height=1cm,depth=0cm,color=darkgreen]%
             \hskip-2cm
             \blackrule[width=2cm,height=0cm,depth=1cm,color=darkyellow]}%
          %
        \smash{\box\scratchboxtwo}%
    \egroup

the mentioned document describes a bit higher interface (plugs into layers) .. all kind of experimental and meant as teaser for users who like low level stuff (playground).

I also made it possible to use context \frules with leaders as in:

test \leaders \frule height 6mm depth 3mm radius 1mm\hfill test

\startuseMPgraphic{demoleader}
    fill
        unitcircle xysized (RuleWidth,RuleHeight+RuleDepth)
        withcolor RuleColor ;
\stopuseMPgraphic

test {\red \leaders \frule
    height 6mm
    depth  3mm
    type    mp
    data    {\includeMPgraphic{demoleader}}
\hfill} test

\startuseMPgraphic{demoleader}
    drawdblarrow (0,RuleHeight) -- (RuleWidth,RuleHeight)
        withpen pencircle scaled  RuleThickness
        withcolor RuleColor ;
\stopuseMPgraphic

test {\red \leaders \frule
    height  1mm % we need at least some dimensions
    type    mp
    line    1mm
    data    {\includeMPgraphic{demoleader}}
\hfill} test

(leaders can have boxes, rules and also glyphs)

In principle we can also have adaptive images (basically scaling) so I might make an example of that later (when i need it).

Of course I'll fix things I broke this time,

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to