From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/99909 Path: news.gmane.org!.POSTED!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: notes in the margin Date: Tue, 23 Jan 2018 22:01:09 +0100 Message-ID: <00716478-737F-4683-8F0A-7927227652C8@fiee.net> References: <5F060F86-31D5-4725-9E2E-F2E65485EB18@fiee.net> <58EA8FA4.4040304@gmail.com> <34884E42-C435-412C-95CB-10541B971521@fiee.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_D8C3AFCE-3A8A-48D5-9FA2-93D14109FC14" X-Trace: blaine.gmane.org 1516741225 17738 195.159.176.226 (23 Jan 2018 21:00:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 23 Jan 2018 21:00:25 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Jan 23 22:00:21 2018 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 esmtp (Exim 4.84_2) (envelope-from ) id 1ee5fj-00034d-ML for gctc-ntg-context-518@m.gmane.org; Tue, 23 Jan 2018 21:59:59 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 265A8421F96; Tue, 23 Jan 2018 22:01:25 +0100 (CET) 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 73ye_HzAR6ou; Tue, 23 Jan 2018 22:01:24 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5DD26421F9A; Tue, 23 Jan 2018 22:01:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 06085421F9A for ; Tue, 23 Jan 2018 22:01:23 +0100 (CET) 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 7oYHRW8xJs48 for ; Tue, 23 Jan 2018 22:01:22 +0100 (CET) Original-Received: from fiee.net (feronia.fiee.net [46.163.112.221]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 43A37421F96 for ; Tue, 23 Jan 2018 22:01:12 +0100 (CET) Original-Received: from [192.168.178.25] (p5B29317D.dip0.t-ipconnect.de [91.41.49.125]) by mail.fiee.net (Postfix) with ESMTPSA id C6449808FD for ; Tue, 23 Jan 2018 22:01:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fiee.net; s=default; t=1516741272; bh=9Nm1KoCxA8IcbSJUzVLu4N6vBcE8PBfDU3IxsfANEh4=; l=6283; h=From:Subject:To; b=p9gefShtsG78S3O2V/qtC4YZkJtd6yjbJ4LrCU1aRQOdI+WwA6kBbUvYbQQW0UaHv lQeNjEwTiG3aqxQdNeTTMRovrJ6ltuuVrJND6zTgGvsvp1jiH33+qdcQzsKZGFVP0q dMb4r+h8ep87jHu6s6iy7+Gmjk12Zr4B9ViM+0A0= Authentication-Results: feronia.fiee.net; spf=pass (sender IP is 91.41.49.125) smtp.mailfrom=texml@fiee.net smtp.helo=[192.168.178.25] Received-SPF: pass (feronia.fiee.net: connection is authenticated) In-Reply-To: <34884E42-C435-412C-95CB-10541B971521@fiee.net> X-Mailer: Apple Mail (2.1878.6) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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:99909 Archived-At: --Apple-Mail=_D8C3AFCE-3A8A-48D5-9FA2-93D14109FC14 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 These issues are still open, I attached my current test file. 1) There=92s always space/indent in front of the note text, I=92d like to = get rid of that. Notes should look like: texttext text texttext12 text 12 text texttext Some remarks But at the moment they=92re like: texttext text texttext12 text 12 text texttext __Some remarks 2) If there is a possibility to influence the page breaking algorithm for = notes, I=92d like to know about that. Stacking works nicely most of the time, but I have a few pages where the = notes don=92t fit. The only option I know of is \adaptlayout to move lines of the main = text. Something similar for note lines would be nice. Another possibility would be to have some (very long) notes as footnotes = instead of margin notes. Is it possible to switch placement but keep the numbering? Maybe via = different note setups and manually setting the counter? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD Am 2017-10-24 um 09:54 schrieb Henning Hraban Ramm : > Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster = : >=20 >>> Henning Hraban Ramm 30. M=E4rz 2017 um 10:30 >>> While I=92m still waiting for answers to my other questions, I got = some more: >>>=20 >>> In my layout, left margin width is zero, but \inmargin always uses = left margin. >>> I didn=92t find a setup to change that =96 should = \setupmargindata[location=3Dright] do the trick? (it doesn=92t, also not = with left) >>>=20 >>> Further I=92d like to place "foot"notes into the margin. >>> It works like this: >>>=20 >>> \setupnote[footnote][location=3Dnone] >>> \setupnotation[footnote][ >>> align=3Dflushleft, >>> location=3Dserried, >>> width=3Dbroad, >>> ] >>> \setuptexttexts[margin][] >>> [{\framed[% >>> align=3Dright, >>> frame=3Doff, >>> height=3D\textheight, >>> width=3D\rightmarginwidth=20 >>> ]{\placenotes[footnote]}}] >>>=20 >>> But I=92d like the notes to start in the line of the marker, if = there=92s space. >>> How can I achieve that? >> The only way I found to achieve this is by flushing the notes at the = end of each footnote >> entry which can be done with the next key. The positioning of each = margin text is tricky >> because \placenotes adds skips at the begin of the block (which can = be reduced with >> \placelocalnotes) but a inline version of the command (e.g. = \placeinlinenotes) which >> flushes the notes without vertical skips and a rule at the begin = would help. >>=20 >> \define\PlaceFootnote >> {\inrightmargin{\vtop{\placelocalnotes[footnote][before=3D,after=3D]}}= } >>=20 >> \setupnote >> [footnote] >> [location=3Dtext, >> bodyfont=3D, >> next=3D\PlaceFootnote] >>=20 >> \setupnotation >> [footnote] >> [alternative=3Dserried] >>=20 >> \setuplayout >> [width=3D12cm, >> rightmargindistance=3D0.5cm, >> rightmargin=3D5cm] >>=20 >> \starttext >> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote = \recurselevel}} } >> \stoptext >=20 > Oh, seems like I didn=92t answer to that, sorry. >=20 > Thank you very much, this solves my problem for the most part. >=20 > Coming back to this now, since I completed my previous book project = (with the register issues) and attacking the next one (that needs those = numbered marginal notes). >=20 > It would be nice if we had a solution how those notes won=92t collide; = is there some trick how I can shift a note up or down manually? >=20 > Additionally, since my note number gets its own line, I=92d like to = get rid of the indenting, but couldn=92t find the right parameter. > This setup adds to Wolfgang=92s: >=20 > \def\FNo#1{#1\crlf} >=20 > \setupnotation > [footnote] > [alternative=3Dserried, > width=3Dbroad, > align=3Dflushleft, > numbercommand=3D\FNo] >=20 >=20 > Greetlings, Hraban > --- > http://www.fiee.net > http://wiki.contextgarden.net > GPG Key ID 1C9B22FD --Apple-Mail=_D8C3AFCE-3A8A-48D5-9FA2-93D14109FC14 Content-Disposition: attachment; filename=sidenotetest.tex Content-Type: application/octet-stream; name="sidenotetest.tex" Content-Transfer-Encoding: quoted-printable %=0A\usemodule[visual]=0A\setuplayout[=0A=20=20=20=20= location=3Ddoublesided,=0A=20=20=20=20width=3D12cm,=0A=20=20=20=20= rightmargindistance=3D0.5cm,=0A=20=20=20=20rightmargin=3D5cm]=0A=0A= \setuppagenumbering[alternative=3Ddoublesided]=0A= \setupmargindata[inmargin][location=3Douter,stack=3Dcontinue]=0A= \setupmargindata[inouter][location=3Douter,stack=3Dcontinue]=0A=0A= \define\PlaceFootnote=0A=20=20= {\inmargin{\vtop{\placelocalnotes[footnote][before=3D,after=3D]}}}=0A= \def\FNo#1{{\ss\tfx=20#1\crlf}}=20%=20Abstand=20geht=20nicht=20weg!?=0A=0A= \setupnote[footnote]=0A=20=20[location=3Dtext,=0A=20=20=20bodyfont=3D,=0A= =20=20=20indenting=3Dno,=0A=20=20=20before=3D{\noindent},=0A=20=20=20= next=3D\PlaceFootnote]=0A\setupnotation[footnote][=0A=09way=3Dbychapter,=0A= =09align=3Dflushleft,=0A=20=20=20=20style=3D{\ss\tfx},=0A=20=20=20=20= indenting=3Dno,=0A=20=20=20=20location=3Dserried,=0A=20=20=20=20= alternative=3Dserried,=0A=20=20=20=20width=3Dbroad,=0A=20=20=20=20= numbercommand=3D\FNo,=0A]=20%=20Fu=C3=9Fnotentext=0A= \setuptexttexts[margin][]=0A=20=20=20=20[{\framed[=0A=20=20=20=20=20=20= align=3D{right,bottom},=0A=20=20=20=20=20=20frame=3Doff,=0A=20=20=20=20=20= =20height=3D\textheight,=0A=20=20=20=20=20=20width=3D\rightmarginwidth]{%=0A= =20=20=20=20=20=20\strut\vfill\placenotes[footnote]}}]=0A=0A\starttext=0A= =0A\dorecurse{2}{=0A=20=20\startchapter[title=3D{C=20\fakewords{2}{10}}]=0A= =0A=20=20=20=20\dorecurse{10}{=0A=20=20=20=20\startsection[title=3D{S=20= \fakewords{1}{10}=20\recurselevel}]=0A=20=20=20=20=20=20= \fakewords{10}{100})\footnote{F=20\fakewords{3}{50}}=0A=20=20=20=20=20=20= \fakewords{10}{100}\footnote{F=20\fakewords{3}{50}}=0A=20=20=20=20=20=20= \fakewords{10}{100}=0A=0A=20=20=20=20\stopsection}=0A=0A=20=20= \stopchapter}=0A=0A\stoptext=0A= --Apple-Mail=_D8C3AFCE-3A8A-48D5-9FA2-93D14109FC14 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --Apple-Mail=_D8C3AFCE-3A8A-48D5-9FA2-93D14109FC14--