From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: stacking of margin "footnotes"
Date: Wed, 25 Sep 2019 07:58:07 +0200 [thread overview]
Message-ID: <B5B73C7B-9C69-4ED3-B7D3-23F44B42B0F5@fiee.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 236 bytes --]
BTW yesterday I recognized that stacking of my margin notes now works without my manual shifting. That’s great, thank you!
The attached example is probably not minimal, but just in case someone’s interested.
Best, Hraban
[-- Attachment #2: marginaltest.tex --]
[-- Type: application/octet-stream, Size: 2308 bytes --]
\usemodule[visual]
\showgrid
\def\ColWidth{57mm}
\setuplayout[
backspace=21mm,
topspace=11mm,
width=118mm,
height=270mm,
%header=9pt,
%headerdistance=12pt,
%footer=24pt,
%footerdistance=0pt,
rightmargindistance=4mm,
rightmargin=\ColWidth,
leftmargindistance=4mm,
leftmargin=0mm,
grid=yes,
location=doublesided,
]
\setupbodyfont[9pt]
\setupinterlinespace[line=12pt]
% \definebodyfontenvironment[6pt][interlinespace=8pt]
% \definebodyfontenvironment[9pt][interlinespace=12pt]
% \definebodyfontenvironment[10pt][interlinespace=12pt]
% \definebodyfontenvironment[12pt][interlinespace=15pt]
% \definebodyfontenvironment[28pt][interlinespace=36pt]
% \definebodyfontenvironment[30pt][interlinespace=36pt]
\definefont[ChapterTitleFont][Serif*default at 30pt][36pt]
\definefont[SectionTitleFont][Serif*default at 9pt][12pt]
\definefont[FootnoteFont][Serif*default at 6pt][8pt]
\setupmargindata[inmargin][location=right,stack=continue,align=flushright,style={\FootnoteFont\setcharacterkerning[footnotes]}] %,style={\ss\tfx}]
\setupmargindata[inouter][location=right,stack=continue,align=flushright,style={\FootnoteFont\setcharacterkerning[footnotes]}]
\def\MarginNote#1{\inmargin[
width=\ColWidth,
align=flushleft,
style={\FootnoteFont},
]{%
\inframed[
width=\ColWidth,
align=right,
frame=off,
offset=overlay,
strut=yes,
]{#1}%
}%
}
\define\PlaceFootnote{%
\inmargin[width=\ColWidth]{%
\vtop{\placelocalnotes[footnote][before=,after=]}}}
\def\FNo#1{{\FootnoteFont#1\quad\gobblespacetokens}} %\crlf}} % Abstand geht nicht weg!?
\setupnote[footnote]
[location=text,
bodyfont=,
indenting=no,
before={\noindentation},
next=\PlaceFootnote]
\setupnotation[footnote][ % footnote text
way=bychapter,
align=flushleft,
style={\FootnoteFont},
indenting=no,
location=serried,
alternative=serried,
width=broad,
numbercommand=\FNo,
]
\setuptexttexts[margin][][% "foot"note placement
{\framed[
align={flushright,bottom},
frame=off,
height=\textheight,
width=\ColWidth,
]{%
\strut\vfill\placenotes[footnote]}%
}]
\starttext
\dorecurse{20}{%
\fakewords{5}{50}\footnote{\fakewords{10}{30}}
\fakewords{5}{50}\footnote{\fakewords{5}{30}}
\fakewords{5}{50}\par
}
\stoptext
[-- Attachment #3: Type: text/plain, Size: 493 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
___________________________________________________________________________________
reply other threads:[~2019-09-25 5:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=B5B73C7B-9C69-4ED3-B7D3-23F44B42B0F5@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).