From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/21440 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: horoffset + itemize + positiongraphics = misaligned graphics Date: Sun, 17 Jul 2005 23:39:56 +0200 Message-ID: <42DAD02C.1030502@wxs.nl> References: <1121459413.25236.20.camel@localhost.localdomain> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1121636382 669 80.91.229.2 (17 Jul 2005 21:39:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jul 2005 21:39:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 17 23:39:41 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DuGrD-0000uc-EM for gctc-ntg-context-518@m.gmane.org; Sun, 17 Jul 2005 23:39:31 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8AFFF12801; Sun, 17 Jul 2005 23:39:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24286-03; Sun, 17 Jul 2005 23:39:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C397A127B7; Sun, 17 Jul 2005 23:39:26 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 14802127B7 for ; Sun, 17 Jul 2005 23:39:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24297-03 for ; Sun, 17 Jul 2005 23:39:24 +0200 (CEST) Original-Received: from mailrelay02.solcon.nl (maillb.solcon.nl [212.45.32.200]) by ronja.ntg.nl (Postfix) with ESMTP id 239651276C for ; Sun, 17 Jul 2005 23:39:23 +0200 (CEST) Original-Received: from server-1.pragma-net.nl (dsl-212-84-128-085.solcon.nl [212.84.128.85]) by mailrelay02.solcon.nl (8.12.11/SQL-8.12.11-5/8.12.11) with ESMTP id j6HLdIRB016573 for ; Sun, 17 Jul 2005 23:39:18 +0200 Original-Received: by server-1.pragma-net.nl (Postfix, from userid 65534) id D2D1E1A19D; Sun, 17 Jul 2005 22:56:14 +0200 (CEST) Original-Received: from [10.100.1.52] (unknown [10.100.1.52]) by server-1.pragma-net.nl (Postfix) with ESMTP id 8C5781838E for ; Sun, 17 Jul 2005 20:56:13 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en Original-To: mailing list for ConTeXt users In-Reply-To: <1121459413.25236.20.camel@localhost.localdomain> X-Virus-Scanned: ClamAV 0.86.1/982/Sun Jul 17 14:45:12 2005 on mailrelay02 X-Virus-Status: Clean X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:21440 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:21440 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 -----------------------------------------------------------------