ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: notes in the margin
Date: Sun, 09 Apr 2017 21:46:44 +0200	[thread overview]
Message-ID: <58EA8FA4.4040304@gmail.com> (raw)
In-Reply-To: <5F060F86-31D5-4725-9E2E-F2E65485EB18@fiee.net>


[-- Attachment #1.1: Type: text/plain, Size: 1714 bytes --]



> Henning Hraban Ramm <mailto:texml@fiee.net>
> 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

Wolfgang

[-- Attachment #1.2: Type: text/html, Size: 2877 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2017-04-09 19:46 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 [this message]
2017-10-24  7:54   ` Henning Hraban Ramm
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=58EA8FA4.4040304@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).