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? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
Bump. I’d really appreciate answers, since my next project depends on it. Thank you.
Am 2017-03-30 um 10:30 schrieb Henning Hraban Ramm
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.
Ok, I can use \inouter.
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:
"it works" means: The footnotes are placed in the margin, but collected at the bottom, like normal footnotes. I’d like numbered marginals.
\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?
Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
On 04/04/2017 10:27 AM, Henning Hraban Ramm wrote:
Bump. I’d really appreciate answers, since my next project depends on it. Thank you.
Am 2017-03-30 um 10:30 schrieb Henning Hraban Ramm
: 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.
Ok, I can use \inouter.
Hi Hraban, doesn’t \setupmargindata[inmargin][location=right] do the trick?
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:
"it works" means: The footnotes are placed in the margin, but collected at the bottom, like normal footnotes. I’d like numbered marginals.
Sorry, my ConTeXt ignorance cannot deal with that. But I guess that this may be implemented (if Hans agrees) with \setupnote[location=margin]. I thought something similar about notes, but I didn’t dare to mention it, since I had other issues first and Hans seems to be especially busy these days. Pablo -- http://www.ousia.tk
Am 2017-04-05 um 20:42 schrieb Pablo Rodriguez
On 04/04/2017 10:27 AM, Henning Hraban Ramm wrote:
In my layout, left margin width is zero, but \inmargin always uses left margin. Ok, I can use \inouter.
doesn’t \setupmargindata[inmargin][location=right] do the trick?
No, but \setupmargindata[inmargin][location=outer] Thank you! ;) The notes collide with my moved "foot"notes, but I wasn’t planning to use both anyway.
Further I’d like to place "foot"notes into the margin. It works like this:
"it works" means: The footnotes are placed in the margin, but collected at the bottom, like normal footnotes. I’d like numbered marginals.
Sorry, my ConTeXt ignorance cannot deal with that.
But I guess that this may be implemented (if Hans agrees) with \setupnote[location=margin].
That would be very nice. I guess the stacking mechanism from \inmargin could be reused, so that the notes start at the same height as the footnote marker, if there is enough space. I don’t understand the code – is this in page-one.mkiv? Or should I try to use marginblocks (page-mbk.mvi) or margindata (typo-mar.mkiv)? Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD
On 04/08/2017 07:01 PM, Henning Hraban Ramm wrote:
Am 2017-04-05 um 20:42 schrieb Pablo Rodriguez:
doesn’t \setupmargindata[inmargin][location=right] do the trick?
No, but \setupmargindata[inmargin][location=outer]
Hi Hraban, since your layout had left margin width set to zero, I recommended [location=right]. Glad to read it helped.
The notes collide with my moved "foot"notes, but I wasn’t planning to use both anyway.
Even if there were no collision, I guess that using the same margin for both notes would be misleading.
But I guess that this may be implemented (if Hans agrees) with \setupnote[location=margin].
That would be very nice.
I guess Hans won’t be able to take a look until ConTeXt and LuaTeX are released for TeX Live 2017.
I guess the stacking mechanism from \inmargin could be reused, so that the notes start at the same height as the footnote marker, if there is enough space.
I don’t understand the code – is this in page-one.mkiv?
Which code? The file you mention is all Greek to me.
Or should I try to use marginblocks (page-mbk.mvi) or margindata (typo-mar.mkiv)?
I don’t know, but both mechanisms aren’t able to split content between pages: \setupmarginblocks[width=.8\rightmarginwidth] \starttext \dorecurse{5}{\input zapf \startmarginblock\input knuth\stopmarginblock} \stoptext Just in case it helps, Pablo -- http://www.ousia.tk
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
Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster
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
These issues are still open, I attached my current test file.
1)
There’s always space/indent in front of the note text, I’d like to get rid of that.
Notes should look like:
texttext text
texttext12 text 12
text texttext Some remarks
But at the moment they’re 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’d like to know about that.
Stacking works nicely most of the time, but I have a few pages where the notes don’t 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
: 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
participants (3)
-
Henning Hraban Ramm
-
Pablo Rodriguez
-
Wolfgang Schuster