ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: notes in the margin
Date: Tue, 24 Oct 2017 09:54:47 +0200	[thread overview]
Message-ID: <34884E42-C435-412C-95CB-10541B971521@fiee.net> (raw)
In-Reply-To: <58EA8FA4.4040304@gmail.com>

Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster <schuster.wolfgang@gmail.com>:

>> Henning Hraban Ramm 30. März 2017 um 10:30
>> While I’m still waiting for answers to my other questions, I got some more:
>> 
>> In my layout, left margin width is zero, but \inmargin always uses left margin.
>> I didn’t find a setup to change that – should \setupmargindata[location=right] do the trick? (it doesn’t, also not with left)
>> 
>> Further I’d like to place "foot"notes into the margin.
>> It works like this:
>> 
>> \setupnote[footnote][location=none]
>> \setupnotation[footnote][
>> align=flushleft,
>> location=serried,
>> width=broad,
>> ]
>> \setuptexttexts[margin][]
>> [{\framed[%
>> align=right,
>> frame=off,
>> height=\textheight,
>> width=\rightmarginwidth 
>> ]{\placenotes[footnote]}}]
>> 
>> But I’d like the notes to start in the line of the marker, if there’s 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.
> 
> \define\PlaceFootnote
>   {\inrightmargin{\vtop{\placelocalnotes[footnote][before=,after=]}}}
> 
> \setupnote
>   [footnote]
>   [location=text,
>    bodyfont=,
>    next=\PlaceFootnote]
> 
> \setupnotation
>   [footnote]
>   [alternative=serried]
> 
> \setuplayout
>   [width=12cm,
>    rightmargindistance=0.5cm,
>    rightmargin=5cm]
> 
> \starttext
> \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote \recurselevel}} }
> \stoptext

Oh, seems like I didn’t answer to that, sorry.

Thank you very much, this solves my problem for the most part.

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).

It would be nice if we had a solution how those notes won’t collide; is there some trick how I can shift a note up or down manually?

Additionally, since my note number gets its own line, I’d like to get rid of the indenting, but couldn’t find the right parameter.
This setup adds to Wolfgang’s:

\def\FNo#1{#1\crlf}

\setupnotation
  [footnote]
  [alternative=serried,
  width=broad,
  align=flushleft,
  numbercommand=\FNo]


Greetlings, Hraban
---
http://www.fiee.net
http://wiki.contextgarden.net
GPG Key ID 1C9B22FD

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

  reply	other threads:[~2017-10-24  7:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30  8:30 Henning Hraban Ramm
2017-04-04  8:27 ` Henning Hraban Ramm
2017-04-05 18:42   ` Pablo Rodriguez
2017-04-08 17:01     ` Henning Hraban Ramm
2017-04-09 11:05       ` Pablo Rodriguez
2017-04-09 19:46 ` Wolfgang Schuster
2017-10-24  7:54   ` Henning Hraban Ramm [this message]
2018-01-23 21:01     ` Henning Hraban Ramm
  -- strict thread matches above, loose matches on Subject: below --
2019-10-04  1:32 Andres Conrado Montoya
2019-10-04  7:57 ` Henning Hraban Ramm
     [not found] <4DE085F0-68F9-4441-BC06-FCFA33F4AE21@fiee.net>
2018-02-12 11:49 ` Henning Hraban Ramm
2001-12-20 22:54 Notes in the Margin Henning Hraban Ramm
2001-12-21 17:52 ` Hans Hagen
2001-12-21 22:51   ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=34884E42-C435-412C-95CB-10541B971521@fiee.net \
    --to=texml@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).