From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/75928 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Problem with \inmargin on \item lines Date: Wed, 02 May 2012 10:07:04 +0200 Message-ID: <4FA0EB28.4070505@wxs.nl> References: <6AD49FC8-3558-4538-B5C3-21D14D3C3A3B@stien.de> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1335946046 26557 80.91.229.3 (2 May 2012 08:07:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 May 2012 08:07:26 +0000 (UTC) Cc: Malte Stien To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed May 02 10:07:24 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SPUaq-000063-GK for gctc-ntg-context-518@m.gmane.org; Wed, 02 May 2012 10:07:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id AC035101EF; Wed, 2 May 2012 10:07:23 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Ep6uVhHXOG-c; Wed, 2 May 2012 10:07:21 +0200 (CEST) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EDEE8101E8; Wed, 2 May 2012 10:07:20 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id F05D8101E8 for ; Wed, 2 May 2012 10:07:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (localhost [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Q6AoagH0eGAo for ; Wed, 2 May 2012 10:07:18 +0200 (CEST) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id DEBE7101E6 for ; Wed, 2 May 2012 10:07:17 +0200 (CEST) Original-Received: from smtp.ziggozakelijk.nl (D57D1DA2.static.ziggozakelijk.nl [213.125.29.162]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id q4287Dum013673 for ; Wed, 2 May 2012 10:07:17 +0200 X-Default-Received-SPF: pass (skip=loggedin (res=PASS)) x-ip-name=10.0.4.6; Original-Received: from [10.0.4.6] (unverified [10.0.4.6]) by pragma-net.nl (SurgeMail 5.3h2) with ESMTP (TLS) id 1171-1713362 for multiple; Wed, 02 May 2012 10:07:08 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <6AD49FC8-3558-4538-B5C3-21D14D3C3A3B@stien.de> X-Authenticated-User: hagen@controller-9 X-Bayes-Prob: 0.007 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=213.125.29.162; country=NL; region=03; city=Hattem; latitude=52.4724; longitude=6.0696; http://maps.google.com/maps?q=52.4724,6.0696&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QH4U7dIO - dc48c7f8b991 - 20120502 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:75928 Archived-At: On 2-5-2012 06:33, Malte Stien wrote: > Hi everyone, > > I am experiencing a problem with \inmargin{some text} in \itemized lists. I am using them a lot in my documents, and it is kind of annoying. It appears that if one uses the \inmargin macro just prior to the \item macro, the in-margin text is typeset against the previous line, not the line with the \item. Minimal example. > > \starttext > \startitemize > \item This is just a normal completely innocent paragraph against which one will be able to judge the amount of indentation of the next paragraph. > \inmargin{Duck}\item This paragraph has a duck inmargin comment > \stopitemize > \stoptext > > That seems fair enough and even makes sense on some level. If however, one reverses the two macros, like so: > > \item\inmargin{Duck} This paragraph has a duck inmargin comment > > the leading space just after the closing brace is actually printed. I take this to be a bug, or is this by design? The only way I can around this is to not use a space, like so: > > \item\inmargin{Duck}This paragraph has a duck inmargin comment > > But I don't find that to be a satisfying solution. After all I am using ConTeXt because I am a bit pedantic about text, even the source code in this case. the magin note has to anchor somewhere so the second approach is the best as after all \item can start with doing spacing things concerning the space ... sometimes you want a space so gobbling the next one is debatable; you can of course wrap the command, as in: \def\myinmargin#1{\inmargin{#1}\ignorespaces} ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________