From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105184 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Andres Conrado Montoya Newsgroups: gmane.comp.tex.context Subject: Re: notes in the margin Date: Thu, 3 Oct 2019 20:32:53 -0500 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1278289601558958441==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184221"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Oct 04 03:34:12 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iGCTx-000ldw-Kj for gctc-ntg-context-518@m.gmane.org; Fri, 04 Oct 2019 03:34:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4002B161768; Fri, 4 Oct 2019 03:33:43 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id f7myoM0rNDWj; Fri, 4 Oct 2019 03:33:37 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 01E14161769; Fri, 4 Oct 2019 03:33:37 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7348016175F for ; Fri, 4 Oct 2019 03:33:36 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Igwmnp1-6HgB for ; Fri, 4 Oct 2019 03:33:31 +0200 (CEST) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.51; helo=mail-io1-f51.google.com; envelope-from=andresconrado@gmail.com; receiver= Original-Received: from mail-io1-f51.google.com (mail-io1-f51.google.com [209.85.166.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 7EF2E16129D for ; Fri, 4 Oct 2019 03:33:31 +0200 (CEST) Original-Received: by mail-io1-f51.google.com with SMTP id z19so10129147ior.0 for ; Thu, 03 Oct 2019 18:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=mQulB4JmiiKOT16O406sZ4y7Rdj+RsL99sKPc85P7X8=; b=LrWCdeYt2599aH9NwUt6m/MV6poPDMNg3nz2mxkBZvnlBUjRK14DpwnspvpRarSrnx zp3tA06zCWQt2nJ8ZyorXCdDHaxOGyBlwQgZILuXiSI3NmmOTLiHNdMn3bL952roefHP jkYf0Ytjso+AgVbQy5R2hsfEstAQUEi7MSMJVUiIQKo9yLDOk4aMU/Ve5GP5Okcy1sl/ ap0tP843YuLehwQxrLj0IZrbTycyGHhX7ga3hkfoxzP2C+kIavNW021zIFlr4rmFEwXm gxtlKZN3WDwa7jxvfOY6Z8XHf9bMHcAqkTwhNCQYTJ92qPAvBq4SZSEkb3rfX43zuLDj 1c/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=mQulB4JmiiKOT16O406sZ4y7Rdj+RsL99sKPc85P7X8=; b=SsMmrA3McBZB/3D+V0H6iLl9I71CpIJQw0RPq1+gfczOoyO2s6p9cvisPRVGIjk6wB sY5krEosSU73eYXm3DW0SdpLgAv6VSRKo/U65+1MNLmh9ysJIBctKyMCmcptbh6xkGPo D2Qdtu89O+xf1Q5dDaIoTuguR3lkV7cgL8TN/f0KHTPOhbarFocgbjVEw1b6DzIQG123 /zvllsa7E9WXBRYkBL49/fk3G4dYYPey0gL+ImebxJJOaZfM5kUI+vQ0bB8T98+b5is2 jwqAWXsqooL6nDdGvtIc0SNfMgrpwpuBMRU+1Kz6s6q/+ghfu2aoTNKY9+zlg+jTZY8h jQZQ== X-Gm-Message-State: APjAAAUgjA0uKhTkmIACZIWmcX/x+kjglTy2TuUoMAB3y2D8XBxZTDZO jDkw7DbKHrLQL9bs+ZV4I83cDldtzmb7xy7ktre9ikK9 X-Google-Smtp-Source: APXvYqwu2HVrCjPkyHpIc9yKMrUzS3KAMEcAamK45jvXvni7CQo7ls4Ic0LbnEe02eUQrKU1vHkF9H+SsvNwj0Bs9A4= X-Received: by 2002:a92:a1d6:: with SMTP id b83mr13474562ill.76.1570152809651; Thu, 03 Oct 2019 18:33:29 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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" Xref: news.gmane.org gmane.comp.tex.context:105184 Archived-At: --===============1278289601558958441== Content-Type: multipart/alternative; boundary="00000000000076640e05940bb0e7" --00000000000076640e05940bb0e7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've been tinkering with this problem. It's kind of frustrating not having a right solution for this. After trying and failing to the last solution published by Hraban on 2018-02-12, I tried to implement my own approach, from the other way around, I mean: not trying to implement notes as marginal material, but to implement the *marginalia* as some type of notes. A different type, apart from footnotes, with their own counter, etc. Below, a MWE, with some caveats:. 1. This is a poor quality hack. I'm not a developer. 2. If notes are too long, they clash with each other. I tried to understand the options that would allow me to move them up or down, according to the Wiki (https://wiki.contextgarden.net/Command/inmargin), but they don't seem to do anything, or I don't understand how to work with them. But if there is actually a way to manually instruct \inmargin to move up or down, it should be easy to make it work as an optional third argument, for example. 3. The counter introduces some horizontal space that I cant manage to remove except by introducing manual negative \hspace. The MWE doesn't include that space, to display the isse. 4. There are probably a ton of issues I have not thought about, but this seems to work for this project I'm working on, at least. %%%%%%%%%%% Start MWE \setuplayout[ topspace=3D0.722in, header=3D0.311in, footer=3D0.622in, width=3D4.211in, height=3D9.622in, backspace=3D1.311in, rightmargin=3D1.8in, margindistance=3D24pt ] \definecounter[marginales][way=3Dbytext,prefix=3Dno] \def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}} \def\marginal{\dosingleempty\doMarginal} \def\doMarginal[#1]#2{% \incrementnumber[marginales] \iffirstargument \high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2} \else \high{\romanMarginales}\inouter{\romanMarginales.\ #2} \fi } \starttext \dorecurse{6}{\input weisman And so on, and so on\marginal{This is a test, with some words and some more words.}.\par \input thuan\par} \stoptext %%%%%%%%%%%%%%% Stop MWE Andr=C3=A9s Conrado Montoya Andi K=C3=BA andresconrado@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org ---------------------------------------- Los fines no justifican los medios, porque la medida verdadera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dispuestos a utiliz= ar, no por los fines que proclamamos. ---------------------------------------- =E2=80=9CYou develop an instant global consciousness, a people orientation,= an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, =E2=80=98Look at that, you so= n of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut Edgar Mitchell --00000000000076640e05940bb0e7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've been tinkering with this problem. It's k= ind of frustrating not having a right solution for this.
Aft= er trying and failing to the last solution published by Hraban on 2018-02-1= 2, I tried to implement my own approach, from the other way around, I mean:= not trying to implement notes as marginal material, but to implement the <= i>marginalia as some type of notes. A different type, apart from footno= tes, with their own counter, etc.

