From: Hans Hagen <pragma@wxs.nl>
Subject: Re: horoffset + itemize + positiongraphics = misaligned graphics
Date: Sun, 17 Jul 2005 23:39:56 +0200 [thread overview]
Message-ID: <42DAD02C.1030502@wxs.nl> (raw)
In-Reply-To: <1121459413.25236.20.camel@localhost.localdomain>
Stuart Jansen wrote:
>I'm working on a rather complex document containing frequent use of
>positional graphics. Unfortunately, I've discovered what I expect will
>be a pretty nasty problem to fix. When I combine horoffset,
>startitemize, & positiongraphics the graphics are placed in the wrong
>spot. I've managed to cook up the simple test case below which
>demonstrates the problem.
>
>===============
>\setuplayout[ horoffset=.5cm ]
>\setuppagenumbering[alternative=doublesided]
>\setupcolors[state=start]
>
>\defineoverlay [backgraphics] [\positionoverlay{backgraphics}]
>\setupbackgrounds[page][background=backgraphics]
>\newcounter\CurrentCallout
>\startMPpositiongraphic{mypos:line}
> path p ; initialize_box(\MPpos{\MPvar{from}}) ;
> p := lrxy..urxy..ulxy..cycle ;
> p := center p shifted (-.5cm,0mm) -- center p ;
> pickup pencircle scaled 2pt ;
> drawarrow p withcolor red ;
> anchor_box(\MPanchor{\MPvar{from}}) ;
>\stopMPpositiongraphic
>\def\myitem%
>{\doglobal\increment\CurrentCallout\item
> \hpos{myitem:b:\CurrentCallout}{\strut}
> \startpositionoverlay{backgraphics}
> \setMPpositiongraphic{myitem:b:\CurrentCallout}{mypos:line}
> \stoppositionoverlay}
>
>\starttext
>\startitemize[n,serried]
>\dorecurse{30}{\myitem\input tufte }
>\stopitemize
>\stoptext
>
>
where do you assign a value to "from"?
what effect do you want to achieve?
Hans
--
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
next prev parent reply other threads:[~2005-07-17 21:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 20:30 Stuart Jansen
2005-07-17 21:39 ` Hans Hagen [this message]
2005-07-18 18:35 ` Stuart Jansen
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=42DAD02C.1030502@wxs.nl \
--to=pragma@wxs.nl \
--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).