From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86844 Path: news.gmane.org!not-for-mail From: Sanjoy Mahajan Newsgroups: gmane.comp.tex.context Subject: mirrored leftmarginwidth in enumerations Date: Sun, 30 Mar 2014 14:00:07 -0400 Message-ID: <87sipzr2hk.fsf@approx.mit.edu> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1396202437 20661 80.91.229.3 (30 Mar 2014 18:00:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2014 18:00:37 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun Mar 30 20:00:32 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 1WUK24-0000l7-5z for gctc-ntg-context-518@m.gmane.org; Sun, 30 Mar 2014 20:00:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4021A101E7; Sun, 30 Mar 2014 20:00:31 +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 VjmJ4pxOJMP1; Sun, 30 Mar 2014 20:00:29 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 3E442101E9; Sun, 30 Mar 2014 20:00:29 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 24656101E9 for ; Sun, 30 Mar 2014 20:00: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 Xv22M6SEUWIs for ; Sun, 30 Mar 2014 20:00:26 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 75750101E7 for ; Sun, 30 Mar 2014 20:00:16 +0200 (CEST) Original-Received: from dmz-mailsec-scanner-1.mit.edu (dmz-mailsec-scanner-1.mit.edu [18.9.25.12]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2UI0DOi005344 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sun, 30 Mar 2014 20:00:15 +0200 X-AuditID: 1209190c-f794a6d000000c27-99-53385badd318 Original-Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-1.mit.edu (Symantec Messaging Gateway) with SMTP id 97.62.03111.DAB58335; Sun, 30 Mar 2014 14:00:13 -0400 (EDT) Original-Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s2UI0C8v023336 for ; Sun, 30 Mar 2014 14:00:12 -0400 Original-Received: from approx.mit.edu (pool-71-126-235-4.bstnma.east.verizon.net [71.126.235.4]) (authenticated bits=0) (User authenticated as sanjoy@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s2UI0AwG016028 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Sun, 30 Mar 2014 14:00:12 -0400 Original-Received: from sanjoy by approx.mit.edu with local (Exim 4.82) (envelope-from ) id 1WUK1g-0006Vq-1y for ntg-context@ntg.nl; Sun, 30 Mar 2014 14:00:08 -0400 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/24.3.1 (i486-pc-linux-gnu) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsUixG6nors22iLY4MBNTou18xcxOTB6HFu1 mDGAMYrLJiU1J7MstUjfLoEro+vec8aCQ3wVizo/sDQw7uHuYuTkkBAwkXj98yILhC0mceHe erYuRi4OIYHZTBKLG2+zQjinGCVe/73JAuG8ZZJ4t/ITE4SzkVHi6YJO5i5GDg42AVWJv/8D QUwRoFGvJwaDTBUWMJSYsGkuK4gtKhAkcb3pKTOIzQJUff7SZjYQm1dAW+Lakh9MELagxMmZ T8AuYhaQkDj44gXzBEa+WUhSs5CkFjAyrWKUTcmt0s1NzMwpTk3WLU5OzMtLLdI11MvNLNFL TSndxAgKJk5Jnh2Mbw4qHWIU4GBU4uHd0W8eLMSaWFZcmXuIUZKDSUmUNzLSIliILyk/pTIj sTgjvqg0J7X4EKMEB7OSCG+9IVCONyWxsiq1KB8mJc3BoiTOK8+hHSwkkJ5YkpqdmlqQWgST leHgUJLgnRoF1ChYlJqeWpGWmVOCkGbi4AQZzgM0PB1kMW9xQWJucWY6RP4Uo6KUOG8ZSLMA SCKjNA+uFxbtrxjFgV4R5k0CqeIBJgq47ldAg5mABrsVmYEMLklESEk1MEa6n5hhuDAmPv72 tsMOc7qlbH7Zq9e52EZ9qcyOrj+we3egu1Wk2NNFfkGcrPMWO/7s+/rxoFNiKL/1sxa3nfNv vPvacqfZ5dnXf4vMNJ9aL9c31GiPW8j+bYbmlZgFJ2LOmWVplr46vEPErO/BVe7fnCyLJ8w5 zeNwx05zqeOzXVXfCwTXTVFiKc5INNRiLipOBACoJw4B0QIAAA== X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=18.9.25.12; country=US; region=Massachusetts; city=Cambridge; latitude=42.3751; longitude=-71.1056; http://maps.google.com/maps?q=42.3751,-71.1056&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0NLHS0e57 - 3cbbbe1fc3f7 - 20140330 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:86844 Archived-At: 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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________