Below, a MWE= , with some caveats:.
1. This is a poor quality hack. I'= m not a developer.
2. If notes are too long, they clash with each= other. I tried to understand the options that would allow me to move them = up or down, according to the Wiki (https://wiki.contextgarden.net/Command/inmargin), b= ut they don't seem to do anything, or I don't understand how to wor= k with them. But if there is actually a way to manually instruct \inmargin = to move up or down, it should be easy to make it work as an optional third = argument, for example.
3. The counter introduces some horizo= ntal space that I cant manage to remove except by introducing manual negati= ve \hspace. The MWE doesn't include that space, to display the isse.=C2= =A0
4.=C2=A0 There are probably a ton of issues I have not though= t about, but this seems to work for this project I'm working on, at lea= st.

%%%%%%%%%%% Start MWE

\setuplayout[
=C2=A0 =C2=A0 topspace=3D0.722in,
=C2=A0 =C2=A0 h= eader=3D0.311in,
=C2=A0 =C2=A0 footer=3D0.622in,
=C2=A0 =C2=A0 width= =3D4.211in,
=C2=A0 =C2=A0 height=3D9.622in,
=C2=A0 =C2=A0 backspace= =3D1.311in,
=C2=A0 =C2=A0 rightmargin=3D1.8in,
=C2=A0 =C2=A0 margindi= stance=3D24pt
]
\definecounter[marginales][way=3Dbytext,prefix=3Dno]<= br>\def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}}\def\marginal{\dosingleempty\doMarginal}
\def\doMarginal[#1]#2{%
=C2= =A0 \incrementnumber[marginales]
=C2=A0 \iffirstargument
=C2=A0 =C2= =A0 \high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2}
=C2=A0 \e= lse
=C2=A0 =C2=A0 \high{\romanMarginales}\inouter{\romanMarginales.\ #2}=
=C2=A0 \fi
}

\starttext
\dorecurse{6}{\input weisman And s= o on, and so on\marginal{This is a test, with some words and some more word= s.}.\par \input thuan\par}
\stoptext

%%%%%%%%%%%%%%% S= top MWE

Andr=C3=A9s Conrado Montoya
Andi K=C3=BA
andresconrado@gmail.com<= br>http://sesentayc= uatro.com
---------------------------= -------------
Los fines no justifican los medios, porque la medida verda= dera de nuestro car=C3=A1cter est=C3=A1 dada por los medios que estamos dis= puestos a utilizar, no por los fines que proclamamos.
------------------= ----------------------

=E2=80=9CYou develop an instant global conscio= usness, a people orientation,=20 an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international=20 politics look so petty. You want to grab a politician by the scruff of=20 the neck and drag him a quarter of a million miles out and say, =E2=80=98Lo= ok at that, you son of a bitch.=E2=80=99=E2=80=9D =E2=80=94 Apollo 14 astronaut = Edgar Mitchell

--00000000000076640e05940bb0e7-- --===============1278289601558958441== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============1278289601558958441==--