From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86847 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: mirrored leftmarginwidth in enumerations Date: Sun, 30 Mar 2014 20:53:09 +0200 Message-ID: <5D106621-F019-4D82-8E88-DB2AD0E14E54@gmail.com> References: <87sipzr2hk.fsf@approx.mit.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1396205614 19546 80.91.229.3 (30 Mar 2014 18:53:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2014 18:53:34 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 30 20:53:29 2014 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WUKrJ-0001pW-3F for gctc-ntg-context-518@m.gmane.org; Sun, 30 Mar 2014 20:53:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 608F41020E; Sun, 30 Mar 2014 20:53:28 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 7Wug0QwaMaVO; Sun, 30 Mar 2014 20:53:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4FCB1101E9; Sun, 30 Mar 2014 20:53:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 91F37101E9 for ; Sun, 30 Mar 2014 20:53:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id N03IHVcifG6B for ; Sun, 30 Mar 2014 20:53:24 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 04AAF101E7 for ; Sun, 30 Mar 2014 20:53:24 +0200 (CEST) Original-Received: from mail-bk0-x234.google.com (mail-bk0-x234.google.com [IPv6:2a00:1450:4008:c01::234]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2UJBRY0004800 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 30 Mar 2014 21:11:37 +0200 Original-Received: by mail-bk0-f52.google.com with SMTP id my13so1097138bkb.11 for ; Sun, 30 Mar 2014 11:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=XZ3aOVeXyW7vP/ghb+ot392u1iNk3reQulG8adAooTQ=; b=UBTr2/lGKke4JB3wAw42Hc1R7wuJ8HyM/t9eofZ8Dp3qaT++MMeKo5DrvZHuFeBVt7 VCDQon47rqanw4WTvnShp5wA3tL0iy6sXNb3G3jah2vqp19/zGDzTDP9GCa2GUeDFfaf 3myBwX7yDrQdP3+q7bJ20Rg1fR2E0HCPy1EAkOXZvf1GqPh2M5IwS5FaDm/+OZnz9RNf 1LmyRnazm288Um5G54ot3FM1jwZoES3eDdff7oFUqUMhJ5O6fQ04Wu1AES4Ty80qB1TB r94jcMSPnFCDiZQa1tPTendECNbXaeiNmU/BgJ2zsv9T+RkWw7Cpkgpi6TwdaG2HfF3J DYTg== X-Received: by 10.204.78.137 with SMTP id l9mr66230bkk.77.1396205593059; Sun, 30 Mar 2014 11:53:13 -0700 (PDT) Original-Received: from keima.localdomain (x2f2198e.dyn.telefonica.de. [2.242.25.142]) by mx.google.com with ESMTPSA id zl9sm11298278bkb.11.2014.03.30.11.53.11 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 30 Mar 2014 11:53:12 -0700 (PDT) In-Reply-To: <87sipzr2hk.fsf@approx.mit.edu> X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:4008:c01::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LHTbruk - 219d24bdbddb - 20140330 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:86847 Archived-At: Am 30.03.2014 um 20:00 schrieb Sanjoy Mahajan : > If anyone has a suggestion for putting enumeration texts toward the > right edge of the left margin, I would be grateful. > > In MkII enumerations, I would put a triangle (fig.2) in the left margin > using > > \defineenumeration > [pause] > [title=no, > text={\externalfigure[fig.2][height=1em]}, > location=inleft, > number=no, > ] > > The triangle was automatically aligned toward the right side of the left > margin (fill glue on the left), which was what I wanted, on even and odd > pages. > > In MkIV, the marginal text is automatically aligned to the left side. > I restored the MkII effect using this hack (using a > instead of the > triangle, to make the example more self contained): > > \defineenumeration > [pause] > [title=no, > text={\hbox to \leftmarginwidth{\hfil $>$}}, > number=no, > alternative=inleft, > ] > > But I just realized that the hack doesn't work for double-sided layouts. > > Using the leftmarginwidth is correct on the odd pages, but it is too big > for the even pages. Thus, on page 2 of the example below, the > > overlaps the "question" text. > > Is there a more idiomatic MkIV replacement for my hack? Or is my hack > okay, but ConTeXt should be updated to interpret leftmarginwidth to mean > "the leftmarginwidth, as appropriate for an odd or an even page"? > > Here is the example: > > \setuplayout[marking=on,location=middle, > backspace=1.25in, > leftmargindistance=0.125in, leftmargin=0.625in, > width=4.75in, > rightmargindistance=0.25in, rightmargin=0.25in, > ] > > \setuppagenumbering[alternative={doublesided}] > > \defineenumeration > [pause] > [title=no, > text={\hbox to \leftmarginwidth{\hfil $>$}}, > number=no, > alternative=inleft, > ] > > \def\question#1{\startpause\relax #1 \stoppause} > > \showframe > > \starttext > \question{hello} > \page > \question{hello} > \stoptext \defineenumeration [pause] [title=no, text={\symbol[triangle]}, width=fit, number=no, alternative=inleft] Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________