From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87417 Path: news.gmane.org!not-for-mail From: Matthias Weber Newsgroups: gmane.comp.tex.context Subject: Re: Using the margin for two purposes Date: Mon, 19 May 2014 19:24:27 -0400 Message-ID: <717908C6-B623-4A34-A099-E9C5E11887A8@indiana.edu> References: <10F0D3FD-0F3A-4929-96C0-4FF3F86B4AD0@indiana.edu> <5377FD11.4050002@rik.users.panix.com> <53797DAC.6020209@panix.com> <537A62AB.4060003@rik.users.panix.com> <537A7958.40109@wxs.nl> 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: multipart/mixed; boundary="===============0871058054==" X-Trace: ger.gmane.org 1400541902 29311 80.91.229.3 (19 May 2014 23:25:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 May 2014 23:25:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue May 20 01:24:56 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 1WmWvP-0000EA-Fs for gctc-ntg-context-518@m.gmane.org; Tue, 20 May 2014 01:24:55 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C82E61022B for ; Tue, 20 May 2014 01:24:54 +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 3vDrkPINYVl6 for ; Tue, 20 May 2014 01:24:54 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6280E101EA for ; Tue, 20 May 2014 01:24:49 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69520101E7 for ; Tue, 20 May 2014 01:24:45 +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 8qJjS0UURuDI for ; Tue, 20 May 2014 01:24:42 +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 75502101E2 for ; Tue, 20 May 2014 01:24:34 +0200 (CEST) Original-Received: from hartman.uits.indiana.edu (belushi.uits.indiana.edu [129.79.1.188]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s4JNOUWC023811 for ; Tue, 20 May 2014 01:24:32 +0200 X-IronPort-AV: E=Sophos;i="4.98,870,1392181200"; d="asc'?scan'208";a="139490132" Original-Received: from mssg-relay.indiana.edu ([129.79.1.73]) by irpt-internal-relay.indiana.edu with ESMTP; 19 May 2014 19:24:30 -0400 Original-Received: from hartman.uits.indiana.edu (hartman.uits.indiana.edu [129.79.1.194]) by mssg-relay.indiana.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s4JNOTsi020694 for ; Mon, 19 May 2014 19:24:29 -0400 X-IronPort-AV: E=Sophos;i="4.98,870,1392181200"; d="asc'?scan'208";a="140412140" Original-Received: from burns.uits.indiana.edu (HELO mail-relay.iu.edu) ([129.79.1.202]) by irpt-internal-relay.indiana.edu with ESMTP; 19 May 2014 19:24:29 -0400 Original-Received: from [172.27.35.85] (c-98-223-200-195.hsd1.in.comcast.net [98.223.200.195]) (authenticated bits=0) by mail-relay.iu.edu (8.14.7/8.14.4/IU Messaging Team) with ESMTP id s4JNOT4V008303 for ; Mon, 19 May 2014 19:24:29 -0400 In-Reply-To: <537A7958.40109@wxs.nl> 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=129.79.1.188; country=US; region=Indiana; city=Bloomington; latitude=39.1653; longitude=-86.5264; http://maps.google.com/maps?q=39.1653,-86.5264&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0QM3Xovg3 - 10c539460033 - 20140520 (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.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:87417 Archived-At: --===============0871058054== Content-Type: multipart/signed; boundary="Apple-Mail=_D3BDF0FA-75CF-44A5-9558-2846BD631A65"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_D3BDF0FA-75CF-44A5-9558-2846BD631A65 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 Thanks Hans, while I did experiment I had no chance at divining the correct dimension = distance=3D-\dimexpr\textwidth+2mm below. So, with that, my bare bones marginbar in the right margin could look = like the one in the file below. Where do I squeeze in the alternative=3D1 option to get dotted lines? When I put it into \definesidebar, the = sidebar disappears, and when I write \startsidebar[oeps,alternative=3D1] it reverts to the default left sidebar (albeit dotted). Matthias \setupmargindata [left] [location=3Dright, style=3D\bfxx] \setupmarginframed[left] [frame=3Don, framecolor=3Ddarkgray, corner=3Dround, offset=3D3pt, width=3D2cm, align=3Dmiddle] =20 = \definesidebar[oeps][rulecolor=3Dblue,distance=3D-\dimexpr\textwidth+2mm,r= ulethickness=3D.1pt] \starttexdefinition startRightbar \bgroup \startsidebar[oeps] \stoptexdefinition \starttexdefinition stopRightbar \stopsidebar \egroup \stoptexdefinition \starttext \input knuth Just a few lines of text before the marked text. \inmargin{Don=92t\\read\\me\\again} \startRightbar \input tufte \stopRightbar And a few lines of text after the marked text. \stoptext On May 19, 2014, at 5:36 PM, Hans Hagen wrote: > On 5/19/2014 9:59 PM, Rik Kabel wrote: >> On 2014-05-19 12:41, Matthias Weber wrote: >>> Thanks again, Rik, >>>=20 >>> this works like a charm, with one exception: No matter what I try, = the >>> marginrule appears always in the left margin. >>> Is there a way to change this? >>>=20 >>> Matthias >> Looking through the code in anch-bar.mkiv, there is nothing that I = can >> see that supports placing marginrules, or the sidebars on which they = are >> built, into the right margin. It looks like a job for Hans. >=20 > Hm, so you didn't experiment ... >=20 > \starttext >=20 > \definesidebar[whow][rulecolor=3Dgreen,distance=3D0pt] > \definesidebar[oeps][rulecolor=3Dblue,distance=3D-\dimexpr\textwidth+2mm= ] >=20 > \input tufte \par > \startsidebar > \input tufte \par > \input tufte \par > \startsidebar[whow] > \input tufte \par > \input tufte \par > \input tufte > \stopsidebar \par > \input tufte \par > \input tufte > \stopsidebar \par > \input tufte \par > \input tufte \par > \startsidebar[oeps] > \input tufte \par > \input tufte \par > \input tufte \par > \input tufte \par > \input tufte > \stopsidebar \par > \input tufte \par > \input tufte \par > \startsidebar > \input tufte > \input tufte > \input tufte > \input tufte > \input tufte > \stopsidebar >=20 > \stoptext >=20 >=20 > ----------------------------------------------------------------- > 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! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_D3BDF0FA-75CF-44A5-9558-2846BD631A65 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJTepKrAAoJELjBb0GFETaxl7EP/1ITl+pFvnKgyeZRRgARNvQL ZgXZrdtj0KD6iKSQpYTA220TS9n4VU/E+2Vqlgc3Qji5igqXSK1GJZehif5/wRCv s69xHddEzj8thjjFsX7K/aATvK3pj9iLdzKZLpOpH3FzN230TF9e/Y1J6/1FSwFd JlaZcsAfbR1NxkGeJpSSzsJTCHH0Iv3IWvkCMIErMFmUT3H7G+bZ7eb5umRU2W4d C1UtVaEXwwX9gTKxOI8ZkwKpCoa6kYwoKJ+LtNUOhs4CsQxJ9QZpa894VIfAMMvh BPzsWMFQJzOQI70+J/95KJDfDIAHYLZUVvhUBK6XKoMOWSm4vn+zWpWbaiJucLhP K4k6Z5artICHE6Lrgs2CkyKabo/lfs/HeEIE2Kea4IFNzHvDL8rbBgc7UUnb5EVK 2ZA7wTXRd7YIvsNHGoW4ZPeUnmm10j3B1gwOUJ7srVtMaF4/AGSjKWXabWiPaBhl LJ2UKHxp+BkhTmj+qaoorVNV6ww0UBiKEX3wX7U2vz2zRu4AXWlWbUEuKRkrCmlr Wgwgm1Z1Haf2A4HkBKwFW2N/33UgGEV+wIT7UVupLoLG+iL9+4bk30a51mIszjxg Ofc8xctRmkcWc+DT7mvGkdqyAVLBfFpsySoXrfH/tZlTBtYq7BrCn9z/+SUyTcB5 zpGFWacm3ymXRJ/gSyxV =UfjV -----END PGP SIGNATURE----- --Apple-Mail=_D3BDF0FA-75CF-44A5-9558-2846BD631A65-- --===============0871058054== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============0871058054==--