[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?
Changing location=none to location=text still left me with the bullet points appearing in a big list at the end of my chapter, but without any messages in them. On Monday, April 22, 2024 at 07:54:39 AM MDT, Joel via ntg-context wrote: A few years back, I tried using endnotes with ConTeXt-SBL, and it failed to compile. I'm forced to try again (due to some other issue with footnotes), and instead of compiling to error, it compiles, but the footnote's message ends up being empty. Why is it appearing empty? Is there a fix? Here is a minimum working example: \usemodule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location={Socorro, New Mexico} } @Book{clark1989, author = {Clark, William}, title = {Railroads \word{and} railroad towns \word{in} New Mexico}, publisher = {New Mexico Magazine}, year = {1989}, address = {Albuquerque, New Mexico}, isbn = {9780937206126} } \stopbuffer \usebtxdataset[bib.buffer] \setupbtx[dataset=default] \usebtxdefinitions[sbl] \setupbtx[sbl] \setupnote[footnote][location=none] \starttext \input knuth \cite[clark1989] \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext --Joel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?
See here : https://wiki.contextgarden.net/Footnotes Jean-Pierre > Le 22 avr. 2024 à 16:47, Pablo Rodriguez via ntg-context > a écrit : > > On 4/22/24 15:51, Joel via ntg-context wrote: >> A few years back, I tried using endnotes with ConTeXt-SBL, and it failed >> to compile. I'm forced to try again (due to some other issue with >> footnotes), and instead of compiling to error, it compiles, but the >> footnote's message ends up being empty. >> >> Why is it appearing empty? Is there a fix? > > Hi Joel, > > the bibliography part doesn’t work for me at all. > > But notes may be placed as their location is text (and you add a real > footnote). > > This works fine: > > \setupnote[footnote][location=text] > > \starttext > \input knuth > \footnote{Footnote} > \cite[clark1989] > > \placenotes[footnote] > > \startchapter[title=Bibliography] > \placelistofpublications > \stopchapter > \stoptext > > I never used a bibliography in ConTeXt, so that part is left to you. > > I hope it helps, > > Pablo > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Why are ConTeXt-SBL endnotes empty?
On 4/22/24 15:51, Joel via ntg-context wrote: > A few years back, I tried using endnotes with ConTeXt-SBL, and it failed > to compile. I'm forced to try again (due to some other issue with > footnotes), and instead of compiling to error, it compiles, but the > footnote's message ends up being empty. > > Why is it appearing empty? Is there a fix? Hi Joel, the bibliography part doesn’t work for me at all. But notes may be placed as their location is text (and you add a real footnote). This works fine: \setupnote[footnote][location=text] \starttext \input knuth \footnote{Footnote} \cite[clark1989] \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext I never used a bibliography in ConTeXt, so that part is left to you. I hope it helps, Pablo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Why are ConTeXt-SBL endnotes empty?
A few years back, I tried using endnotes with ConTeXt-SBL, and it failed to compile. I'm forced to try again (due to some other issue with footnotes), and instead of compiling to error, it compiles, but the footnote's message ends up being empty. Why is it appearing empty? Is there a fix? Here is a minimum working example: \usemodule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location={Socorro, New Mexico} } @Book{clark1989, author = {Clark, William}, title = {Railroads \word{and} railroad towns \word{in} New Mexico}, publisher = {New Mexico Magazine}, year = {1989}, address = {Albuquerque, New Mexico}, isbn = {9780937206126} } \stopbuffer \usebtxdataset[bib.buffer] \setupbtx[dataset=default] \usebtxdefinitions[sbl] \setupbtx[sbl] \setupnote[footnote][location=none] \starttext \input knuth \cite[clark1989] \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext --Joel ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: out of order sectionsblocks
On 9/5/2023 4:06 AM, Rik Kabel wrote: The following example generates a log file which begins with the line structure > lists > out of order sectionsblocks, maybe use \setsectionblock My larger document has over a hundred of these at the beginning. \setupnote [endnote] [location=none] \starttext \startbodymatter \startchapter[title={Body}] \startparagraph \input knuthmath \startendnote \input knuth-gpt \stopendnote \stopparagraph \stopchapter \stopbodymatter \startbackmatter \startchapter[title={Notes}] \placenotes [endnote] \stopchapter \stopbackmatter \stoptext Can the message be suppressed? Is there a better way to set up the document to have endnotes for text in other-than-backmatter sectionblocks appear in the backmatter sectionblock? i'll bring the mewssage under tracker control and assume that you will answer all questions wrt side effects (in this case probably harmless but who knows when there is a real messed up block order cq. multiple same blocks used) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] out of order sectionsblocks
The following example generates a log file which begins with the line structure > lists > out of order sectionsblocks, maybe use \setsectionblock My larger document has over a hundred of these at the beginning. \setupnote [endnote] [location=none] \starttext \startbodymatter \startchapter[title={Body}] \startparagraph \input knuthmath \startendnote \input knuth-gpt \stopendnote \stopparagraph \stopchapter \stopbodymatter \startbackmatter \startchapter[title={Notes}] \placenotes [endnote] \stopchapter \stopbackmatter \stoptext Can the message be suppressed? Is there a better way to set up the document to have endnotes for text in other-than-backmatter sectionblocks appear in the backmatter sectionblock? -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Re: disable header for endnotes
On 8/16/2023 5:02 AM, jbf wrote: I wonder if someone might be able to help me with this. I have a book in three parts and the author wants endnotes. No problem. I can produce those with \setupfootnotes[location=text] and then \placefootnotes. However, I would like the header to read 'Notes' on the recto page (or indeed be blank with no header), but I am currently getting the header that belongs to the main setup for headers, which happens to be: \startsetups[middle] \hfill \getmarking[section] \hfill \stopsetups \setupheadertexts [{\hfill\documentvariable{metadata:title}\hfill}][] [\setups{middle}][] How do I deal with the \placefootnotes command so that it ignores this and either gives me no header, or perhaps a new header with 'Notes' in place of [section] (which is achieved in centered position with setups[middle])? Julian I use the following for a notes chapter at the end of a book. It produces headings that indicate the pages for which the notes apply. Perhaps you can adapt it to your needs: In the environment file: \definemarking [notePage] \startsetups noteHeadingsText {\em Notes for page \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]} { \getmarking[notePage][top]} {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}} \stopsetups \startsetups noteHeadings:on \setupheadertexts[][\setups{noteHeadingsText}] [\setups{noteHeadingsText}][] \stopsetups In the text: \startbackmatter \startchapter[reference={cha:notes}, list={Notes}, % toc bookmark={Notes}, % pdf bookmark title={Notes}] % chapter head [Lettrine=no] \setups{noteHeadings:on} \placenotes[endnote] \stopchapter -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] footnotes by paragraph?
On 28 Jan 2023, at 02:14, jbf via ntg-context wrote: > > Here's a tricky one (for me) that I haven't been able to work out. I am > dealing with a set of constitutions that I am organizing with a paragraph > definition > \defineparagraphs[Two][n=2] > \setupparagraphs[Two][1][width=.2\textwidth,style=\bfx,after={\blank},align=flushleft] > \setupparagraphs[Two][2][width=.77\textwidth,style=normal,after={\blank}] > But I need to get the footnotes (which all apply to [2] in each article of > the constitutions) to come beneath my defined 'Two'. I do not want them to > come at the bottom of the page. > I thought I might be able to do it by placing \start...stopTwo within a > \start...stopsection and defining \setupnotation[way=bysection] but that is > not working. > Any thought on how I could approach this? > Julian Does this help? \defineparagraphs[Two][n=2] \setupparagraphs[Two][1][width=.2\textwidth,style=\bfx,after={\blank},align=flushleft] \setupparagraphs[Two][2][width=.77\textwidth,style=normal,after={\blank}] \starttext \startTwo The role of the Committee \Two The role of the Committee\endnote{See a dictionary if you want to know what a committee is!} is very important. Some more text. \stopTwo \startTwo The Chairman \Two The role of the Chairman... \stopTwo \startTwo ~ \Two \placenotes[endnote] \stopTwo \input knuth \stoptext — Bruce Horrocks Hampshire, UK — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \quotation, protrusion and linebreaking
On 2022-10-11 15:06, Leah Neukirchen via ntg-context wrote: Henning Hraban Ramm via ntg-context writes: Am 11.10.22 um 20:00 schrieb Leah Neukirchen via ntg-context: Hello, I noticed the following problem: \showframe \startluacode fonts.protrusions.vectors.pure[0x201C] = { 1, 1 } \stopluacode \definefontfeature[default][default][protrusion=pure] \setupalign[hanging] \starttext This text is unquoted. “This text is quoted manually.” \quotation{This text is quoted by a macro.} This is a very long line followed by a nice linebreak, very supercalifragilisticexpialidocious. This is a very long line followed by an ugly linebreak, not \quotation{supercalifragilisticexpialidocious} \stoptext The macro-quoted text is not protruded. I fixed this locally with a macro \def\q#1{\protrusionboundary1\quotation{#1}} Should this be default? But the missing hyphenation I have to add myself with \-. Ideas? Try \setupdelimitedtext[quotation][method=font] That fixes both issues, thanks! Not sure where I should have learned this exists, however. ;) Note that this does not fix the problem when the quotation begins a footnote. See the thread "Hanging punctuation misalignment in footnotes" (https://mailman.ntg.nl/pipermail/ntg-context/2014/077122.html or https://www.mail-archive.com/ntg-context@ntg.nl/msg73516.html, pick your favorite archiver), where the problem is described. An test example follows: \setuplayout [width=9cm, height=12cm] \definefontfeature [default] [default] [protrusion=quality] \setupalign [hanging] \setupquotation [method=font] \setupnote [endnote] [location=none] \setupnotation [footnote] [numberconversion=set 2] \setupnotation [footnote] [align=hanging] \setupwhitespace [medium] \setupbodyfont [libertinus] \showframe \starttext \quotation{{\em Cantharides}} is the reported message from Sir Francis Drake upon defeating the Spanish Armada.\endnote{\quotation{{\em Vovi}} is reportedly the message from James Broun|-|Ramsay on taking Oudh. Both are as likely as the attribution of \quotation{{\em peccavi}} to Napier after his defeat of the Ameer of Scinde.}\footnote{“{\em Vovi}” is reportedly the message from James Broun|-|Ramsay on taking Oudh. Both are as likely as the attribution of \quotation{{\em peccavi}} to Napier after his defeat of the Ameer of Scinde.} {\tfx This problem appears intractable. See \quotation{Re: [NTG-context] Hanging punctuation misalignment in footnotes} on the mailing list, where Wolfgang explains that the problem is struts.} \placenotes[endnote] \stoptext A solution is welcomed. -- Rik ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Can I just put a footnote without marking in the main text?
I found a way to wrap everything before \startdocument, so I think this looks like a template more or less: In case anyone is interested, here's the MWE: \definenote[address] \setupnote[address][rule=off,location=text] \setupnotation[footnote][numberconversion=numerals] \definenote[putjustmark] \setupnote[putjustmark][location=none] \setupnotation[putjustmark][numberconversion=set 2] \definenote[putjustnote][footnote] \setupnote[putjustnote][textcommand=\gobbleoneargument] \setupnotation[putjustnote][numberconversion=set 2] \newif\ifnoteintitle \newtoks\titlefootnotes \titlefootnotes\emptytoks \def\thanks#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\email#1{\noteintitletrue\putjustmark{#1}\doglobal\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\unskipfunnylines{\ifnoteintitle\endgraf\kern-2\lineheight\fi} \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \setupaddress[style=italic] \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \defineaddress[thd][name={Name of Third Institute or Affiliation, City, Country}] \processcommacommand[fst,snd,thd]\useaddress \startsetups [document:start] The Title\dorecurse{10}{\expanded{\thanks{Work supported by fund \recurselevel.}}} \endgraf Me\dorecurse{10}{\expanded{\email{\tt my.name@mailbox.\recurselevel.com }}\high{,}}\note[address][fst]\high{,}\note[address][snd]\high{,}\note[address][thd] \endgraf \placenotes[address] \blank[medium] \startcolumns\hyphenpenalty1000 \the\titlefootnotes\relax \setcounter[footnote][0] \unskipfunnylines \stopsetups \startsetups [document:stop] \stopcolumns \stopsetups \startdocument test\footnote{test} \input knuth \input knuth \input knuth \input knuth \stopdocument On Wed, May 18, 2022 at 10:02 PM Ross wrote: > After some visualisations, I found that my token \titlefootnotes will > ALWAYS generate two lines if there is/are any non-zero number of footnotes > there. Interesting. So I need a \newif that each time a \thanks or \email > is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards. > > I still don't know why this \kern macro won't have any effect if it's > inside a token or a \startsetup. > > On Wed, May 18, 2022 at 4:56 PM Ross wrote: > >> Hi Massi, >> >> You are a champion! >> >> On Wed, May 18, 2022 at 4:41 PM mf wrote: >> >>> I hope I got the point now: >>> >>> ... >>> \startcolumns >>> >>> \the\titlefootnotes >>> >>> \kern-\rawcountervalue[address]\lineheight % dirty trick >>> >>> test\footnote{test} >>> >>> \input knuth >>> >>> \stopcolumns >>> ... >>> >>> Massi >>> >>> Il 18/05/22 10:07, Ross ha scritto: >>> > Dear Massi, >>> > >>> > Thanks for your solution. But the thing may be related to the >>> > \appendtoks macro. It doesn't work to put just \setnotetext there. >>> > \note works fine, so that's the reason I need the "full functional >>> macro". >>> > >>> > Maybe I didn't get the point, so if it's not too much to ask, could >>> you >>> > do it on my MWE? >>> > >>> > PS: sorry I have to use another email account because my institute >>> > mailbox took forever to get the message before my government (China) >>> > finishes auditing it. >>> > >>> > Best wishes, >>> > Zhichu >>> > >>> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context >> > <mailto:ntg-context@ntg.nl>> wrote: >>> > >>> > Is this what you mean? >>> > >>> > \starttext >>> > Hello\footnotetext{Footnote without mark}. >>> > \stoptext >>> > >>> > Kind regards, >>> > Massi >>> > >>> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: >>> > > Hi everybody, >>> > > >>> > > >>> > > After some attempts to put footnotes in a mixed 1&2 columns >>> > layout, I >>> > > decide to put marks in the one-column environment and flush them >>> > when >>> > > entering the two-column environment. >>> > > >>> > > >>> > > The code
Re: [NTG-context] Can I just put a footnote without marking in the main text?
After some visualisations, I found that my token \titlefootnotes will ALWAYS generate two lines if there is/are any non-zero number of footnotes there. Interesting. So I need a \newif that each time a \thanks or \email is invoked, it'll set to true and I'll unskip the 2\lineheight afterwards. I still don't know why this \kern macro won't have any effect if it's inside a token or a \startsetup. On Wed, May 18, 2022 at 4:56 PM Ross wrote: > Hi Massi, > > You are a champion! > > On Wed, May 18, 2022 at 4:41 PM mf wrote: > >> I hope I got the point now: >> >> ... >> \startcolumns >> >> \the\titlefootnotes >> >> \kern-\rawcountervalue[address]\lineheight % dirty trick >> >> test\footnote{test} >> >> \input knuth >> >> \stopcolumns >> ... >> >> Massi >> >> Il 18/05/22 10:07, Ross ha scritto: >> > Dear Massi, >> > >> > Thanks for your solution. But the thing may be related to the >> > \appendtoks macro. It doesn't work to put just \setnotetext there. >> > \note works fine, so that's the reason I need the "full functional >> macro". >> > >> > Maybe I didn't get the point, so if it's not too much to ask, could you >> > do it on my MWE? >> > >> > PS: sorry I have to use another email account because my institute >> > mailbox took forever to get the message before my government (China) >> > finishes auditing it. >> > >> > Best wishes, >> > Zhichu >> > >> > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > > <mailto:ntg-context@ntg.nl>> wrote: >> > >> > Is this what you mean? >> > >> > \starttext >> > Hello\footnotetext{Footnote without mark}. >> > \stoptext >> > >> > Kind regards, >> > Massi >> > >> > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: >> > > Hi everybody, >> > > >> > > >> > > After some attempts to put footnotes in a mixed 1&2 columns >> > layout, I >> > > decide to put marks in the one-column environment and flush them >> > when >> > > entering the two-column environment. >> > > >> > > >> > > The code is ugly but the result is acceptable. Except that the >> > invisible >> > > footnote marks do generate something in the main text, so >> there's a >> > > blank line for each footnote. >> > > >> > > >> > > Here's an MWE: >> > > >> > > >> > > = >> > > >> > > \definenote[address] >> > > \setupnote[address][rule=off,location=text] >> > > >> > > >> > > >> > > \definenote[putjustmark] >> > > \setupnote[putjustmark][location=none] >> > > \setupnotation[putjustmark][numberconversion=set 2] >> > > >> > > >> > > \definenote[putjustnote]%[footnote] % if footnotes need to be >> > grouped, >> > > uncomment the second argument and the line after >> \the\titlefootnotes >> > > \setupnote[putjustnote][textcommand=\gobbleoneargument] >> > > \setupnotation[putjustnote][numberconversion=set 2] >> > > >> > > >> > > \newtoks\titlefootnotes >> > > >> > > >> > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to >> > > \titlefootnotes} >> > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to >> > > \titlefootnotes} >> > > >> > > >> > > \appendtoks >> > >\setcounter[footnote][0] % this looks stupid because it has no >> > effect >> > >%\setupnotation[footnote][numberconversion=numerals] >> > > \to \titlefootnotes >> > > >> > > \definenamespace >> > > [addr] >> > > [type=module, >> > > name=address, >> > > command=yes, >> > > setup=list, >> > > parent=addr, >> > >] >> > > >> > > \define[1]\use
Re: [NTG-context] Can I just put a footnote without marking in the main text?
Hi Massi, You are a champion! On Wed, May 18, 2022 at 4:41 PM mf wrote: > I hope I got the point now: > > ... > \startcolumns > > \the\titlefootnotes > > \kern-\rawcountervalue[address]\lineheight % dirty trick > > test\footnote{test} > > \input knuth > > \stopcolumns > ... > > Massi > > Il 18/05/22 10:07, Ross ha scritto: > > Dear Massi, > > > > Thanks for your solution. But the thing may be related to the > > \appendtoks macro. It doesn't work to put just \setnotetext there. > > \note works fine, so that's the reason I need the "full functional > macro". > > > > Maybe I didn't get the point, so if it's not too much to ask, could you > > do it on my MWE? > > > > PS: sorry I have to use another email account because my institute > > mailbox took forever to get the message before my government (China) > > finishes auditing it. > > > > Best wishes, > > Zhichu > > > > On Wed, May 18, 2022 at 3:36 PM mf via ntg-context > <mailto:ntg-context@ntg.nl>> wrote: > > > > Is this what you mean? > > > > \starttext > > Hello\footnotetext{Footnote without mark}. > > \stoptext > > > > Kind regards, > > Massi > > > > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: > > > Hi everybody, > > > > > > > > > After some attempts to put footnotes in a mixed 1&2 columns > > layout, I > > > decide to put marks in the one-column environment and flush them > > when > > > entering the two-column environment. > > > > > > > > > The code is ugly but the result is acceptable. Except that the > > invisible > > > footnote marks do generate something in the main text, so there's > a > > > blank line for each footnote. > > > > > > > > > Here's an MWE: > > > > > > > > > = > > > > > > \definenote[address] > > > \setupnote[address][rule=off,location=text] > > > > > > > > > > > > \definenote[putjustmark] > > > \setupnote[putjustmark][location=none] > > > \setupnotation[putjustmark][numberconversion=set 2] > > > > > > > > > \definenote[putjustnote]%[footnote] % if footnotes need to be > > grouped, > > > uncomment the second argument and the line after > \the\titlefootnotes > > > \setupnote[putjustnote][textcommand=\gobbleoneargument] > > > \setupnotation[putjustnote][numberconversion=set 2] > > > > > > > > > \newtoks\titlefootnotes > > > > > > > > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > > \titlefootnotes} > > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > > \titlefootnotes} > > > > > > > > > \appendtoks > > >\setcounter[footnote][0] % this looks stupid because it has no > > effect > > >%\setupnotation[footnote][numberconversion=numerals] > > > \to \titlefootnotes > > > > > > \definenamespace > > > [addr] > > > [type=module, > > > name=address, > > > command=yes, > > > setup=list, > > > parent=addr, > > >] > > > > > > \define[1]\useaddress > > > {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} > > > > > > > > > \starttext > > > > > > > > > > > > \defineaddress[fst][name={Name of Institute or Affiliation, City, > > Country}] > > > \defineaddress[snd][name={Name of Secondary Institute or > > Affiliation, > > > City, Country}] > > > > > > \processcommacommand[fst,snd]\useaddress > > > > > > > > > The Title\thanks{Work supported by somebody.} > > > > > > > > Me\email{myemail@some.where > }\high{,}\note[address][fst]\high{,}\note[address][snd] > > > > > > > > > > > > > > \placenotes[address] > > > > >
Re: [NTG-context] Can I just put a footnote without marking in the main text?
Dear Massi, Thanks for your solution. But the thing may be related to the \appendtoks macro. It doesn't work to put just \setnotetext there. \note works fine, so that's the reason I need the "full functional macro". Maybe I didn't get the point, so if it's not too much to ask, could you do it on my MWE? PS: sorry I have to use another email account because my institute mailbox took forever to get the message before my government (China) finishes auditing it. Best wishes, Zhichu On Wed, May 18, 2022 at 3:36 PM mf via ntg-context wrote: > Is this what you mean? > > \starttext > Hello\footnotetext{Footnote without mark}. > \stoptext > > Kind regards, > Massi > > Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: > > Hi everybody, > > > > > > After some attempts to put footnotes in a mixed 1&2 columns layout, I > > decide to put marks in the one-column environment and flush them when > > entering the two-column environment. > > > > > > The code is ugly but the result is acceptable. Except that the invisible > > footnote marks do generate something in the main text, so there's a > > blank line for each footnote. > > > > > > Here's an MWE: > > > > > > = > > > > \definenote[address] > > \setupnote[address][rule=off,location=text] > > > > > > > > \definenote[putjustmark] > > \setupnote[putjustmark][location=none] > > \setupnotation[putjustmark][numberconversion=set 2] > > > > > > \definenote[putjustnote]%[footnote] % if footnotes need to be grouped, > > uncomment the second argument and the line after \the\titlefootnotes > > \setupnote[putjustnote][textcommand=\gobbleoneargument] > > \setupnotation[putjustnote][numberconversion=set 2] > > > > > > \newtoks\titlefootnotes > > > > > > \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > \titlefootnotes} > > \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to > > \titlefootnotes} > > > > > > \appendtoks > >\setcounter[footnote][0] % this looks stupid because it has no effect > >%\setupnotation[footnote][numberconversion=numerals] > > \to \titlefootnotes > > > > \definenamespace > > [addr] > > [type=module, > > name=address, > > command=yes, > > setup=list, > > parent=addr, > >] > > > > \define[1]\useaddress > > {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} > > > > > > \starttext > > > > > > > > \defineaddress[fst][name={Name of Institute or Affiliation, City, > Country}] > > \defineaddress[snd][name={Name of Secondary Institute or Affiliation, > > City, Country}] > > > > \processcommacommand[fst,snd]\useaddress > > > > > > The Title\thanks{Work supported by somebody.} > > > > Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] > > > > > > > > > \placenotes[address] > > > > \blank[medium] > > > > \startcolumns > > > > > > \the\titlefootnotes > > > > %\setcounter[footnote][0] % why it's necessary to set the counter > > outside the token if I define [putjustnote] as [footnote]? > > > > > > test\footnote{test} > > > > \input knuth > > > > > > > > \stopcolumns > > > > \stoptext > > > > = > > > > > ___ > > > > > 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 > > > ___ > > > > > ___ > 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 > > ___ > -- Best Regards Chen ___ 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 ___
Re: [NTG-context] Can I just put a footnote without marking in the main text?
Is this what you mean? \starttext Hello\footnotetext{Footnote without mark}. \stoptext Kind regards, Massi Il 18/05/22 07:55, Zhichu Chen via ntg-context ha scritto: Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column environment and flush them when entering the two-column environment. The code is ugly but the result is acceptable. Except that the invisible footnote marks do generate something in the main text, so there's a blank line for each footnote. Here's an MWE: = \definenote[address] \setupnote[address][rule=off,location=text] \definenote[putjustmark] \setupnote[putjustmark][location=none] \setupnotation[putjustmark][numberconversion=set 2] \definenote[putjustnote]%[footnote] % if footnotes need to be grouped, uncomment the second argument and the line after \the\titlefootnotes \setupnote[putjustnote][textcommand=\gobbleoneargument] \setupnotation[putjustnote][numberconversion=set 2] \newtoks\titlefootnotes \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \appendtoks \setcounter[footnote][0] % this looks stupid because it has no effect %\setupnotation[footnote][numberconversion=numerals] \to \titlefootnotes \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \starttext \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \processcommacommand[fst,snd]\useaddress The Title\thanks{Work supported by somebody.} Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] \placenotes[address] \blank[medium] \startcolumns \the\titlefootnotes %\setcounter[footnote][0] % why it's necessary to set the counter outside the token if I define [putjustnote] as [footnote]? test\footnote{test} \input knuth \stopcolumns \stoptext = ___ 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 ___ ___ 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 ___
[NTG-context] Can I just put a footnote without marking in the main text?
Hi everybody, After some attempts to put footnotes in a mixed 1&2 columns layout, I decide to put marks in the one-column environment and flush them when entering the two-column environment. The code is ugly but the result is acceptable. Except that the invisible footnote marks do generate something in the main text, so there's a blank line for each footnote. Here's an MWE: = \definenote[address] \setupnote[address][rule=off,location=text] \definenote[putjustmark] \setupnote[putjustmark][location=none] \setupnotation[putjustmark][numberconversion=set 2] \definenote[putjustnote]%[footnote] % if footnotes need to be grouped, uncomment the second argument and the line after \the\titlefootnotes \setupnote[putjustnote][textcommand=\gobbleoneargument] \setupnotation[putjustnote][numberconversion=set 2] \newtoks\titlefootnotes \def\thanks#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \def\email#1{\putjustmark{#1}\appendtoks \putjustnote{#1} \to \titlefootnotes} \appendtoks \setcounter[footnote][0] % this looks stupid because it has no effect %\setupnotation[footnote][numberconversion=numerals] \to \titlefootnotes \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\setnotetext[address][#1]{\namedaddressparameter{#1}{name}}} \starttext \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \processcommacommand[fst,snd]\useaddress The Title\thanks{Work supported by somebody.} Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] \placenotes[address] \blank[medium] \startcolumns \the\titlefootnotes %\setcounter[footnote][0] % why it's necessary to set the counter outside the token if I define [putjustnote] as [footnote]? test\footnote{test} \input knuth \stopcolumns \stoptext = ___ 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 ___
[NTG-context] \placenotes ends up in wrong place when mixing one- and two- column layouts.
Thanks Hans, works perfectly. Sorry for the late reply. Still working on the template and got another one. Again, sorry. The journal is in two-column form and the title, authors, and addresses are spanned to the full width. Very common. But the title may acknowledge to some fund(s) and the authors may have email addresses. If I use \note[thanks] and \note[email] to do that, only the markers are shown. That's expected. So I tried to put \postponenotes before the title and insert\placenotes[thanks] and \placenotes[email] after \startcolumns. The notes did show up but in wrong position. I hope there's another magic switch, or I have to put the marks in the title head and put "real" but invisible notes in the two-column texts. Thanks again, Hans. Yours, Zhichu MWE (not that minimal): === \definenote[address] \setupnote[address][rule=off,location=text] \definenote[thanks] \setupnote[thanks][location=firstcolumn] \setupnotation[thanks][numberconversion=set 2] \definenote[email][thanks] \definenamespace [addr] [type=module, name=address, command=yes, setup=list, parent=addr, ] \define[1]\useaddress {\edef\currentaddress{#1}% {\setnotetext[address][#1]{\addressparameter{name}}}% \endgraf } \starttext \setupaddress[style=italic] \defineaddress[fst][name={Name of Institute or Affiliation, City, Country}] \defineaddress[snd][name={Name of Secondary Institute or Affiliation, City, Country}] \processcommacommand[fst,snd]\useaddress \postponenotes The Title\thanks{Work supported by somebody.} %\startlocalnotes[address] Me\email{myemail@some.where}\high{,}\note[address][fst]\high{,}\note[address][snd] %\placelocalnotes[address] %\stoplocalnotes \placenotes[address] \startcolumns \placenotes[thanks] \placenotes[email] \input knuth \stopcolumns \stoptext === On 5/8/22 17:20, Hans Hagen via ntg-context wrote: On 5/8/2022 6:55 AM, Zhichu via ntg-context wrote: Hi, I am going to convince the Board of a journal to consider ConTeXt as an additional option. I want to make a module before I say anything. Right now I have this title problem. The journal requires the titles to be CAPITALISED, except for the acronyms. I'm currently using backticks`...`to wrap it and replace it with\egroup ...\WORD\bgroup{} with lpeg. This kinda works, but that's so ugly. Besides, the actual story is that I also want to add markdown as an option, so the backticks actually have meanings. I also checked thetypo-cap.luafile to get a clue. But I used to use TeX exclusively and I have to admit that it's so overwhelming for a newbie. I really like the way wherebibtextreats words enclosed in curly braces are ignored. Or are there something that's less aggressive than\WORDso the LaTeX trick works: \def\NoCaseChange#1{\noexpand\NoCaseChange{\noexpand#1}} \starttext \protected\def\casing[#1]{\groupedcommand{\setcharactercasing[#1]}{}} \protected\def\nocasing {\groupedcommand{\setcharactercasing[reset]}{}} \setuphead[chapter][textstyle=\WORD] \chapter{some \nocasing{kept} text or \casing[Word]{more} text} \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___ ___ 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 ___
Re: [NTG-context] Make footnote/endnote number not superscript?
Thank-you all - the textcommand= was the necessary magic incantation. I will certainly use the linknote suggestion, not least because I'll still need regular footnotes as well. And if I can pluck up courage to "move" the \setupnote Wiki page over to the new style (I don't know how to do an "undo" if it all goes wrong!) I will document the parameters discovered so far. > On 21 Mar 2022, at 18:25, Pablo Rodriguez via ntg-context > wrote: > > On 3/20/22 22:18, Rik Kabel via ntg-context wrote: >> On 2022-03-20 17:07, Wolfgang Schuster via ntg-context wrote: >>> [...] >>> \setupnote[footnote][textcommand=] >>> [...] >> You might want to define a separate set of notes, for example, >> linknotes, defined as Wolfgang suggests, so >> [...] >> You can define multiple streams of footnotes and endnotes. > Hi Bruce, > > following the conversation, this might be a sample of what I think you > intend to achieve: > > \definenote[linknote] > \setupnote[linknote] > [textcommand={\ }, textstyle=, location=text] > \setupnotation[linknote] > [alternative=serried, numberstyle={\switchtobodyfont[12pt]}, > style={\switchtobodyfont[12pt]}, numbercommand=] > \starttext > > \dorecurse{25} > {First\footnote{Footnote one}. > See my video at link\linknote{yewtu.be/my-great-video.}. } > > \title{Links} > \placenotes[linknote] > > \stoptext > > I hope it may help, > > Pablo — Bruce Horrocks Hampshire, UK ___ 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 ___
Re: [NTG-context] Make footnote/endnote number not superscript?
On 3/20/22 22:18, Rik Kabel via ntg-context wrote: > On 2022-03-20 17:07, Wolfgang Schuster via ntg-context wrote: >> [...] >> \setupnote[footnote][textcommand=] >> [...] > You might want to define a separate set of notes, for example, > linknotes, defined as Wolfgang suggests, so > [...] > You can define multiple streams of footnotes and endnotes. Hi Bruce, following the conversation, this might be a sample of what I think you intend to achieve: \definenote[linknote] \setupnote[linknote] [textcommand={\ }, textstyle=, location=text] \setupnotation[linknote] [alternative=serried, numberstyle={\switchtobodyfont[12pt]}, style={\switchtobodyfont[12pt]}, numbercommand=] \starttext \dorecurse{25} {First\footnote{Footnote one}. See my video at link\linknote{yewtu.be/my-great-video.}. } \title{Links} \placenotes[linknote] \stoptext I hope it may help, Pablo ___ 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 ___
Re: [NTG-context] Make footnote/endnote number not superscript?
On 2022-03-20 17:07, Wolfgang Schuster via ntg-context wrote: Bruce Horrocks via ntg-context schrieb am 20.03.2022 um 21:10: I'm editing a book that will be printed, however the authors have included URLs which will no doubt suffer from "bit rot" in no time at all. I think it will make the main text cleaner if I use endnotes rather than include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at URL>" I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers that want to type them in. I want the "link 1" bit to be normal text rather than superscript so it's more visible. Using the \setupnote[textstyle=...] command I can change the style of the number but not the superscript placing. Is there a way to remove the superscript placing, please? \starttext First\footnote{Footnote one} \setupnote[footnote][textcommand=] First\footnote{Footnote two} \stoptext Wolfgang You might want to define a separate set of notes, for example, linknotes, defined as Wolfgang suggests, so \setupnote[linknote][textcommand=] so that they are a separate sequence. These would be used exclusively for the url links you describe and regular footnotes would continue to be superscript (or however else you choose to treat them). You can define multiple streams of footnotes and endnotes. -- Rik ___ 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 ___
Re: [NTG-context] Make footnote/endnote number not superscript?
Bruce Horrocks via ntg-context schrieb am 20.03.2022 um 21:10: I'm editing a book that will be printed, however the authors have included URLs which will no doubt suffer from "bit rot" in no time at all. I think it will make the main text cleaner if I use endnotes rather than include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at " I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers that want to type them in. I want the "link 1" bit to be normal text rather than superscript so it's more visible. Using the \setupnote[textstyle=...] command I can change the style of the number but not the superscript placing. Is there a way to remove the superscript placing, please? \starttext First\footnote{Footnote one} \setupnote[footnote][textcommand=] First\footnote{Footnote two} \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] Make footnote/endnote number not superscript?
Bruce, I suppose one way to achieve your aim, if there is no easy way to prevent superscript, would be to put your reference in parentheses: (See my video at link 1), followed by the normal superscript number for footnote anchors. You can still go with the endnotes. The other thing, and I know this because I am often having to deal with long URLs, is to remember to use \hyphenatedurl{}, and you can determine separately where the breaks occur if the default is not to your liking. I know it is not quite what you were looking for, but it would be a simple solution and not to distracting. Julian On 21/3/22 07:10, Bruce Horrocks via ntg-context wrote: I'm editing a book that will be printed, however the authors have included URLs which will no doubt suffer from "bit rot" in no time at all. I think it will make the main text cleaner if I use endnotes rather than include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at " I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers that want to type them in. I want the "link 1" bit to be normal text rather than superscript so it's more visible. Using the \setupnote[textstyle=...] command I can change the style of the number but not the superscript placing. Is there a way to remove the superscript placing, please? Alternative solutions welcome: the URLs printed in the book will be mirrored on a web page associated with the book for as long as possible so that content that vanishes over time can be replaced with Internet Archive links as they are discovered. However the order of the book isn't finalised yet so I'd like the numbering to be sequential regardless of whether I move a chapter around later on. This is partly the reason for using \endnote because I can use a reference elsewhere in the text if necessary. Thanks in advance. — Bruce Horrocks Hampshire, UK ___ 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 ___ ___ 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 ___
[NTG-context] Make footnote/endnote number not superscript?
I'm editing a book that will be printed, however the authors have included URLs which will no doubt suffer from "bit rot" in no time at all. I think it will make the main text cleaner if I use endnotes rather than include the URL in-line in the text or as a (distracting) footnote. So when the author writes "See my video at " I will print "See my video at link 1". At the back of the book, in an appendix somewhere, I then use \placenotes to display a table of the actual URLs for any readers that want to type them in. I want the "link 1" bit to be normal text rather than superscript so it's more visible. Using the \setupnote[textstyle=...] command I can change the style of the number but not the superscript placing. Is there a way to remove the superscript placing, please? Alternative solutions welcome: the URLs printed in the book will be mirrored on a web page associated with the book for as long as possible so that content that vanishes over time can be replaced with Internet Archive links as they are discovered. However the order of the book isn't finalised yet so I'd like the numbering to be sequential regardless of whether I move a chapter around later on. This is partly the reason for using \endnote because I can use a reference elsewhere in the text if necessary. Thanks in advance. — Bruce Horrocks Hampshire, UK ___ 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 ___
Re: [NTG-context] paragraph notes located in text
Pablo Rodriguez via ntg-context schrieb am 31.01.2022 um 19:49: Dear list, with current latest (2022.01.21 20:13), I cannot get paragraph footnotes when located in text. Here you have the mandatory sample: \setuppapersize[A6] \showframe\showgrid %~ \setupnote[footnote][paragraph=yes] \setupnote[footnote][location=text, paragraph=yes] \setupnotation[footnote][alternative=serried, width=broad] \starttext \startlinenumbering[step=3] \dorecurse{25} {a\footnote{b} } \stoplinenumbering \placenotes[footnote] \stoptext I already asked this twice (https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html, https://mailman.ntg.nl/pipermail/ntg-context/2022/104929.html). Could anyone confirm that the is no way to get paragraph notes when location is text, or tell me what I’m missing? You forgot \setupnotation[footnote][display=no] otherwise each footnote entry starts at a new line. Wolfgang ___ 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 ___
[NTG-context] paragraph notes located in text
Dear list, with current latest (2022.01.21 20:13), I cannot get paragraph footnotes when located in text. Here you have the mandatory sample: \setuppapersize[A6] \showframe\showgrid %~ \setupnote[footnote][paragraph=yes] \setupnote[footnote][location=text, paragraph=yes] \setupnotation[footnote][alternative=serried, width=broad] \starttext \startlinenumbering[step=3] \dorecurse{25} {a\footnote{b} } \stoplinenumbering \placenotes[footnote] \stoptext I already asked this twice (https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html, https://mailman.ntg.nl/pipermail/ntg-context/2022/104929.html). Could anyone confirm that the is no way to get paragraph notes when location is text, or tell me what I’m missing? Many thanks for your help, Pablo ___ 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 ___
[NTG-context] How to get \placenotes to place footnote-style citations at the end of my content?
I'm spinning this question off another post, as my previous question was very specific, but it was possibly discovered a more general bug exists? I'm creating some lecture slides that have footnote citations throughout. The problem is, the slides themselves already don't have much screen space, and adding all of the footnotes on the same slide steals limited screen space. It ends up showing one bullet point per slide and filling the page with the citation information. I still need to provide citations though. The solution is perhaps to place `\placenotes[footnote]` after several slides. Then, at the very end of the document list the full bibliography with ` \placelistofpublications`. In this way, I still present the citations, but they don't bury the content of the slides. But something seems wrong with ConTeXt, not allowing this to function. Try to compile this code which Joey sent me and it won't populate `\placenotes[footnote]` with any content: \startbuffer [bib] @Book{clark1989, author = {Clark, William}, title = {Railroads \word{and} railroad towns \word{in} New Mexico}, publisher = {New Mexico Magazine}, year = {1989}, address = {Albuquerque, New Mexico}, isbn = {9780937206126} } \stopbuffer \usebtxdataset[bib.buffer] \setupbtx[dataset=default] \setupnote[footnote][location=none] % commenting out this line will produce footnotes that expand the citation correctly \starttext \input knuth \cite[alternative=footnote][clark1989] \page \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext ___ 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 ___
[NTG-context] no paragraph footnotes when located in text
Dear list, using current latest (2022.01.15 17:32), I still experience an already reported issue (https://mailman.ntg.nl/pipermail/ntg-context/2022/104770.html): \setuppapersize[A6] \showframe\showgrid %~ \setupnote[footnote][paragraph=yes] \setupnote[footnote][location=text, paragraph=yes] \setupnotation[footnote][alternative=serried, width=broad] \starttext \startlinenumbering[step=3] \dorecurse{25} {a\footnote{b} } \stoplinenumbering \placenotes[footnote] \stoptext I don’t get paragraph notes with "location=text". Could anyone confirm the issue or tell me what I’m missing? Many thanks for your help, Pablo ___ 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 ___
Re: [NTG-context] paragraph notes when located in text
AMHO, there is no text with dorecurse … Then the buffer is empty ! And if I remember the buffer setup should be placed before the starttext command. Am I wrong ? > Le 4 janv. 2022 à 19:23, Pablo Rodriguez via ntg-context > a écrit : > > Dear list, > > I have the following sample: > >\setuppapersize[A6] >\showframe\showgrid >\setupnote[footnote][paragraph=yes] >%~ \setupnote[footnote][location=text, paragraph=yes] >\setupnotation[footnote][alternative=serried, width=broad] >\starttext >\startbuffer >\startlinenumbering[step=3] >\dorecurse{25} > {a\footnote{b} } >\stoplinenumbering >\stopbuffer > >\getbuffer > \placenotes[footnote] >\stoptext > > I get no paragraph notes with \setupnote[footnote][location=text, > paragraph=yes]. > > What am I missing here? > > Many thanks for your help, > > Pablo > ___ > 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 > ___ ___ 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 ___
[NTG-context] paragraph notes when located in text
Dear list, I have the following sample: \setuppapersize[A6] \showframe\showgrid \setupnote[footnote][paragraph=yes] %~ \setupnote[footnote][location=text, paragraph=yes] \setupnotation[footnote][alternative=serried, width=broad] \starttext \startbuffer \startlinenumbering[step=3] \dorecurse{25} {a\footnote{b} } \stoplinenumbering \stopbuffer \getbuffer \placenotes[footnote] \stoptext I get no paragraph notes with \setupnote[footnote][location=text, paragraph=yes]. What am I missing here? Many thanks for your help, Pablo ___ 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 ___
Re: [NTG-context] issue with \placenotes[linenote]
On 1/4/22 5:09 PM, Hans Hagen via ntg-context wrote: > On 1/4/2022 2:23 PM, Pablo Rodriguez via ntg-context wrote: >> [...] >> I cannot compile it. ConTeXt complains about "\placenotes[linenote]" >> being undefined. >> > can you check with I’m afraid I get the following error message: tex error > tex error on line 11 in file a.tex: Undefined control sequence \p_linenotes_compressmethod Pablo ___ 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 ___
Re: [NTG-context] issue with \placenotes[linenote]
On 1/4/2022 2:23 PM, Pablo Rodriguez via ntg-context wrote: Dear list, I have the following sample: \setuplinenote[location=text, paragraph=yes] \starttext \startbuffer \startlinenumbering[step=3] \dorecurse{25} {a\linenote{b} } \stoplinenumbering \stopbuffer \getbuffer \placenotes[linenote] \stoptext I cannot compile it. ConTeXt complains about "\placenotes[linenote]" being undefined. Is there something I’m missing or have I hit a bug? Many thanks for your help, can you check with \unprotect \def\strc_linenotes_inbetween {\begingroup \strc_linenotes_check_compression \begincsname\??linenotescompressmethod\p_linenotes_compressmethod\endcsname \endgroup} \protect at some point grouping was added to we have an unknown - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
[NTG-context] issue with \placenotes[linenote]
Dear list, I have the following sample: \setuplinenote[location=text, paragraph=yes] \starttext \startbuffer \startlinenumbering[step=3] \dorecurse{25} {a\linenote{b} } \stoplinenumbering \stopbuffer \getbuffer \placenotes[linenote] \stoptext I cannot compile it. ConTeXt complains about "\placenotes[linenote]" being undefined. Is there something I’m missing or have I hit a bug? Many thanks for your help, Pablo ___ 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 ___
Re: [NTG-context] local notes, "serried" (paragraph) or column style.
Hi again, As a follow-up, I just found some weird behavior when typesetting local/text notes using columns. The code below describes the issue. (As the notes are counted by page I really didn't need to use localnotes, so the problem of footnotes disappearing is solved.) \definenote[afiliação]%[numberconversion=set 2] \setupnote[afiliação][ %paragraph=yes, rule=off, location=text, ] \setupnotation[afiliação][numberconversion=a, way=bypage, %location=text, %alternative=serried, % no effect alternative=hanging, width=fit, % broad %distance=.5em, %display=no ] % or set 1 % n=3 doesn’t work \setupnotation[footnote][location={bottom,left},alternative=hanging,distance=.5em] \starttext Note\footnote{This should be at the bottom, but if I use columns it goes just below the columns.} %{% local notes have to be enclosed, otherwise footenotes below don’t appear Author 1\afiliação{asdf} Author 2\afiliação{asdf} \dorecurse{5}{\afiliação{Nota explicativa.}} \startcolumns[n=3] \placenotes[afiliação] \stopcolumns %} % end local notes \blank[big] This footnote will disapear completely if I use localnotes and don’t enclose them.\footnote{Where does it go?} \stoptext ons. 29. des. 2021 kl. 10:40 skrev Marco Patzer via ntg-context < ntg-context@ntg.nl>: > On Wed, 29 Dec 2021 08:29:34 -0300 > Youssef Cherem via ntg-context wrote: > > > I've tried to implement some sort of affiliation description with > > local notes. I'd like them to be either in a single paragraph or in > > columns (e.g., 3), but the options `serried` or `n=3` don't seem to > > work for text notes (they do work for notes at the bottom). > > > > […] > > > > \placelocalnotes[afiliação] > > Maybe this helps: > > \startcolumns [n=3] > \placelocalnotes[afiliação] > \stopcolumns > > Marco > > ___ > 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 > > ___ > ___ 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 ___
Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?
This actually seems to be rooted in a more general problem with the publications support module. Why does invoking the fastsetup for citations work within the default footnote setup, but not within endnotes flushed via \placenotes[footnote]? If I modify the original MWE to use ConTeXt's default btx rendering, I get the same error: ``` \startbuffer [bib] @Book{clark1989, author = {Clark, William}, title = {Railroads \word{and} railroad towns \word{in} New Mexico}, publisher = {New Mexico Magazine}, year = {1989}, address = {Albuquerque, New Mexico}, isbn = {9780937206126} } \stopbuffer \usebtxdataset[bib.buffer] \setupbtx[dataset=default] \setupnote[footnote][location=none] % commenting out this line will produce footnotes that expand the citation correctly \starttext \input knuth \cite[alternative=footnote][clark1989] \page \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext ``` If it helps, the relevant code in publications support is the following block in publ-imp-cite.mkvi: ``` \startsetups \s!btx:\s!cite:footnote \startfootnote \fastsetup{btx:cite:entry} \stopfootnote \stopsetups ``` The \fastsetup{btx:cite:entry} doesn't expand to anything if the footnote is flushed as an endnote via \placenotes[footnote]. Does anyone have any idea why this happens and how to fix it? Joey On Sat, Dec 25, 2021 at 3:34 PM Joey McCollum wrote: > A reasonable solution for the time being would be to check if the > righttext argument is empty, and add a final period in the footnote only if > it is not (with the assumption being that the user would provide > punctuation in any righttext for footnote/endnote citations). I've pushed > the following change to the GitHub repo, if you'd like to pull and use it: > > ``` > % Inline footnote citation setup (with intelligent trailing punctuation > replacement) > \startsetups btx:sbl:cite:footnote > \removeunwantedspaces > > \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} > \begingroup > \letbtxparameter{punct}\empty % don't pass the trailing punctuation down > to the inline setup > \startfootnote > \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in > the footnote (needed to render "Ibid." and "Idem" correctly) > % Add a closing period if there is no righttext > \doif{\btxparameter{righttext}}{\empty} { > \btxperiod > } > \stopfootnote > \endgroup > > \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} > \stopsetups > ``` > > This should allow your script to compile, but unfortunately, it doesn't > seem to make endnotes work, at least not when I try it. For some reason, > the macro \Word{\fastsetup{btx:sbl:cite:inline}} is expanding to nothing > inside the \startfootnote ... \stopfootnote environment. I have no idea why > this is happening, so any ideas are appreciated. > > Joey > > On Sat, Dec 25, 2021 at 1:11 PM Joey McCollum > wrote: > >> Joel, >> >> You may not have done anything wrong; this may be an issue with >> ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in >> publ-imp-sbl.mkvi, I added a comment to this effect: >> >> ``` >> \startsetups btx:sbl:cite:footnote >> \removeunwantedspaces >> >> \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} >> \begingroup >> \letbtxparameter{punct}\empty % don't pass the trailing punctuation >> down to the inline setup >> \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this >> necessary? For some reason, \btx_sbl_doifendswithpunctelse is not >> recognized within the footnote environment... >> \startfootnote >> \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in >> the footnote (needed to render "Ibid." and "Idem" correctly) >> % Add a closing period, unless the righttext ends with punctuation >> \doifendswithpunctelse{\btxparameter{righttext}} { >> \removeunwantedspaces >> } { >> \removeunwantedspaces >> \btxperiod >> } >> \stopfootnote >> \endgroup >> >> \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} >> \stopsetups >> ``` >> >> I define the \btx_sbl_doifendswithpunctelse macro earlier in the module. >> Initially, when I tried to invoke this macro within the \startfootnote ... >> \stopfootnote environment (to conditionally add a period at the end of a >> footnote citation if it does not have a righttext ending with p
Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?
A reasonable solution for the time being would be to check if the righttext argument is empty, and add a final period in the footnote only if it is not (with the assumption being that the user would provide punctuation in any righttext for footnote/endnote citations). I've pushed the following change to the GitHub repo, if you'd like to pull and use it: ``` % Inline footnote citation setup (with intelligent trailing punctuation replacement) \startsetups btx:sbl:cite:footnote \removeunwantedspaces \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} \begingroup \letbtxparameter{punct}\empty % don't pass the trailing punctuation down to the inline setup \startfootnote \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in the footnote (needed to render "Ibid." and "Idem" correctly) % Add a closing period if there is no righttext \doif{\btxparameter{righttext}}{\empty} { \btxperiod } \stopfootnote \endgroup \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} \stopsetups ``` This should allow your script to compile, but unfortunately, it doesn't seem to make endnotes work, at least not when I try it. For some reason, the macro \Word{\fastsetup{btx:sbl:cite:inline}} is expanding to nothing inside the \startfootnote ... \stopfootnote environment. I have no idea why this is happening, so any ideas are appreciated. Joey On Sat, Dec 25, 2021 at 1:11 PM Joey McCollum wrote: > Joel, > > You may not have done anything wrong; this may be an issue with > ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in > publ-imp-sbl.mkvi, I added a comment to this effect: > > ``` > \startsetups btx:sbl:cite:footnote > \removeunwantedspaces > > \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} > \begingroup > \letbtxparameter{punct}\empty % don't pass the trailing punctuation down > to the inline setup > \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this > necessary? For some reason, \btx_sbl_doifendswithpunctelse is not > recognized within the footnote environment... > \startfootnote > \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in > the footnote (needed to render "Ibid." and "Idem" correctly) > % Add a closing period, unless the righttext ends with punctuation > \doifendswithpunctelse{\btxparameter{righttext}} { > \removeunwantedspaces > } { > \removeunwantedspaces > \btxperiod > } > \stopfootnote > \endgroup > > \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} > \stopsetups > ``` > > I define the \btx_sbl_doifendswithpunctelse macro earlier in the module. > Initially, when I tried to invoke this macro within the \startfootnote ... > \stopfootnote environment (to conditionally add a period at the end of a > footnote citation if it does not have a righttext ending with punctuation), > I got the same error you got, but for \btx_sbl_doifendswithpunctelse. I > wasn't sure why this was happening, so I tried defining a new > \doifendswithpunctelse macro. Unfortunately, based on your e-mail, it looks > like this doesn't actually fix the problem. > > Any help from other developers would be appreciated here! Unfortunately, I > don't have a MWE replicating the problem on hand at the moment. > > Joey > > On Sat, Dec 25, 2021 at 1:04 PM Joel via ntg-context > wrote: > >> I am using the ConTeXt-SBL package for citations. I need to move my >> footnotes to the end of each article. >> >> According to the manual, I can suppress the placement of footnotes using >> two lines of code. I've added these to my minimal working code, placing >> \setupnote[footnote][location=none] >> in the header and \placenotes[footnote] where I want the endnotes to >> appear. It complains this error: >> >> "Undefined control sequence \doifendswithpunctelse" >> >> What did I do wrong? >> >> --Joel >> >> Code follows: >> >> \usemodule[publ-imp-sbl] >> \startbuffer [bib] >> >> @Article{na2006, >> title={Volcanoes \word{of} New Mexico}, >> year={2006}, >> journal={New Mexico Earth Matters}, >> publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral >> Resources}, >> volume={6}, >> number={1}, >> location={Socorro, New Mexico} >> } >> >> @Book{clark1989, >> author = {Clark, William}, >> title = {Railroads \word{and} railroad towns \word{in} New Mexico}, >> publisher = {New Mexico Magazine}, >> year = {1989}, >> address = {
Re: [NTG-context] Why are endnotes not working with ConTeXt-SBL?
Joel, You may not have done anything wrong; this may be an issue with ConTeXt-SBL. In my code for the btx:sbl:cite:footnote setup in publ-imp-sbl.mkvi, I added a comment to this effect: ``` \startsetups btx:sbl:cite:footnote \removeunwantedspaces \doifinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} \begingroup \letbtxparameter{punct}\empty % don't pass the trailing punctuation down to the inline setup \let\doifendswithpunctelse\btx_sbl_doifendswithpunctelse % why is this necessary? For some reason, \btx_sbl_doifendswithpunctelse is not recognized within the footnote environment... \startfootnote \Word{\fastsetup{btx:sbl:cite:inline}}% capitalize the first word in the footnote (needed to render "Ibid." and "Idem" correctly) % Add a closing period, unless the righttext ends with punctuation \doifendswithpunctelse{\btxparameter{righttext}} { \removeunwantedspaces } { \removeunwantedspaces \btxperiod } \stopfootnote \endgroup \doifnotinstring{\btxparameter{punct}}{\btxparameter{autopunctuation}}{\btxparameter{punct}} \stopsetups ``` I define the \btx_sbl_doifendswithpunctelse macro earlier in the module. Initially, when I tried to invoke this macro within the \startfootnote ... \stopfootnote environment (to conditionally add a period at the end of a footnote citation if it does not have a righttext ending with punctuation), I got the same error you got, but for \btx_sbl_doifendswithpunctelse. I wasn't sure why this was happening, so I tried defining a new \doifendswithpunctelse macro. Unfortunately, based on your e-mail, it looks like this doesn't actually fix the problem. Any help from other developers would be appreciated here! Unfortunately, I don't have a MWE replicating the problem on hand at the moment. Joey On Sat, Dec 25, 2021 at 1:04 PM Joel via ntg-context wrote: > I am using the ConTeXt-SBL package for citations. I need to move my > footnotes to the end of each article. > > According to the manual, I can suppress the placement of footnotes using > two lines of code. I've added these to my minimal working code, placing > \setupnote[footnote][location=none] > in the header and \placenotes[footnote] where I want the endnotes to > appear. It complains this error: > > "Undefined control sequence \doifendswithpunctelse" > > What did I do wrong? > > --Joel > > Code follows: > > \usemodule[publ-imp-sbl] > \startbuffer [bib] > > @Article{na2006, > title={Volcanoes \word{of} New Mexico}, > year={2006}, > journal={New Mexico Earth Matters}, > publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral > Resources}, > volume={6}, > number={1}, > location={Socorro, New Mexico} > } > > @Book{clark1989, > author = {Clark, William}, > title = {Railroads \word{and} railroad towns \word{in} New Mexico}, > publisher = {New Mexico Magazine}, > year = {1989}, > address = {Albuquerque, New Mexico}, > isbn = {9780937206126} > } > > \stopbuffer > > \usebtxdataset[bib.buffer] > > \setupbtx[dataset=default] > \usebtxdefinitions[sbl] > \setupbtx[sbl] > > \setupnote[footnote][location=none] > > \starttext > >\input knuth > \cite[clark1989] > > \placenotes[footnote] > > > \startchapter[title=Bibliography] > \placelistofpublications > \stopchapter > > \stoptext > > > ___ > 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 > > ___ > ___ 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 ___
[NTG-context] Why are endnotes not working with ConTeXt-SBL?
I am using the ConTeXt-SBL package for citations. I need to move my footnotes to the end of each article. According to the manual, I can suppress the placement of footnotes using two lines of code. I've added these to my minimal working code, placing \setupnote[footnote][location=none] in the header and \placenotes[footnote] where I want the endnotes to appear. It complains this error: "Undefined control sequence \doifendswithpunctelse" What did I do wrong? --Joel Code follows: \usemodule[publ-imp-sbl] \startbuffer [bib] @Article{na2006, title={Volcanoes \word{of} New Mexico}, year={2006}, journal={New Mexico Earth Matters}, publisher={New Mexico Bureau \word{of} Geology \word{and} Mineral Resources}, volume={6}, number={1}, location={Socorro, New Mexico} } @Book{clark1989, author = {Clark, William}, title = {Railroads \word{and} railroad towns \word{in} New Mexico}, publisher = {New Mexico Magazine}, year = {1989}, address = {Albuquerque, New Mexico}, isbn = {9780937206126} } \stopbuffer \usebtxdataset[bib.buffer] \setupbtx[dataset=default] \usebtxdefinitions[sbl] \setupbtx[sbl] \setupnote[footnote][location=none] \starttext \input knuth \cite[clark1989] \placenotes[footnote] \startchapter[title=Bibliography] \placelistofpublications \stopchapter \stoptext ___ 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 ___
Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes
Thanks for this. I'll look into it. > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Rik Kabel > Gesendet: Mittwoch, 30. Juni 2021 21:40 > An: ntg-context@ntg.nl > Betreff: Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes > > For what its worth, I offer my endnote apparatus with updates for parts. > It uses the standard note/notation mechanism, not a list, for endnotes. > Perhaps it can be further adapted to the needs of this thread. > > There is at least one small issue with it: I have to use \stopendnote even > though > I define \startEndnote. This causes issues with the linter (mtxrun --script > check > ) but seems otherwise harmless. > > I am sure that others more versed in ConTeXt can find some ways to fix this > and > improve the overall approach. I welcome suggestions. > > %--% > % Endnote apparatus adapted for parts > % > \mainlanguage [en] > \language [en] > \setupinteraction [state=start] > \setuppagenumbering[alternative=doublesided] > > \setupheadertexts [{\it\getmarking[part]}][{\it\getmarking[section]}] > [{\it\getmarking[chapter]}][{\it\getmarking[part]}] > \setupheads [number=no] > \setuphead [part] > [placehead=yes, > header=empty] > > %- footnote setup -% % > footnotes uses > asterisk, dagger, ddagger... so that endnotes % and pagenotes have separate > sequences. Change way= to suit % your footnote frequency > > \setupnotation [footnote] > [numberconversion=set 2, > way=chapter] > > %- endnote setup --% % > endnotes use > numeric indices, reset by part > > \setupnote [endnote][ > textseparator={,}, > textstyle=\high{\small\hairspace}, > location=none, > bodyfont=] > > \setupnotation [endnote] > [headstyle=\small, > way=bypart, > numbercommand=, > after={\blank[halfline]}] > > %- endnote pages setup % > > \definemarking [notePage] > > \startsetups [noteHeadingsText] > {\em Notes for page > \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]} > { \getmarking[notePage][top]} > {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}} > \stopsetups > > \starttexdefinition unexpanded startEndnote > \dosingleempty\doStartEndnote > \stoptexdefinition > > \starttexdefinition doStartEndnote [#1] > \expanded{\dodoStartEndnote[#1][{\rawcountervalue[userpage]}]} > \stoptexdefinition > > \starttexdefinition dodoStartEndnote [#1][#2] > \startendnote[#1] > \marking[notePage]{#2}\removeunwantedspaces > \stoptexdefinition > > \starttexdefinition endnoteChapter > \startchapter [title=Notes] > \setupheadertexts[{\it\getmarking[part]}][\setups{noteHeadingsText}] > [\setups{noteHeadingsText}][{\it\getmarking[part]}] > \placenotes [endnote] > \page > \setupheadertexts[{\it\getmarking[part]}][{\it\getmarking[section]}] > [{\it\getmarking[chapter]}][part] > \stopchapter > \stoptexdefinition > > %--% > > \starttext > > \completecontent > > \startpart[title=Part 1] > \dorecurse{3}{ > \startchapter[title=Chapter #1] > If a man wants to read good books, he must make a point of > avoiding bad ones; for life is short, and time and energy > limited. > \startfootnote > T.\,Baily Saunders’ translation, in his 1891 {\em > The Art of Literature}, of part of one of Arthur > Schopenhauer’s essays. > \stopfootnote > \startEndnote > {\language[deo]% > Um das Gute zu lesen, ist eine Bedingung, dass man das > Schlechte nicht lese: denn das Leben ist kurz, Zeit und > Kräfte beschränkt.} > \stopendnote > > \dorecurse{6}{ > \startsection[title=Section ##1] > This followed by: > > {\it Repetitio est mater studiorum}. Any book that is at > all important ought to be at once read through twice; > partly because, on a second reading, the connection of the > different portions of the book will be better understood, > and the beginning comprehended only when the end is known;
Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes
For what its worth, I offer my endnote apparatus with updates for parts. It uses the standard note/notation mechanism, not a list, for endnotes. Perhaps it can be further adapted to the needs of this thread. There is at least one small issue with it: I have to use \stopendnote even though I define \startEndnote. This causes issues with the linter (mtxrun --script check ) but seems otherwise harmless. I am sure that others more versed in ConTeXt can find some ways to fix this and improve the overall approach. I welcome suggestions. %--% % Endnote apparatus adapted for parts % \mainlanguage [en] \language [en] \setupinteraction [state=start] \setuppagenumbering[alternative=doublesided] \setupheadertexts [{\it\getmarking[part]}][{\it\getmarking[section]}] [{\it\getmarking[chapter]}][{\it\getmarking[part]}] \setupheads [number=no] \setuphead [part] [placehead=yes, header=empty] %- footnote setup -% % footnotes uses asterisk, dagger, ddagger... so that endnotes % and pagenotes have separate sequences. Change way= to suit % your footnote frequency \setupnotation [footnote] [numberconversion=set 2, way=chapter] %- endnote setup --% % endnotes use numeric indices, reset by part \setupnote [endnote][ textseparator={,}, textstyle=\high{\small\hairspace}, location=none, bodyfont=] \setupnotation [endnote] [headstyle=\small, way=bypart, numbercommand=, after={\blank[halfline]}] %- endnote pages setup % \definemarking [notePage] \startsetups [noteHeadingsText] {\em Notes for page \doifelse{\fetchmark[notePage][top]}{\fetchmark[notePage][bottom]} { \getmarking[notePage][top]} {s \getmarking[notePage][top]–\getmarking[notePage][bottom]}} \stopsetups \starttexdefinition unexpanded startEndnote \dosingleempty\doStartEndnote \stoptexdefinition \starttexdefinition doStartEndnote [#1] \expanded{\dodoStartEndnote[#1][{\rawcountervalue[userpage]}]} \stoptexdefinition \starttexdefinition dodoStartEndnote [#1][#2] \startendnote[#1] \marking[notePage]{#2}\removeunwantedspaces \stoptexdefinition \starttexdefinition endnoteChapter \startchapter [title=Notes] \setupheadertexts[{\it\getmarking[part]}][\setups{noteHeadingsText}] [\setups{noteHeadingsText}][{\it\getmarking[part]}] \placenotes [endnote] \page \setupheadertexts[{\it\getmarking[part]}][{\it\getmarking[section]}] [{\it\getmarking[chapter]}][part] \stopchapter \stoptexdefinition %--% \starttext \completecontent \startpart[title=Part 1] \dorecurse{3}{ \startchapter[title=Chapter #1] If a man wants to read good books, he must make a point of avoiding bad ones; for life is short, and time and energy limited. \startfootnote T.\,Baily Saunders’ translation, in his 1891 {\em The Art of Literature}, of part of one of Arthur Schopenhauer’s essays. \stopfootnote \startEndnote {\language[deo]% Um das Gute zu lesen, ist eine Bedingung, dass man das Schlechte nicht lese: denn das Leben ist kurz, Zeit und Kräfte beschränkt.} \stopendnote \dorecurse{6}{ \startsection[title=Section ##1] This followed by: {\it Repetitio est mater studiorum}. Any book that is at all important ought to be at once read through twice; partly because, on a second reading, the connection of the different portions of the book will be better understood, and the beginning comprehended only when the end is known; and partly because we are not in the same temper and disposition on both readings. On the second perusal we get a new view of every passage and a different impression of the whole book, which then appears in another light. \startEndnote {\language[deo]% Repetitio est mater studiorum. Jedes irgend wichtige Buch soll man sogleich zwei Mal lesen, theils weil man die Sachen das zweite Mal in ihrem Zusammenhange besser begreift und den Anfang erst recht versteht, wenn man das Ende kennt; theils weil man zu jeder Stelle das zweite Mal eine andere Stimmung mit bringt, als beim ersten, wodurch der Eindruct verschieden ausfällt und es ist, wie wenn man einen Gegenstand in anderer Beleuchtung sieht.} \stopendnote \stopsection } \stopchapter } \endnoteChapter
Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes
> -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Dienstag, 29. Juni 2021 16:20 > An: mailing list for ConTeXt users ; Maier, Denis > Christian > (UB) > Betreff: Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes > > On 6/29/2021 12:53 PM, denis.ma...@unibe.ch wrote: > > Hi, > > > > may I reask the question from below? Would be really great if > > something grouped endnotes were possible... > > i need some lines to the code base for that (everything is actually already in > place to support that) > [...] That looks very promising. Would be great if that missing piece could be added! Thanks for your help Denis > > Hans > > > > Best > > > > Denis > > > > *Von:*ntg-context *Im Auftrag von > > *denis.ma...@unibe.ch > > *Gesendet:* Donnerstag, 24. Juni 2021 13:05 > > *An:* ntg-context@ntg.nl > > *Betreff:* [NTG-context] Heading for endnotes / grouped by chapter > endnotes > > > > Hi, > > > > I have two questions regarding endnotes: > > > > 1. Is there a way to add a heading automatically to the endnotes placed > > with \placenotes[endnote]? > > > > 2. I reset the endnote number at each part. Is there a way to insert the > > title of the corresponding part heading to the endnotes? > > > > I have searched the wiki and the mailing list, and I've found two > > relevant questions, but no answers. > > > > https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html > > <https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html> > > > > https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html > > <https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html> > > > > Best, > > > > Denis > > > > === > > > > \setuphead[part][placehead=yes] > > > > \setupnotation > > > > [endnote] > > > > [way=bypart] > > > > \starttext > > > > \part{First Part} > > > > asdf\endnote{asdf} > > > > jklö\endnote{jklö} > > > > \part{Second Part} > > > > asdf\endnote{asdf} > > > > jklö\endnote{jklö} > > > > \placenotes[endnote] > > > > \stoptext > > > > = > > > > > > > > ___ > > 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 > > > > ___ > > > > > -- > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - ___ 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 ___
Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes
On 6/29/2021 12:53 PM, denis.ma...@unibe.ch wrote: Hi, may I reask the question from below? Would be really great if something grouped endnotes were possible... i need some lines to the code base for that (everything is actually already in place to support that) \setuphead[part][placehead=yes] \setupnotes [endnote] [way=bypart] \setupnotes [endnote] [location=list] \starttext \part{First Part} asdf\endnote{asdf} jklö\endnote{jklö} \part{Second Part} asdf\endnote{asdf} jklö\endnote{jklö} \page \setuplist [part] [after={\blank[samepage,big]\placelist[endnote][criterium=part]}] \placelist [part] [criterium=all] % \placelist % [endnote] % [criterium=text] \stoptext You can always ask for alist of notes but in this case there have not yet notes been flushed so that's what i need to add. Hans Best Denis *Von:*ntg-context *Im Auftrag von *denis.ma...@unibe.ch *Gesendet:* Donnerstag, 24. Juni 2021 13:05 *An:* ntg-context@ntg.nl *Betreff:* [NTG-context] Heading for endnotes / grouped by chapter endnotes Hi, I have two questions regarding endnotes: 1. Is there a way to add a heading automatically to the endnotes placed with \placenotes[endnote]? 2. I reset the endnote number at each part. Is there a way to insert the title of the corresponding part heading to the endnotes? I have searched the wiki and the mailing list, and I’ve found two relevant questions, but no answers. https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html <https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html> https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html <https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html> Best, Denis === \setuphead[part][placehead=yes] \setupnotation [endnote] [way=bypart] \starttext \part{First Part} asdf\endnote{asdf} jklö\endnote{jklö} \part{Second Part} asdf\endnote{asdf} jklö\endnote{jklö} \placenotes[endnote] \stoptext = ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Heading for endnotes / grouped by chapter endnotes
Hi, may I reask the question from below? Would be really great if something grouped endnotes were possible... Best Denis Von: ntg-context Im Auftrag von denis.ma...@unibe.ch Gesendet: Donnerstag, 24. Juni 2021 13:05 An: ntg-context@ntg.nl Betreff: [NTG-context] Heading for endnotes / grouped by chapter endnotes Hi, I have two questions regarding endnotes: 1. Is there a way to add a heading automatically to the endnotes placed with \placenotes[endnote]? 2. I reset the endnote number at each part. Is there a way to insert the title of the corresponding part heading to the endnotes? I have searched the wiki and the mailing list, and I've found two relevant questions, but no answers. https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html Best, Denis === \setuphead[part][placehead=yes] \setupnotation [endnote] [way=bypart] \starttext \part{First Part} asdf\endnote{asdf} jklö\endnote{jklö} \part{Second Part} asdf\endnote{asdf} jklö\endnote{jklö} \placenotes[endnote] \stoptext = ___ 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 ___
[NTG-context] Protrusion in notes, was Re: setupquotation[method=font] problem
On 6/24/2021 18:50, Rik Kabel wrote: Thank you Wolfgang for the quick diagnosis and Hans for the fast turnaround. Sorry, I was wrong about the turnaround -- I tested on my own patched copy, not the new download, but I am sure it will appear soon. Follow-up question. Can protrusion be implemented in the first line of a footnote or endnote, as might improve the following? I have some page-long endnotes that benefit from having it in place, but do not like the inconsistent appearance. Please excuse the hokey example: \setuplayout [width=9cm, height=9cm] \definefontfeature [default] [default] [protrusion=quality] \setupalign [hanging] \setupquotation [method=font] \setupnote [endnote] [location=none] \setupnotation [footnote] [align=hanging] \showframe \starttext \quotation{{\em Cantharides}} is the reported message from Sir Francis Drake upon defeating the Spanish Armada.\endnote{\quotation{{\em Vovi}} is reportedly the message from James Broun|-|Ramsay on taking Oudh. Both are as likely as the attribution of \quotation{{\em peccavi}} to Napier after his defeat of the Ameer of Scinde.}\footnote{\quotation{{\em Vovi}} is reportedly the message from James Broun|-|Ramsay on taking Oudh. Both are as likely as the attribution of \quotation{{\em peccavi}} to Napier after his defeat of the Ameer of Scinde.} \placenotes[endnote] \stoptext -- Rik ___ 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 ___
[NTG-context] Heading for endnotes / grouped by chapter endnotes
Hi, I have two questions regarding endnotes: 1. Is there a way to add a heading automatically to the endnotes placed with \placenotes[endnote]? 2. I reset the endnote number at each part. Is there a way to insert the title of the corresponding part heading to the endnotes? I have searched the wiki and the mailing list, and I've found two relevant questions, but no answers. https://www.mail-archive.com/ntg-context@ntg.nl/msg68490.html https://www.mail-archive.com/ntg-context@ntg.nl/msg34163.html Best, Denis === \setuphead[part][placehead=yes] \setupnotation [endnote] [way=bypart] \starttext \part{First Part} asdf\endnote{asdf} jklö\endnote{jklö} \part{Second Part} asdf\endnote{asdf} jklö\endnote{jklö} \placenotes[endnote] \stoptext = ___ 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 ___
Re: [NTG-context] Converting footnotes to endnotes
On Thu, 03 Jun 2021 14:17:15 -0600, Wolfgang Schuster wrote: \setupnote [footnote] [location=none] That did the trick; many thanks! == \setupnote [footnote] [location=none] \starttext \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfootnote{} \input ward \startfootnote \input ward \stopfootnote{} \stopsection \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfootnote{} \input ward \startfootnote \input ward \stopfootnote{} \stopsection \startsubject[title={},reference={}] \placenotes [footnote] \stopsubject \stoptext == Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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 ___
[NTG-context] Converting footnotes to endnotes
Dear gang, Generally, I do not use endnotes - see Robert Bringhurst's criticisms of endnotes in typography - but a publisher is demanding them. Converting footnotes to endnotes must be quite simple yet I'm missing it: \setupnotation[footnote] [way=bychapter] % \setupnote[footnote] % [way=bychapter] \starttext \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfootnote{} \input ward \startfootnote \input ward \stopfootnote{} \stopsection \startsection[title={},reference={}] \input ward \startfootnote \input ward \stopfootnote{} \input ward \startfootnote \input ward \stopfootnote{} \stopsection \startsubject[title={},reference={}] \placenotes [footnote] \stopsubject \stoptext What's the best way to convert the above to endnotes? Thank you in advance! Best wishes Idris -- Idris Samawi Hamid, Professor Department of Philosophy Colorado State University Fort Collins, CO 80512 ___ 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 ___
Re: [NTG-context] margin notes (was: lmtx update)
Hi Hraban, Thanks for the hint… indeed I did see that \ColWidth command but didn't think about its definition… Sorry! Now with \ColWidth defined, your code works fine and it has the advantage that the text of the sidenote begins in the margin at the level where the \footnote command appears. However, it cannot control the overflow of a sidenote to the next page, whereas the code given by Hans can do that. I admit that this does not happen very often since a well designed text should not have too many long sidenotes… In case other users would like to use your code, I put the whole example below. Best regards: Otared %%% sidenotes, or footnotes in the margin %%% example given by Hraban: %%% here the tweaking of the width of the sidenote is turned off %%% remove the comment where there is \ColWidth %%% in order to adapt to your layout \showframe \setuplayout [cutspace=7cm, width=middle, margin=5cm, margindistance=7mm] %\def\ColWidth{57mm} \setupmargindata[inmargin] [location=right, stack=continue, align=flushright, ] \setupmargindata[inouter] [location=right, stack=continue, align=flushright, ] \def\FNVOffset{0} % Negative vertical offset of footnotes in lines % Manual tweaking was necessary for a while, when stacking didn’t work reliably. \def\MarginNote#1{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, % width=\ColWidth, align=flushleft, ]{% \inframed[ % width=\ColWidth, align=right, frame=off, offset=overlay, strut=yes, ]{#1}% }% } \define\PlaceFootnote{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, % width=\ColWidth, ]{% \vtop{\placelocalnotes[footnote][before=,after=]}}% } \def\FNo#1{{#1~}} % I never managed to get number and text in consecutive lines without indented text % or at least a constant whitespace after the number. \setupnote[footnote] [location=text, bodyfont=, indenting=no, before={\noindentation}, next=\PlaceFootnote, ] \setupnotation[footnote] [way=bychapter, align=flushleft, indenting=no, location=serried, alternative=serried, width=broad, numbercommand=\FNo, ] % footnote text \setuptexttexts[margin][] [% {\framed[ align={flushright,bottom}, frame=off, height=\textheight, % width=\ColWidth, ]{% \strut\vfill\placenotes[footnote]}}% ] \starttext \dorecurse{6}{\input ward\expanded{\footnote{This is a footnote \recurselevel}} } test \dorecurse{10}{ test \footnote{\input ward }\input tufte.tex \par test \footnote{This is a note about Ward, who says: \par \input ward.tex} \input ward.tex \par test \footnote{This is a note about Donald Knuth.} \input knuth.tex \par } This is a last note. \footnote{This last note is here to see what happens in the next page\dots\par \input knuth.tex} \par \dorecurse{3}{\input knuth.tex } \stoptext > On 1 Aug 2020, at 23:01, Henning Hraban Ramm wrote: > > >> Am 01.08.2020 um 22:36 schrieb Otared Kavian : >> >> Hi Hraban, >> >> Thank you for taking the time to send your code for sidenotes. >> Unfortunately when I add >> >> \starttext >> test\footnote{A footnote in the margin.} >> \stoptext >> >> to your code, I get an error and unfortunately with recent versions of LMTX >> the error message >> ! Undefined control sequence >> is not helpful to find the error… (LMTX considers \footnote as an undefined >> control sequence…). >> > > Of course it’s not \footnote that is undefined but something else from my > code – I didn’t take the time to strip it of all the references to other > setups in the same environment, probably \ColWidth that was just a shortcut > for the column width: > \def\ColWidth{57mm} > > Hraban > > ___ > 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 > ___ _
Re: [NTG-context] margin notes (was: lmtx update)
Hi Hraban, Thank you for taking the time to send your code for sidenotes. Unfortunately when I add \starttext test\footnote{A footnote in the margin.} \stoptext to your code, I get an error and unfortunately with recent versions of LMTX the error message ! Undefined control sequence is not helpful to find the error… (LMTX considers \footnote as an undefined control sequence…). Best regards: Otared > On 1 Aug 2020, at 19:19, Henning Hraban Ramm wrote: > > > >> Am 01.08.2020 um 18:57 schrieb Otared Kavian : >> >> Hi Hraban, >> >> Thank you for reminding me of the solution cooked up by Wolfgang for you a >> few years ago. That solution works fine when the notes are short enough, but >> in some cases the notes in the margin bump into each other (indeed it is not >> a good habit to have long notes, but in some cases one cannot avoid them). > > One essential bit is missing in the wiki example: > > \setupmargindata[inmargin][ > location=right, > stack=continue, % !! > align=flushright, > ] > > The code I’m actually using for our German literature magazine “Kritische > Ausgabe” is much more elaborated, but also cluttered with obsolete stuff – I > need to sort that out some time... > (I only deleted some styling.) > > %%% Footnotes / Marginals > > \setupmargindata[inmargin][ > location=right, > stack=continue, > align=flushright, > ] > \setupmargindata[inouter][ > location=right, > stack=continue, > align=flushright, > ] > > \def\FNVOffset{0} % Negative vertical offset of footnotes in lines > % Manual tweaking was necessary for a while, when stacking didn’t work > reliably. > > \def\MarginNote#1{% > \inmargin[ > voffset=\dimexpr-\FNVOffset\lineheight\relax, > width=\ColWidth, > align=flushleft, > ]{% > \inframed[ >width=\ColWidth, >align=right, >frame=off, >offset=overlay, >strut=yes, >]{#1}% > }% > } > > \define\PlaceFootnote{% > \inmargin[ > voffset=\dimexpr-\FNVOffset\lineheight\relax, > width=\ColWidth, > ]{% > \vtop{\placelocalnotes[footnote][before=,after=]}}% > } > > \def\FNo#1{{#1~}} > % I never managed to get number and text in consecutive lines without > indented text > % or at least a constant whitespace after the number. > > \setupnote[footnote][ > location=text, > bodyfont=, > indenting=no, > before={\noindentation}, > next=\PlaceFootnote, > ] > > \setupnotation[footnote][ > way=bychapter, > align=flushleft, > indenting=no, > location=serried, > alternative=serried, > width=broad, > numbercommand=\FNo, > ] % footnote text > > \setuptexttexts[margin][][% > {\framed[ >align={flushright,bottom}, >frame=off, >height=\textheight, >width=\ColWidth, > ]{% >\strut\vfill\placenotes[footnote]}}% > ] > > > Best, Hraban > > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] margin notes (was: lmtx update)
> Am 01.08.2020 um 18:57 schrieb Otared Kavian : > > Hi Hraban, > > Thank you for reminding me of the solution cooked up by Wolfgang for you a > few years ago. That solution works fine when the notes are short enough, but > in some cases the notes in the margin bump into each other (indeed it is not > a good habit to have long notes, but in some cases one cannot avoid them). One essential bit is missing in the wiki example: \setupmargindata[inmargin][ location=right, stack=continue, % !! align=flushright, ] The code I’m actually using for our German literature magazine “Kritische Ausgabe” is much more elaborated, but also cluttered with obsolete stuff – I need to sort that out some time... (I only deleted some styling.) %%% Footnotes / Marginals \setupmargindata[inmargin][ location=right, stack=continue, align=flushright, ] \setupmargindata[inouter][ location=right, stack=continue, align=flushright, ] \def\FNVOffset{0} % Negative vertical offset of footnotes in lines % Manual tweaking was necessary for a while, when stacking didn’t work reliably. \def\MarginNote#1{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, width=\ColWidth, align=flushleft, ]{% \inframed[ width=\ColWidth, align=right, frame=off, offset=overlay, strut=yes, ]{#1}% }% } \define\PlaceFootnote{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, width=\ColWidth, ]{% \vtop{\placelocalnotes[footnote][before=,after=]}}% } \def\FNo#1{{#1~}} % I never managed to get number and text in consecutive lines without indented text % or at least a constant whitespace after the number. \setupnote[footnote][ location=text, bodyfont=, indenting=no, before={\noindentation}, next=\PlaceFootnote, ] \setupnotation[footnote][ way=bychapter, align=flushleft, indenting=no, location=serried, alternative=serried, width=broad, numbercommand=\FNo, ] % footnote text \setuptexttexts[margin][][% {\framed[ align={flushright,bottom}, frame=off, height=\textheight, width=\ColWidth, ]{% \strut\vfill\placenotes[footnote]}}% ] Best, Hraban ___ 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 ___
Re: [NTG-context] lmtx update
> On 1 Aug 2020, at 16:17, Hans Hagen wrote: > > On 8/1/2020 3:20 PM, Otared Kavian wrote: >>> On 31 Jul 2020, at 10:32, Hans Hagen wrote: >>> >>> […] >>> >>> Other work in progress is: better columns in itemize, esp proper footnote >>> support (not that I ever need that but I know users do so ...), experiments >>> work ok, but I need to check spacing. In general, footnotes (will) behave a >>> bit better, especially those used nested in other mechanisms. A side effect >>> of more control is that we can do other tricks too and we're playing with >>> it (kind of fun). >> Hi Hans, >> Thanks for your explanations. >> Regarding footnotes, would it be possible to have a built-in support for >> writing the footnotes in the margin? (For instance, assuming that the layout >> is such that for instance the right margin takes 1/3 of the page width, then >> the footnotes would occupy the right margin, beginning at the top). > It depends on what you want. This works ok: > […] Hi Hans, That's great! Thanks a lot! I have two questions in order to adapt what you sent to my case. I played a bit with your second solution, as in: %%% begin sidenote-Hans.tex \showframe \setupinteraction[state=start] \setuplayout [cutspace=7cm, width=middle, margin=5cm, margindistance=7mm] \setuptexttexts [margin] [] [{\directsetup{notabene}}] \newbox\MyNoteOverflow \setupnotation[endnote] [interaction=yes, after={\blank[big]}] \startsetups notabene \setbox\scratchbox\vbox \bgroup \setupalign[tolerant] \ifvoid\MyNoteOverflow \else \unvbox\MyNoteOverflow \fi \placenotes[endnote][before=,after=] \egroup \scratchdimen\dimexpr\textheight-.5\lineheight\relax \ifdim\ht\scratchbox>\scratchdimen \global\setbox\MyNoteOverflow\box\scratchbox \setbox\scratchbox\vsplit \MyNoteOverflow to \scratchdimen \fi \vbox \bgroup \topskipcorrection \unvbox\scratchbox \vfilll \egroup \stopsetups \startsetups notaflush \doloop { \page \ifvoid\MyNoteOverflow \exitloop \else \null \page \fi } \stopsetups \starttext \dorecurse{10}{ test \endnote{\input ward }\input tufte.tex \par test \endnote{This is a note about Ward, who says: \par \input ward.tex} \input ward.tex \par test \endnote{This is a note about Donald Knuth.} \input knuth.tex \par } This is a last note. \endnote{This last note is here to see what happens in the next page\dots\par \input knuth.tex} \par \input knuth.tex %\setups{notaflush} \stoptext %%% end sidenote-Hans.tex The first question is why did you define a setups called notaflush, and why your example works fine without using it ? The second question is: the side notes are vertically centered in the margin (one can see this when the notes do not cover all the margin), which is fine for me. But, out of curiosity, what can be changed in the setups notabene in order to have the notes to begin at the top of the margin ? (When a note runs into the next page, as in the last note, then it would be nicer to begin on top of the margin). Thanks again: Otared K. ___ 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 ___
Re: [NTG-context] lmtx update
On 8/1/2020 3:20 PM, Otared Kavian wrote: On 31 Jul 2020, at 10:32, Hans Hagen wrote: […] Other work in progress is: better columns in itemize, esp proper footnote support (not that I ever need that but I know users do so ...), experiments work ok, but I need to check spacing. In general, footnotes (will) behave a bit better, especially those used nested in other mechanisms. A side effect of more control is that we can do other tricks too and we're playing with it (kind of fun). Hi Hans, Thanks for your explanations. Regarding footnotes, would it be possible to have a built-in support for writing the footnotes in the margin? (For instance, assuming that the layout is such that for instance the right margin takes 1/3 of the page width, then the footnotes would occupy the right margin, beginning at the top). It depends on what you want. This works ok: \setuplayout [cutspace=5cm, width=middle, margin=4cm] \setuptexttexts [margin] [] [{\directsetup{notabene}}] \startsetups notabene \vbox to \textheight \bgroup \setupalign[tolerant] \topskipcorrection \placenotes[endnote][before=,after=] \vfilll \egroup \stopsetups \starttext test \endnote{\input ward }\par test \endnote{x}\par test \endnote{x}\par \setups{notaflush} \stoptext This one handles overflow (suboptimal, nicer is stepwise flushing) but this one also flushes notes that have refs on the next page. It just indicates the usual: most can be done in tex without too much hassle but one always needs to think about the edge cases as users can drop anything in there and all can interfere. \newbox\MyNoteOverflow \startsetups notabene \setbox\scratchbox\vbox\bgroup \setupalign[tolerant] \ifvoid\MyNoteOverflow \else \unvbox\MyNoteOverflow \fi \placenotes[endnote][before=,after=] \egroup \scratchdimen\dimexpr\textheight-.5\lineheight\relax \ifdim\ht\scratchbox>\scratchdimen \global\setbox\MyNoteOverflow\box\scratchbox \setbox\scratchbox\vsplit \MyNoteOverflow to \scratchdimen \fi \vbox\bgroup \topskipcorrection \unvbox\scratchbox \vfilll \egroup \stopsetups \startsetups notaflush \doloop { \page \ifvoid\MyNoteOverflow \exitloop \else \null \page \fi } \stopsetups \starttext test \endnote{\input ward }\par test \endnote{x}\par test \endnote{x}\par \setups{notaflush} \stoptext Variants (i can make one but not with this warm weather) can use selective flushing (all kinds of things are possible with notes) but another challenge is to have an independent criterium hooked into the page builder (when i'm done with playing with extensions regarding pars i might give that a go ... as usual more a challenge than a need so i need some motive). Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Blank page added after pagecolumns
All right, I've found a tentative solution that appears to work in all cases, but I'd like to know more about why the code I'm patching was implemented in the first place, because I don't want to break anything else. According to the code in page-pcl.mkiv, the \stoppagecolumns macro has two implementations, \page_col_stop_yes and \page_col_stop_nop. The choice of which implementation is used is determined by which of two implementations of \startpagecolumns (\page_col_start_yes and \page_col_start_nop) is used. That choice, in turn, is made in the \page_col_start macro, in the following lines: ``` \c_page_col_n_of_columns\pagecolumnsparameter\c!n\relax \ifnum\c_page_col_n_of_columns>\plusone \expandafter\page_col_start_yes \else \expandafter\page_col_start_nop \fi ``` so if the number of columns (i.e., the n option for the pagecolumns environment) is more than one, the "yes" implementation of the start and stop commands is used. But this seems wrong. The naming convention for the two implementations ("yes" and "nop") suggests that they should be related the parameters "page=yes" and "page=no" (hence, no page, which is what I think "nop" abbreviates), but the choice of which implementation to use is determined not by the page parameter, but by the n parameter. Is this an error in the code, or am I just understanding this incorrectly? Is there some reason why a layout with more than one column would need special instructions to add a blank page after stopping the environment? In any event, I was able to solve the problem by patching the \page_col_start_yes macro to invoke the \page_col_start_nop macro as follows: ``` \unprotect \def\page_col_stop_yes {\page_col_stop_nop} \protect ``` With this fix, the MWE I provided works regardless of which column the text ends in. I'm content to consider the problem solved, but I would certainly appreciate any feedback on my thoughts and questions about page-pcl.mkiv. Joey On Thu, May 14, 2020 at 5:03 PM Joey McCollum wrote: > Okay, I think I'm getting close, but I'm not quite there yet. The > pagecolumns source code is found in page-pcl.mkiv ( > source.contextgarden.net/tex/context/base/mkiv/page-pcl.mkiv), and in > that code, the \page_col_stop_yes macro seems to have something to do with > the issue: > > ``` > \unexpanded\def\page_col_stop_yes > {\column % \page_otr_eject_page >\page >\endgroup > % \setupoutputroutine[\s!singlecolumn]% >\page_otr_command_set_vsize >\page_otr_command_set_hsize >\page >\endgroup} > ``` > > If I redefine this macro in my MWE as follows, I can remove the extra page > that is added when the last page ends with text in the last column: > > ``` > > \unprotect > > \def\page_col_stop_yes > > {\column %\page_otr_eject_page > > %\page > > \endgroup > > % \setupoutputroutine[\s!singlecolumn]% > > \page_otr_command_set_vsize > > \page_otr_command_set_hsize > > %\page > > \endgroup} > > \protect > ``` > > Commenting out the \page calls does the trick in this case, but now, if > the last page ends with its text in a column before the last one, then the > last page is not typeset at all, and a blank page takes its place. > > On Sun, May 10, 2020 at 8:34 PM Thangalin wrote: > >> Bump. >> >> See also: https://tex.stackexchange.com/q/542993/2148 >> >> On Mon, May 4, 2020 at 11:46 AM Joey McCollum >> wrote: >> > >> > After continuing to look into this a bit, I noticed that a similar >> issue involving the insertion of a blank page after a columnset environment >> has been discussed on the mailing list in the thread "Blank page inserted >> when text reaches column's end" (dated 08 Dec 2019). In that thread, a >> proposed solution was to redefine the \page_grd_stop macro found in >> page-cst.mkiv as follows: >> > >> > ``` >> > \unprotect >> > \def\page_grd_stop{% >> > \endgraf % needed, else wrong vsize in one par case >> > \vfill % otherwise weird \placenotes[endnotes] >> > \page_grd_command_set_vsize % needed >> > \penalty\c_page_otr_eject_penalty >> > %\page_grd_command_flush_page >> > \page_otr_fill_and_eject_page >> > \page_grd_command_set_vsize % why here >> > \egroup >> > \page_otr_command_set_vsize >> > \page_otr_command_set_hsize >> > } >> > \protect >> > ``` >> > >> > Unfortunately, this approach was found to have potential issues in that >> thread, and it does not fix the problem with pagecolumns in my MWE. Are >> pagecolumns commands aliased to pagegrid commands like c
Re: [NTG-context] Blank page added after pagecolumns
Okay, I think I'm getting close, but I'm not quite there yet. The pagecolumns source code is found in page-pcl.mkiv ( source.contextgarden.net/tex/context/base/mkiv/page-pcl.mkiv), and in that code, the \page_col_stop_yes macro seems to have something to do with the issue: ``` \unexpanded\def\page_col_stop_yes {\column % \page_otr_eject_page \page \endgroup % \setupoutputroutine[\s!singlecolumn]% \page_otr_command_set_vsize \page_otr_command_set_hsize \page \endgroup} ``` If I redefine this macro in my MWE as follows, I can remove the extra page that is added when the last page ends with text in the last column: ``` \unprotect \def\page_col_stop_yes {\column %\page_otr_eject_page %\page \endgroup % \setupoutputroutine[\s!singlecolumn]% \page_otr_command_set_vsize \page_otr_command_set_hsize %\page \endgroup} \protect ``` Commenting out the \page calls does the trick in this case, but now, if the last page ends with its text in a column before the last one, then the last page is not typeset at all, and a blank page takes its place. On Sun, May 10, 2020 at 8:34 PM Thangalin wrote: > Bump. > > See also: https://tex.stackexchange.com/q/542993/2148 > > On Mon, May 4, 2020 at 11:46 AM Joey McCollum > wrote: > > > > After continuing to look into this a bit, I noticed that a similar issue > involving the insertion of a blank page after a columnset environment has > been discussed on the mailing list in the thread "Blank page inserted when > text reaches column's end" (dated 08 Dec 2019). In that thread, a proposed > solution was to redefine the \page_grd_stop macro found in page-cst.mkiv as > follows: > > > > ``` > > \unprotect > > \def\page_grd_stop{% > > \endgraf % needed, else wrong vsize in one par case > > \vfill % otherwise weird \placenotes[endnotes] > > \page_grd_command_set_vsize % needed > > \penalty\c_page_otr_eject_penalty > > %\page_grd_command_flush_page > > \page_otr_fill_and_eject_page > > \page_grd_command_set_vsize % why here > > \egroup > > \page_otr_command_set_vsize > > \page_otr_command_set_hsize > > } > > \protect > > ``` > > > > Unfortunately, this approach was found to have potential issues in that > thread, and it does not fix the problem with pagecolumns in my MWE. Are > pagecolumns commands aliased to pagegrid commands like columnset commands > are, or are they defined somewhere else? I checked page-col.mkiv, but it > seems to be too short to be the file that defines pagecolumns behavior. > > > > Joey > > > > On Sat, May 2, 2020 at 11:46 AM Joey McCollum < > jmccollum20140...@gmail.com> wrote: > >> > >> I recently found the pagecolumns manual ( > http://www.pragma-ade.com/general/manuals/pagecolumns.pdf), and in > several of the examples (including those for side floats and footnotes), > the addition of a blank page after the end of the pagecolumns environment > also seems to occur. So when the manual says, "We always start at a new > page and end on a new one," does it mean that this is a feature of > pagecolumns? And if so, is there any way to disable it? I have no problem > with a page break after the end of the pagecolumns environment, but an > empty page added after the break seems unnecessary. I checked for a wiki > page on the \definepagecolumns command to get more information on its > accepted inputs, but there doesn't appear to be a page for this command. > >> > >> Joey > >> > >> On Tue, Apr 28, 2020 at 1:40 PM Joey McCollum < > jmccollum20140...@gmail.com> wrote: > >>> > >>> I am typesetting a document using pagecolumns to ensure that my > footnotes are set ragged-bottom in columns. I have observed some unexpected > behavior whenever the last column on a page is left incomplete: a blank > page is added at the end of the document. A minimal working example follows: > >>> > >>> ``` > >>> > >>> \starttext > >>> > >>> \startpagecolumns[n=2] > >>> > >>> \dorecurse{3}{\par\input zapf} > >>> > >>> \stoppagecolumns > >>> > >>> \stoptext > >>> > >>> ``` > >>> > >>> I typeset this using ConTeXt version 2020.03.10, as released with > TeXLive 2020. Notably, if \dorecurse{3} is changed to \dorecurse{2} or > \dorecurse{6} (so that the text ends in the first column of a page), then > there is no problem. I have tried to fix this by specifying page=no in the > \startpagecolumns arguments, but
Re: [NTG-context] Blank page added after pagecolumns
Bump. See also: https://tex.stackexchange.com/q/542993/2148 On Mon, May 4, 2020 at 11:46 AM Joey McCollum wrote: > > After continuing to look into this a bit, I noticed that a similar issue > involving the insertion of a blank page after a columnset environment has > been discussed on the mailing list in the thread "Blank page inserted when > text reaches column's end" (dated 08 Dec 2019). In that thread, a proposed > solution was to redefine the \page_grd_stop macro found in page-cst.mkiv as > follows: > > ``` > \unprotect > \def\page_grd_stop{% > \endgraf % needed, else wrong vsize in one par case > \vfill % otherwise weird \placenotes[endnotes] > \page_grd_command_set_vsize % needed > \penalty\c_page_otr_eject_penalty > %\page_grd_command_flush_page > \page_otr_fill_and_eject_page > \page_grd_command_set_vsize % why here > \egroup > \page_otr_command_set_vsize > \page_otr_command_set_hsize > } > \protect > ``` > > Unfortunately, this approach was found to have potential issues in that > thread, and it does not fix the problem with pagecolumns in my MWE. Are > pagecolumns commands aliased to pagegrid commands like columnset commands > are, or are they defined somewhere else? I checked page-col.mkiv, but it > seems to be too short to be the file that defines pagecolumns behavior. > > Joey > > On Sat, May 2, 2020 at 11:46 AM Joey McCollum > wrote: >> >> I recently found the pagecolumns manual >> (http://www.pragma-ade.com/general/manuals/pagecolumns.pdf), and in several >> of the examples (including those for side floats and footnotes), the >> addition of a blank page after the end of the pagecolumns environment also >> seems to occur. So when the manual says, "We always start at a new page and >> end on a new one," does it mean that this is a feature of pagecolumns? And >> if so, is there any way to disable it? I have no problem with a page break >> after the end of the pagecolumns environment, but an empty page added after >> the break seems unnecessary. I checked for a wiki page on the >> \definepagecolumns command to get more information on its accepted inputs, >> but there doesn't appear to be a page for this command. >> >> Joey >> >> On Tue, Apr 28, 2020 at 1:40 PM Joey McCollum >> wrote: >>> >>> I am typesetting a document using pagecolumns to ensure that my footnotes >>> are set ragged-bottom in columns. I have observed some unexpected behavior >>> whenever the last column on a page is left incomplete: a blank page is >>> added at the end of the document. A minimal working example follows: >>> >>> ``` >>> >>> \starttext >>> >>> \startpagecolumns[n=2] >>> >>> \dorecurse{3}{\par\input zapf} >>> >>> \stoppagecolumns >>> >>> \stoptext >>> >>> ``` >>> >>> I typeset this using ConTeXt version 2020.03.10, as released with TeXLive >>> 2020. Notably, if \dorecurse{3} is changed to \dorecurse{2} or >>> \dorecurse{6} (so that the text ends in the first column of a page), then >>> there is no problem. I have tried to fix this by specifying page=no in the >>> \startpagecolumns arguments, but it did not change anything. Is there >>> something else I am missing? >>> >>> Thank you, >>> >>> Joey > > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] Blank page added after pagecolumns
After continuing to look into this a bit, I noticed that a similar issue involving the insertion of a blank page after a columnset environment has been discussed on the mailing list in the thread "Blank page inserted when text reaches column's end" (dated 08 Dec 2019). In that thread, a proposed solution was to redefine the \page_grd_stop macro found in page-cst.mkiv as follows: ``` \unprotect \def\page_grd_stop{% \endgraf % needed, else wrong vsize in one par case \vfill % otherwise weird \placenotes[endnotes] \page_grd_command_set_vsize % needed \penalty\c_page_otr_eject_penalty %\page_grd_command_flush_page \page_otr_fill_and_eject_page \page_grd_command_set_vsize % why here \egroup \page_otr_command_set_vsize \page_otr_command_set_hsize } \protect ``` Unfortunately, this approach was found to have potential issues in that thread, and it does not fix the problem with pagecolumns in my MWE. Are pagecolumns commands aliased to pagegrid commands like columnset commands are, or are they defined somewhere else? I checked page-col.mkiv, but it seems to be too short to be the file that defines pagecolumns behavior. Joey On Sat, May 2, 2020 at 11:46 AM Joey McCollum wrote: > I recently found the pagecolumns manual ( > http://www.pragma-ade.com/general/manuals/pagecolumns.pdf), and in > several of the examples (including those for side floats and footnotes), > the addition of a blank page after the end of the pagecolumns environment > also seems to occur. So when the manual says, "We always start at a new > page and end on a new one," does it mean that this is a feature of > pagecolumns? And if so, is there any way to disable it? I have no problem > with a page break after the end of the pagecolumns environment, but an > empty page added after the break seems unnecessary. I checked for a wiki > page on the \definepagecolumns command to get more information on its > accepted inputs, but there doesn't appear to be a page for this command. > > Joey > > On Tue, Apr 28, 2020 at 1:40 PM Joey McCollum > wrote: > >> I am typesetting a document using pagecolumns to ensure that my footnotes >> are set ragged-bottom in columns. I have observed some unexpected behavior >> whenever the last column on a page is left incomplete: a blank page is >> added at the end of the document. A minimal working example follows: >> >> ``` >> >> \starttext >> >> \startpagecolumns[n=2] >> >> \dorecurse{3}{\par\input zapf} >> >> \stoppagecolumns >> >> \stoptext >> ``` >> >> I typeset this using ConTeXt version 2020.03.10, as released with TeXLive >> 2020. Notably, if \dorecurse{3} is changed to \dorecurse{2} or >> \dorecurse{6} (so that the text ends in the first column of a page), then >> there is no problem. I have tried to fix this by specifying page=no in the >> \startpagecolumns arguments, but it did not change anything. Is there >> something else I am missing? >> >> Thank you, >> >> Joey >> > ___ 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 ___
[NTG-context] \setupinteraction[style=...] supersedes manual text style for \note
For the following one, I’m not sure if this is the intended behaviour or not: I want to set up the “notation” and “note” style manually, which works great unless I also call \setupinteraction[state=start,style=normal] (or any other style), regardless of calling it before or after setting up “notation” or “note”. MWE (with an assortment of different note positions): % \setupinteraction[state=start,style=normal] %% uncomment and manual style for \note[] is no longer respected \setupnotes[textcolor=blue,textstyle=italic] \setupnotation[endnote][headcolor=green,numberconversion=character] \starttext This is the footnote\footnote[one]{aha} and the reference\note[one]. This is the endnote\endnote[two]{oho} and the reference\note[endnote][two]. Let's look \in[one]. \startplacefigure[title={And in this float\endnote[three]{hmm} and the reference\note[three].}] \externalfigure[cow] \stopplacefigure \page And look here \in[two]. \placenotes[endnote] \stoptext Cheers Benjamin ___ 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 ___
Re: [NTG-context] Blank page inserted when text reaches column's end
Thangalin schrieb am 11.12.2019 um 02:51: Commenting out the \page_grd_command_flush_page macro seems to have reversed the effect. Any pages having columnar text that does not extend to the last line are now suppressed. How would I go about adding a conditional that checks to see whether the column is filled before deciding if a page break is necessary? \unprotect \def\page_grd_stop{% \endgraf % needed, else wrong vsize in one par case \vfill % otherwise weird \placenotes[endnotes] \page_grd_command_set_vsize % needed \penalty\c_page_otr_eject_penalty %\page_grd_command_flush_page \page_otr_fill_and_eject_page \page_grd_command_set_vsize % why here \egroup \page_otr_command_set_vsize \page_otr_command_set_hsize} \protect Fails for the next example (the first page appears twice in the PDF and the second page is missing): \setuplayout[grid=yes] \starttext \startcolumnset[n=2] \dorecurse{100}{Line #1\par} \stopcolumnset \stoptext Wolfgang ___ 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 ___
Re: [NTG-context] Blank page inserted when text reaches column's end
Commenting out the \page_grd_command_flush_page macro seems to have reversed the effect. Any pages having columnar text that does not extend to the last line are now suppressed. How would I go about adding a conditional that checks to see whether the column is filled before deciding if a page break is necessary? \unprotect \def\page_grd_stop{% \endgraf % needed, else wrong vsize in one par case \vfill % otherwise weird \placenotes[endnotes] \page_grd_command_set_vsize % needed \penalty\c_page_otr_eject_penalty %\page_grd_command_flush_page \page_otr_fill_and_eject_page \page_grd_command_set_vsize % why here \egroup \page_otr_command_set_vsize \page_otr_command_set_hsize} \protect Thank you! ___ 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 ___
Re: [NTG-context] Endnote list difference, MKIV and LMTX
On 4/12/2019 3:27 AM, Rik Kabel wrote: List, With the following example, endnotes are set differently with MKIV and LMTX – incorrectly under LMTX. (MKIV 20190404, LMTX 20190411) The problem disappears if /either//or both/ of the first two lines are removed, but of course those usually serve an important purpose. \setupbodyfont [12pt] \setupindenting[yes,small] \starttext \chapter{Testing} \dorecurse{5}{\samplefile{ward}\endnote{\samplefile{lorem}}\par} \chapter{Notes} \placenotes[endnote] \stoptext A workaround is to place \placenotes in a group with indenting turned off. I found the reason .. later this day an update. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
[NTG-context] Endnote list difference, MKIV and LMTX
List, With the following example, endnotes are set differently with MKIV and LMTX – incorrectly under LMTX. (MKIV 20190404, LMTX 20190411) The problem disappears if /either//or both/ of the first two lines are removed, but of course those usually serve an important purpose. \setupbodyfont [12pt] \setupindenting[yes,small] \starttext \chapter{Testing} \dorecurse{5}{\samplefile{ward}\endnote{\samplefile{lorem}}\par} \chapter{Notes} \placenotes[endnote] \stoptext A workaround is to place \placenotes in a group with indenting turned off. -- Rik ___ 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 ___
Re: [NTG-context] endnotes customizing how?
On 4/9/2019 11:19, Hans van der Meer wrote: In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? dr. Hans van der Meer ___ 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 ___ Not sure exactly what you want, but if it helps, here is what I have used. \setupnote handles the in-text reference to the note, \setupnotation handles the note itself. The choice of SignalStyle depends on the appearance of the chosen font's superiors, if they exist. \define[1]\SignalStyle{\high{\small\hairspace#1}} %definefontfeature [f:su] % [sups=yes] %define[1]\SignalStyle{\feature[+][f:su]{\hairspace#1}} \setupnote [endnote][ textseparator={,}, textstyle=\SignalStyle, location=none, bodyfont=, ] \setupnotation[endnote] [headstyle=\small, numbercommand=, after={\blank[halfline]}, ] -- Rik ___ 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 ___
Re: [NTG-context] endnotes customizing how?
Hans van der Meer schrieb am 09.04.2019 um 17:19: In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] \setupnote [endnote] [setups=setups:endnotes] (4)\setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? \setupnotation [endnote] [style=italic] Wolfgang ___ 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 ___
[NTG-context] endnotes customizing how?
In typesetting my endnotes with \placenotes[endnote] I seem unable to unfluence the text characteristics. I tried things like (1) \setupnotes[endnote][textcolor=blue] (2) changed fonts before the \ bgroup\bf\placenote\egroup call (3) \startsetups[setups:endnotes] \setupwhitespace[0pt] \stopsetups % textstyle influences endnotemarker in the text. \setupnote[endnote][textcommand=\hifnmarker,before=\directsetup{setups:endnotes}] (4) \setupnotes[endnote][bodyfont=italic] Where (3) made a difference in linespacing, nothing else does. How can one determine the text characteristics of the endnotes? dr. Hans van der Meer ___ 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 ___
[NTG-context] Intrusion in footnotes
De following intrusion of a twocolumn placement of endnotes in the footnote area is to be avoided, of course. The code is: text with footnotes. \placefootnotes \placefloats \startcolumns \placenotes[endnote] \stopcolumns Can this be avoided? How? dr. Hans van der Meer ___ 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 ___
Re: [NTG-context] Footnotes and endnotes
On 11/17/18 1:51 PM, Axel Kielhorn wrote: > Hello, Hi Axel, > I want to show the translator notes in a different way. Right now I > have the footnote in green, but the footnote marker in the text does > change neither font nor color?> Shouldn’t the marker be green and > bold? Setting numberconversion works, but the other options seem to > be without effect. \setupnote[translaternote][textstyle=\bf, textcolor=green] > I want to include longer notes as endnotes. I can change the marker > shown with the notes to (1) but he marker in the text does not > change. Thus you can’t distinguish between a footnote and an > endnote. As far as I know, left and right arent’t options in \setupnote. > I tried a footnote within a footnote, that didn’t work, should it? (I > don’t actually need this, I was just curious.) They don’t work (I wonder what might they be useful for). But Hans or Wolfgang know better. > When I define commentnote based on endnote I get the same numbering. > How can I either - use different counters for both kind of notes or I guess you have to avoid defining commentnote based on endnote. You may always do the following: \setupnotation [authornote, endnote, commentnote, footnote, translaterpnote] [style=bold] > - print both notes with the same placenotes command, in the right > order? Then, place the notes in the right order. But in that case, only using one kind of notes may be less problematic. I hope it helps, Pablo -- http://www.ousia.tk ___ 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 ___
[NTG-context] Footnotes and endnotes
Hello, I have some problems with footnotes and endnotes. I have two kinds of footnotes: Those by the original author and those by the translator. I want to show the translator notes in a different way. Right now I have the footnote in green, but the footnote marker in the text does change neither font nor color? Shouldn’t the marker be green and bold? Setting numberconversion works, but the other options seem to be without effect. I want to include longer note as endnotes. I can change the marker shown with the notes to (1) but he marker in the text does not change. Thus you can’t distinguish between a footnote and an endnote. I tried a footnote within a footnote, that didn’t work, should it? (I don’t actually need this, I was just curious.) When I define commentnote based on endnote I get the same numbering. How can I either - use different counters for both kind of notes or - print both notes with the same placenotes command, in the right order? Greetings Axel \starttext \definenote[authornote][footnote] \setupnotation[authornote] [style=bold] \definenote[translaternote][rule=off] \setupnotation[translaternote] [headstyle=bold, numberconversion=a, headcolor=green, style=bolditalic, color=green] % No color for the footnotemark? \definenote[translaterpnote][rule=off] \setupnotation[translaterpnote] [way=bypage, numberconversion=set 2,headstyle=bold] \definenote[commentnote][endnote] \setupnotation[commentnote] [color=red,left={(},right={)}] % How to style the footnotemark in the text? \setupnotation[endnote] [left={(},right={)}] \startsection[ reference=fußnoten, title={Fußnoten} ] \index{Fußnoten} \input ward\footnote{Eine normale Fußnote. Mit etwas Text, damit die Seite voll wird. \input ward} \input ward\translaternote{Eine Fußnote des Übersetzters} \commentnote{Mehr Informationen gibt es in den Endnoten am Ende des Kapitels.} \input ward\translaterpnote{Alternativ kann man die Übersetzernoten auch seitenweise nummerieren. Zur Unterscheidung von normalen Fußnoten hier mit Zeichen statt Zahlen.} \input ward\footnote{Was ist mit Fußnoten in Fußnoten?\footnote{Das geht natürlich auch.}} % Why not? \input ward\endnote{Eine normale Endnote, ohne spezielle Formatierung. Man kann sie nicht von einer Fußnote unterscheiden.} \input ward\translaterpnote{Die zweite Fußnote auf der Seite.} \startsubsection[title={Endnoten}] \placenotes[endnote] \placenotes[commentnote] \stopsubsection \stopsection \stoptext ___ 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 ___
Re: [NTG-context] referencing a footnote (and getting the right number)
> On 12. Aug 2018, at 17:38, Pablo Rodriguez wrote: > > Hi Robert, > > the reference command in notes is \in (for both MkII and MkIV), such as in: > >\starttext >\dorecurse{30}{\footnote{Footnote}} >\footnote[uvu-avu]{These two suffixes […]} >\dorecurse{30}{\footnote{Footnote}} >… >\footnote{See n.~\in[uvu-avu].} >\stoptext Aha. I didn’t find that in contextref.pdf (2013 edition). But it works! What does disturb me, however, is that I have this one chapter where the wrong note number is indicated (note 19 is referred to as note '18'), and I do not know why. Could it be that this is because earlier in the chapter I have also used \setupnote [localnote] [location=none] … \startlocalfootnotes[conversion=characters,n=0] … \placenotes [localnote] \stoplocalfootnotes and that this somehow interferes with the referencing of other footnotes? That is the only difference I see between this chapter and the others. Robert ___ 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 ___
Re: [NTG-context] resetting footnote counter
%\setupnote[footnote][way=bychapter,location=none] \setupfootnotes[way=bychapter,location=none] \starttext \dorecurse{10} {\expanded{\chapter{Chapter \recurselevel}} \dorecurse{10}{\input tufte\footnote{\input ward }\par} \placenotes[footnote]} \stoptext Wolfgang Robert Zydenbos schrieb am 08.08.18 um 17:03: Sorry, neither of these work (MkII with XeTeX). I get no error messages with Pablo's suggestion, but not the desired result either. Perhaps I need a very primitive command that I can insert at the beginning of every chapter. Robert On 8. Aug 2018, at 16:54, Pablo Rodriguez wrote: On 08/08/2018 03:55 PM, Taco Hoekwater wrote: On 8 Aug 2018, at 15:33, Robert Zydenbos wrote: A simple footnote question this time. I would like to print endnotes at the end of every chapter in my book, and then reset the footnote ounter so that in the next chapter the first note will be ‘1’ again. I suppose this should be done by means of \setupfootnotes – but with which parameter? Like this (and I also agree that footnote/endnote setup is a bit complicated, but of course the concept is already quite complicated itself): [...] Taco, I’m afraid Robert needs that for MkII (although he didn‘t mention it). Robert, your command reads: \setupfootnotes[way=bychapter] By default, footnote numbering seems to be reset by part. Pablo ___ 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 ___ ___ 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 ___
Re: [NTG-context] resetting footnote counter
> On 8 Aug 2018, at 15:33, Robert Zydenbos wrote: > > A simple footnote question this time. I would like to print endnotes at the > end of every chapter in my book, and then reset the footnote counter so that > in the next chapter the first note will be ‘1’ again. I suppose this should > be done by means of \setupfootnotes – but with which parameter? Like this (and I also agree that footnote/endnote setup is a bit complicated, but of course the concept is already quite complicated itself): \setupnotation[endnote][way=bychapter] \starttext \chapter{One} \dorecurse{20}{\input knuth\endnote{Endnote}} \placenotes[endnote] \chapter{Two} \dorecurse{20}{\input knuth\endnote{Endnote}} \placenotes[endnote] \stoptext Best wishes, Taco ___ 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 ___
Re: [NTG-context] footnote and endnote markers aligned with the left margin of the main text
On 08/06/2018 11:59 PM, Robert Zydenbos wrote: > Sorry for all these footnote questions, but here's another one. I > want to print the notes without the footnote marker jutting out into > the margin, but flushed with the left margin of the main text. > > Any help will be highly appreciated. Hi Robert, although you don’t mention it, I guess you need it for MkII: \showframe \setuppapersize[A6, landscape] \setupnotedefinition[footnote][location=serried, distance=1em] \starttext a\footnote{This is a footnote.} b\endnote{This is an endnote.} \placenotes[endnote] \stoptext I hope it helps, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] preventing endnotes from running off the page
Thank you for your sample, Pablo – because you left out something that I had wrongly included, and that evidently is what caused the trouble. I had \footnote everywhere in my text and wanted not to change all of them to \endnote but, instead, I had put a \setupfootnotes[location=text] at the top of the file and a \placenotes [footnote] at the bottom, where I wanted the notes to appear. (Why? Because I could not figure out how to keep the proper font formatting if I used \endnote without adding an explicit font command at the beginning of each endnote.) That apparently was a mistake. It was solved by \setupfootnotes[location=none]. Robert > On 6. Aug 2018, at 17:48, Pablo Rodriguez wrote: > > On 08/06/2018 12:54 AM, Robert Zydenbos wrote: >> When using endnotes, it seems that all the notes that are collected >> in the text are placed together in a frame – but I have so many notes >> in a chapter that the frame runs off the last page. >> >> Is there any way to let the endnotes run on naturally to the next page? > > Hi Robert, > > I’m not sure I understand your issue. At least, I’m not able to > reproduce it: > >\starttext >\dorecurse{500}{\recurselevel\endnote{This is an endnote.} } > >\placenotes[endnote] >\stoptext > > Could you modify the sample to reproduce your issue? > > Pablo ___ 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 ___
Re: [NTG-context] preventing endnotes from running off the page
On 08/06/2018 12:54 AM, Robert Zydenbos wrote: > When using endnotes, it seems that all the notes that are collected > in the text are placed together in a frame – but I have so many notes > in a chapter that the frame runs off the last page. > > Is there any way to let the endnotes run on naturally to the next page? Hi Robert, I’m not sure I understand your issue. At least, I’m not able to reproduce it: \starttext \dorecurse{500}{\recurselevel\endnote{This is an endnote.} } \placenotes[endnote] \stoptext Could you modify the sample to reproduce your issue? Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] CSS selector for elements strictly preceded by other elements
On 8/3/2018 4:31 PM, MF wrote: make a (real) minimal example and we'll see what can be done Here it is: \startbuffer[test] In this paragraphfirst footnoteendnote strictly following a footnote (no other XML nodes between them) a footnote marker and an endnote marker are at the same point in the text; in the XML source, their elements are contiguous, with nothing in between. The CSS selector footnote + endnote works right, and the setup associated to that selector puts a comma between their markers to separate them in the typesetting. In this paragraphsecond footnote they don't occur at the same point in the textendnote comes after footnote: there's some text between them, but no XML elements; for the CSS selector footnote + endnote it's the same case of the previous paragraph, because there's no other XML element between the footnote and the endnote elements: that's why you still see a comma before the endnote's marker, but this time it's not what I want. In this paragraphthird footnote they don't occur at the same point in the text, and the CSS selector footnote + endnote does not matchendnote comes after footnote, but there are 3 nodes between them: a text, a code element, another text, because there's a code element between footnote and endnote elements. CSS has no operator to discriminate between the first two cases. \stopbuffer \setupnotation[footnote][numberconversion=a] \setupwhitespace[line] \startxmlsetups xml:notesetups \xmlsetsetup{#1}{body|p|footnote|code}{xml:*} \xmlsetsetup{#1}{{endnote}}{xml:endnote} \xmlsetsetup{#1}{{footnote + endnote}}{xml:endnote-after-footnote} \stopxmlsetups \xmlregistersetup{xml:notesetups} \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:code {\tt\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:endnote \endnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:endnote-after-footnote \high{,}\endnote{\xmlflush{#1}} \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \page \placenotes[endnote] \stoptext The obvious ... \setupnotes[textseparator={, }] \startxmlsetups xml:notesetups \xmlsetsetup{#1}{body|p|footnote|endnote|code}{xml:*} \stopxmlsetups \startxmlsetups xml:endnote \endnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] CSS selector for elements strictly preceded by other elements
> make a (real) minimal example and we'll see what can be done > Here it is: \startbuffer[test] In this paragraphfirst footnoteendnote strictly following a footnote (no other XML nodes between them) a footnote marker and an endnote marker are at the same point in the text; in the XML source, their elements are contiguous, with nothing in between. The CSS selector footnote + endnote works right, and the setup associated to that selector puts a comma between their markers to separate them in the typesetting. In this paragraphsecond footnote they don't occur at the same point in the textendnote comes after footnote: there's some text between them, but no XML elements; for the CSS selector footnote + endnote it's the same case of the previous paragraph, because there's no other XML element between the footnote and the endnote elements: that's why you still see a comma before the endnote's marker, but this time it's not what I want. In this paragraphthird footnote they don't occur at the same point in the text, and the CSS selector footnote + endnote does not matchendnote comes after footnote, but there are 3 nodes between them: a text, a code element, another text, because there's a code element between footnote and endnote elements. CSS has no operator to discriminate between the first two cases. \stopbuffer \setupnotation[footnote][numberconversion=a] \setupwhitespace[line] \startxmlsetups xml:notesetups \xmlsetsetup{#1}{body|p|footnote|code}{xml:*} \xmlsetsetup{#1}{{endnote}}{xml:endnote} \xmlsetsetup{#1}{{footnote + endnote}}{xml:endnote-after-footnote} \stopxmlsetups \xmlregistersetup{xml:notesetups} \startxmlsetups xml:body \xmlflush{#1} \stopxmlsetups \startxmlsetups xml:p \xmlflush{#1}\par \stopxmlsetups \startxmlsetups xml:footnote \footnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:code {\tt\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:endnote \endnote{\xmlflush{#1}} \stopxmlsetups \startxmlsetups xml:endnote-after-footnote \high{,}\endnote{\xmlflush{#1}} \stopxmlsetups \starttext \xmlprocessbuffer{main}{test}{} \page \placenotes[endnote] \stoptext ___ 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 ___
Re: [NTG-context] using both footnotes and endnotes in a document
This works fine with MkIV, but not with MkII (I tried by altering \setupnotation to the MkII command \setupfootnotes, but that doesn't work). I need MkII for my project. Is what I am looking for at all possible in MkII? > On 27. Jul 2018, at 03:22, Henri Menke wrote: > > On 27/07/18 12:01, Robert Zydenbos wrote: >> A puzzle for note specialists: I would like to use both endnotes as well as >> footnotes in one and the same document, for different kinds of notes. >> Ideally, I should be able to write something like: >> - >> Here is a footnote,\footnote{The footnotes comes here.} and now comes an >> note that should appear at the end of my text.\endnote{And this is the >> endnote.} >> - >> For this I would need commands for determining the kind of markers for the >> notes (I know what to do for footnotes: this looks like \setupfootnotes >> [conversion=characters]; but what does one do for endnotes?) > > \setupnotation[footnote][numberconversion=characters] > \setupnotation[endnote] [numberconversion=set 2] > \starttext > > \footnote{Hello} > \footnote{World} > \footnote{Oeps} > \footnote{\CONTEXT} > \endnote{Goodbye} > \endnote{Earth} > \endnote{End} > \endnote{Notes} > > \placenotes[endnote] > > \stoptext ___ 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 ___
Re: [NTG-context] using both footnotes and endnotes in a document
On 27/07/18 12:01, Robert Zydenbos wrote: A puzzle for note specialists: I would like to use both endnotes as well as footnotes in one and the same document, for different kinds of notes. Ideally, I should be able to write something like: - Here is a footnote,\footnote{The footnotes comes here.} and now comes an note that should appear at the end of my text.\endnote{And this is the endnote.} - For this I would need commands for determining the kind of markers for the notes (I know what to do for footnotes: this looks like \setupfootnotes [conversion=characters]; but what does one do for endnotes?) \setupnotation[footnote][numberconversion=characters] \setupnotation[endnote] [numberconversion=set 2] \starttext \footnote{Hello} \footnote{World} \footnote{Oeps} \footnote{\CONTEXT} \endnote{Goodbye} \endnote{Earth} \endnote{End} \endnote{Notes} \placenotes[endnote] \stoptext Robert ___ 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 ___ ___ 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 ___
Re: [NTG-context] two questions about endnotes
That was useful! But now I would like to go another step further: in the following, slightly altered example, I use a footnote and endnotes. I know that with "\setupfootnotes [conversion=characters]" the footnote markers are changed to letters instead of numbers. Is there any way of doing this also for endnotes? (N.B.: I am using MkII.) % extended example, with footnote and endnotes \setupfootnotes [conversion=characters] \starttext Dit is iets\footnote{Voetnoot.} met een footnote.\endnote{Wat een zooi. Werkt het?} \page Het zou moeten werken,\endnote{Ja, toch?} want ik zie tekens in de tekst. \placenotes [endnote] \stoptext % end of example > On 23. Jul 2018, at 07:56, Henri Menke wrote: […] ___ 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 ___
Re: [NTG-context] two questions about endnotes
On 23/07/18 16:53, Robert Zydenbos wrote: First question: I am considering using endnotes in my book instead of footnotes. There is a command \endnote, but I do not see the notes appear anywhere in my text. What am I doing wrong? What I tried: \starttext Dit is iets met een endnote.\endnote{Wat een zooi. Werkt het?} \page Het zou moeten werken,\endnote{Ja, toch?} want ik zie tekens in de tekst. \placenotes[endnote] \stoptext Second question: Is it possible to use endnotes as well as footnotes in the same text? -- Robert ___ 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 ___ ___ 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 ___
Re: [NTG-context] notes in the margin
Ahoi, I’m still working on this issue. For the usual cases, the current mechanism is good (see attachment). * I gave up on the number placement in its own line (without text indent). * Footnotes in captions mostly disappear. * Footnotes in captions or other boxed environments (chapter title in my case) get misplaced, e.g. if a figure is narrower than \textwidth, the margin note is moved into the textarea by the difference. \startplacefigure[location=here,title={Some caption\footnote{Source of the image. This disappeares or gets misplaced}}] \externalfigure[cow]%[width=.8\textwidth] \placelocalfootnotes % doesn’t change anything \stopplacefigure * Further, in some cases it would be good to move the margin note by a few lines higher or lower. \inmargin has this first parameter: "+ - low" in reference, e.g. \inmargin [method=first,voffset=-6pt] in source typo-mar.mkiv) I just need a way to transfer this option through \footnote: I used a global definition that I redefine where I need it: \def\FNVOffset{0} % vertical shift of footnotes in negative lines % this is unclean, but works quite well \define\PlaceFootnote% {\inmargin[voffset=\dimexpr-\FNVOffset\lineheight\relax]{\vtop{\placelocalnotes[footnote][before=,after=]}}} \def\FNo#1{{\ss\tfx #1}} \setupnote[footnote] [location=text, bodyfont=, indenting=no, before={\noindent}, next=\PlaceFootnote] \setupnotation[footnote][ way=bychapter, align=flushleft, style={\ss\tfx}, indenting=no, location=serried, alternative=serried, width=broad, numbercommand=\FNo, ] \setuptexttexts[margin][] [{\framed[ align={flushleft,bottom}, frame=off, height=\textheight, width=\rightmarginwidth]{% \strut\vfill\placenotes[footnote]}}] \setupmargindata[inmargin][location=outer,stack=continue,align=flushleft,style={\ss\tfx}] \setupmargindata[inouter][location=outer,stack=continue,align=flushleft,style={\ss\tfx}] Greetlings, Hraban --- http://www.fiee.net http://wiki.contextgarden.net GPG Key ID 1C9B22FD sidenotetest.tex Description: Binary data ___ 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 ___
Re: [NTG-context] notes in the margin
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 <te...@fiee.net>: > Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster > <schuster.wolfg...@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 sidenotetest.tex Description: Binary data ___ 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 ___
Re: [NTG-context] Labels and Enumerations
Hans, Even with the local scope, I cannot get multiple enumerations in a paragraph at the same time as I get inright labels in footnotes. The footnote enumerations appear only with display=yes, but that causes paragraph breaks after each enumeration. The default alignment works, but I need marginal indices. Labels seem to me a bit more flexible here since they do not require paragraph semantics for termination. I am not looking for a taggable mark, simply a visible reference index to which reference can be applied. So, with enumerations providing no benefit and introducing additional problems, is it unreasonable to request that labels be officially supported in MKIV and not marked as MKII relicts? Here is my latest test harness. \defineconstructionalternative [mylabel] [renderingsetup=constructionrenderings:mylabel, width=] \startsetups[constructionrenderings:mylabel] \dontleavehmode \inright[scope=local]{\flushconstructionheadbox} \stopsetups %% constructionrenderings testing alternatives % \inright[scope=local]{\flushconstructionheadbox} % \flushconstructionheadbox % \inright{\flushconstructionheadbox} \defineenumeration [Enu] [alternative=mylabel, display=no, before=, after=] \definelabel [Lab] [alternative=mylabel, before=, after=] \definenote [endnote] \setupnotation [endnote] [way=bytext, location=none, conversion=numbers] \definenote [footnote] \setupnotation [footnote] [way=bypage, numberconversion=set 2] \define\testTextOne{\quotation{\startEnu\input ward \stopEnu} And the rest of the paragraph.} \define\testTextTwo{\startEnu\input jojomayer \stopEnu \quotation{\startEnu\input ward \stopEnu} And the rest of the paragraph.} \define\testTextThree{\Lab\input jojomayer \quotation{\Lab\input ward } And the rest of the paragraph.} \setupwhitespace[small] \starttext \startchapter[title=bar] Paragraph with one enumeration: \testTextOne\ A footnote with one enumeration\footnote{\testTextOne} and an endnote with one enumeration.\endnote{\testTextOne} Paragraph with two enumerations: \testTextTwo\ A footnote with two enumerations\footnote{\testTextTwo} and an endnote with two enumeration.\endnote{\testTextTwo} Paragraph with two labels: \testTextThree\ A footnote with two labels\footnote{\testTextThree} and an endnote with two labels.\endnote{\testTextThree} \stopchapter \startchapter[title=notes] \placenotes[endnote] \stopchapter \stoptext -- Rik ___ 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 ___
Re: [NTG-context] Labels and Enumerations
Further experimentation suggests that the problem is in the interaction between footnotes and margin placement. Endnotes work fine. \defineconstructionalternative [mylabel] [renderingsetup=constructionrenderings:mylabel, width=] \startsetups[constructionrenderings:mylabel] \dontleavehmode \inright{\flushconstructionheadbox} \stopsetups \defineenumeration [one] [alternative=mylabel, display=no, before=, after=] \definenote [endnote] \setupnotation [endnote] [way=bytext, location=none, conversion=numbers] \starttext \startchapter[title=bar] this works \startone[reference=aa]\input jojomayer \stopone \quotation{\startone[reference=bb]\input ward \stopone} this fails\footnote{\startone[reference=cc]\input jojomayer \stopone \quotation{\startone[reference=dd]\input ward \stopone}} while this works\endnote{\startone[reference=ee]\input jojomayer \stopone \quotation{\startone[reference=ff]\input ward \stopone}} whatever \in{one}[aa] whatever \in{one}[bb] whatever \in{one}[cc] whatever \in{one}[dd] whatever \in{one}[ee] whatever \in{one}[ff] \stopchapter \startchapter[title=notes] \placenotes[endnote] \stopchapter \stoptext -- Rik ___ 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 ___
Re: [NTG-context] Problem with definelabel and footnotes
Bump. On 2015-07-27 22:08, Rik Kabel wrote: I have a document with hundreds of labels generated by \definelabel. They are used to index quotations in the text. Some of these occur in notes. Previously I had all such notes at the end of the book, as endnotes, but an editor requested a version with the notes as traditional footnotes. When the notes with labels appear in footnotes, the labels are not printed. The MWE below demonstrates the problem. I would expect to see a red 2 at the end of the first line of the footnote. I have tried to use \defineenumeration instead of \definelabel, but I cannot get a comparable result to what I have with definelabel. Is this a bug in the footnote typesetting, or a problem with my expectations? \setuppapersize[A6] \definelabel [Qi][text=,alternative=inright,headcolor=red] \definenote [pagenote] \setupnotation [pagenote][way=bypage,numberconversion=set 2] \definenote [endnote] \setupnotation [endnote][way=bytext,location=none,conversion=numbers] \starttext {\Qi}An index in the margin.\par Text with a numbered endnote with an index\endnote{% {\Qi}The numbered endnote with its index. The numbered endnote with its index. The numbered endnote with its index.% } and a marked pagenote with an index.\pagenote{% {\Qi}The marked pagenote, but where is the index? The marked pagenote, but where is the index? The marked pagenote, but where is the index?% }\par \page The endnote follows.\par \placenotes[endnote] \stoptext -- Rik Kabel ___ 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 ___
Re: [NTG-context] \cite not working with notes in xtables
Michael, Hans seems to have fixed this problem, which was an obscure lua issue having to do with collecting references interacting badly with trial typesetting, as is done in xtables. The correction should make it to the beta soon. Alan On Tue, 5 Dec 2017 21:06:59 +0100 Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote: > Hello List, > > I have this MWE that reflects my current layout where I have images > in an xtable with captions defined as note. Both, footnotes and > captions are set in the margin. The Example compiles correct with > just one caption in a xcell. If there are two (as in the MWE) the > \cite command doesnt work. > > Could this be a conflict on the lua side of xtables/publication > framework? > > The second problem of course are the footnotes that are not placed on > the correct side. I thought \automigrateinserts would help here. But > it doesnt. > > Any hints how to solve this? > > Thanks Michael > > > --- > \useMPlibrary[dum] > > \startbuffer[bib] > @article{tufte, author = {Edward Tufte} } > \stopbuffer > \definebtxdataset[bib] > \usebtxdataset [bib][bib.buffer] > \definebtxrendering[bib][dataset=bib] > > \setuplayout[backspace=80mm,width=120mm] > > \setupnote[footnote] > [location={none}] > > \definenote [caption] > [location={none}] > > \automigrateinserts > > \setuptexttexts > [margin] > [{{\vbox to\textheight% > {\placenotes[caption]% > \null\vfilll% > \placenotes[footnote]}}}] > [] > > \starttext > > \input tufte > \footnote{\cite[bib::tufte]} > \par > > \startembeddedxtable[distance=10mm] > \startxrow > \startxcell[width=55mm] > \externalfigure[dummy][factor=fit] > \caption[dummy]{caption} > \stopxcell > \startxcell[width=55mm] > \externalfigure[dummy][factor=fit] > % \caption[dummy]{caption} %without this note the \cite > command compiles \stopxcell > \stopxrow > \stopembeddedxtable > > \input tufte > \footnote{\cite[bib::tufte]} > \par > > \placebtxrendering [bib] > > \stoptext ___ 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 ___
Re: [NTG-context] \cite not working with notes in xtables
Hans, Including the second \caption (note) leads to: publications> no entry 'tufte' found in dataset 'bib' publications> no entry 'tufte' found in dataset 'bib' Strange... Alan On Tue, 5 Dec 2017 21:06:59 +0100 Michael Eidenbenz <eidenb...@arch.ethz.ch> wrote: > Hello List, > > I have this MWE that reflects my current layout where I have images > in an xtable with captions defined as note. Both, footnotes and > captions are set in the margin. The Example compiles correct with > just one caption in a xcell. If there are two (as in the MWE) the > \cite command doesnt work. > > Could this be a conflict on the lua side of xtables/publication > framework? > > The second problem of course are the footnotes that are not placed on > the correct side. I thought \automigrateinserts would help here. But > it doesnt. > > Any hints how to solve this? > > Thanks Michael > > > --- > \useMPlibrary[dum] > > \startbuffer[bib] > @article{tufte, author = {Edward Tufte} } > \stopbuffer > \definebtxdataset[bib] > \usebtxdataset [bib][bib.buffer] > \definebtxrendering[bib][dataset=bib] > > \setuplayout[backspace=80mm,width=120mm] > > \setupnote[footnote] > [location={none}] > > \definenote [caption] > [location={none}] > > \automigrateinserts > > \setuptexttexts > [margin] > [{{\vbox to\textheight% > {\placenotes[caption]% > \null\vfilll% > \placenotes[footnote]}}}] > [] > > \starttext > > \input tufte > \footnote{\cite[bib::tufte]} > \par > > \startembeddedxtable[distance=10mm] > \startxrow > \startxcell[width=55mm] > \externalfigure[dummy][factor=fit] > \caption[dummy]{caption} > \stopxcell > \startxcell[width=55mm] > \externalfigure[dummy][factor=fit] > % \caption[dummy]{caption} %without this note the \cite > command compiles \stopxcell > \stopxrow > \stopembeddedxtable > > \input tufte > \footnote{\cite[bib::tufte]} > \par > > \placebtxrendering [bib] > > \stoptext > > --- > > ___ > 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 > ___ ___ 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 ___
[NTG-context] \cite not working with notes in xtables
Hello List, I have this MWE that reflects my current layout where I have images in an xtable with captions defined as note. Both, footnotes and captions are set in the margin. The Example compiles correct with just one caption in a xcell. If there are two (as in the MWE) the \cite command doesnt work. Could this be a conflict on the lua side of xtables/publication framework? The second problem of course are the footnotes that are not placed on the correct side. I thought \automigrateinserts would help here. But it doesnt. Any hints how to solve this? Thanks Michael --- \useMPlibrary[dum] \startbuffer[bib] @article{tufte, author = {Edward Tufte} } \stopbuffer \definebtxdataset[bib] \usebtxdataset [bib][bib.buffer] \definebtxrendering[bib][dataset=bib] \setuplayout[backspace=80mm,width=120mm] \setupnote [footnote] [location={none}] \definenote [caption] [location={none}] \automigrateinserts \setuptexttexts [margin] [{{\vbox to\textheight% {\placenotes[caption]% \null\vfilll% \placenotes[footnote]}}}] [] \starttext \input tufte \footnote{\cite[bib::tufte]} \par \startembeddedxtable[distance=10mm] \startxrow \startxcell[width=55mm] \externalfigure[dummy][factor=fit] \caption[dummy]{caption} \stopxcell \startxcell[width=55mm] \externalfigure[dummy][factor=fit] % \caption[dummy]{caption} %without this note the \cite command compiles \stopxcell \stopxrow \stopembeddedxtable \input tufte \footnote{\cite[bib::tufte]} \par \placebtxrendering [bib] \stoptext --- ___ 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 ___
Re: [NTG-context] notes in the margin
Am 2017-04-09 um 21:46 schrieb Wolfgang Schuster <schuster.wolfg...@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 ___
Re: [NTG-context] Footnote in TABLE isn't rendered anywhere
On 08/22/2017 03:17 AM, Brian Ballsun-Stanton wrote: > Hi Pablo, > > It helped. (The numbers are eaten, but I think the example is important. Hi Brian, sorry, I simply forgot (and I didn’t see it in the sample because I didn’t wrap everything inside a TEXpage). \setupnotations[alternative=serried] is required here: \setupnotes[location=text] \setupnotations[alternative=serried] \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \placenotes[footnote] \stoptext BTW, it would be important to warn the reader that both \setupnotes and \setupnotations are required because of the wiki. I hope it is fine now, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] Footnote in TABLE isn't rendered anywhere
Hi Pablo, It helped. (The numbers are eaten, but I think the example is important. Thanks for your help. -Brian On 22 August 2017 at 03:21, Pablo Rodriguez <oi...@gmx.es> wrote: > On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote: > > Hey folks, trying to be a good citizen, I added (And quoted) this > > message onto the wiki: > > > > http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs > > > > I tried for a bit to try to get the example to render, but no footnotes > > would show at all. Anyone have thoughts as to how to get wiki rendering > > to work here? And are there any other examples from this thread that > > should be added? > > Hi Brian, > > footnotes in the wiki are tricky: > > \starttext > \startbuffer > \bTABLE[split=repeat,align=normal] >\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR >\bTR\bTD Foo\note[x] \eTD\eTR > \eTABLE > \flushnotes > \stopbuffer > \getbuffer > \startTEXpage[offset=1em] > \getbuffer > \stopTEXpage > \stoptext > > The second page is similar to the problem with the wiki. > > This might be a workaround for the wiki (if I’m not wrong): > > \setupnotes[location=text] > \starttext > \bTABLE[split=repeat,align=normal] >\bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR >\bTR\bTD Foo\note[x] \eTD\eTR > \eTABLE > \flushnotes > \placenotes[footnote] > \stoptext > > Just in cases it helps, > > Pablo > -- > http://www.ousia.tk > > ___ > 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 > > ___ > ___ 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 ___
Re: [NTG-context] Footnote in TABLE isn't rendered anywhere
On 08/21/2017 03:15 AM, Brian Ballsun-Stanton wrote: > Hey folks, trying to be a good citizen, I added (And quoted) this > message onto the wiki: > > http://wiki.contextgarden.net/TABLE#Footnotes_in_TABLEs > > I tried for a bit to try to get the example to render, but no footnotes > would show at all. Anyone have thoughts as to how to get wiki rendering > to work here? And are there any other examples from this thread that > should be added? Hi Brian, footnotes in the wiki are tricky: \starttext \startbuffer \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \stopbuffer \getbuffer \startTEXpage[offset=1em] \getbuffer \stopTEXpage \stoptext The second page is similar to the problem with the wiki. This might be a workaround for the wiki (if I’m not wrong): \setupnotes[location=text] \starttext \bTABLE[split=repeat,align=normal] \bTR\bTD Something\postponenotes\footnote[x]{bla bla}\eTD\eTR \bTR\bTD Foo\note[x] \eTD\eTR \eTABLE \flushnotes \placenotes[footnote] \stoptext Just in cases it helps, Pablo -- http://www.ousia.tk ___ 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 ___
Re: [NTG-context] whitespace between endnotes
Exactly what I was looking for. Thanks! Hans van der Meer > On 14 Jul 2017, at 17:07, Pablo Rodriguez <oi...@gmx.es> wrote: > > On 07/14/2017 02:44 PM, Meer, Hans van der wrote: >> \placenotes[endnote] puts a list of endnotes spaced out with the >> setting of \setupwhitespace. Is there a means to keep >> \setupwhitespace undisturbed but changing this for the endnotes >> alone? Some parameter to be specified in \setupnote, \setupnotation >> or one of its friends perhaps? > Hans, > > I guess this is what you need: > >\startsetups[setups:endnotes] >\setupwhitespace[5em] >\stopsetups > >\setupnote >[endnote] >[before=\directsetup{setups:endnotes}] > > \starttext >\dorecurse{5}{\input zapf\endnote{\input knuth}} >\placenotes[endnote] >\stoptext > > I hope it helps, > > Pablo > -- > http://www.ousia.tk > ___ > 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 > ___ ___ 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 ___
Re: [NTG-context] whitespace between endnotes
On 07/14/2017 02:44 PM, Meer, Hans van der wrote: > \placenotes[endnote] puts a list of endnotes spaced out with the > setting of \setupwhitespace. Is there a means to keep > \setupwhitespace undisturbed but changing this for the endnotes > alone? Some parameter to be specified in \setupnote, \setupnotation > or one of its friends perhaps? Hans, I guess this is what you need: \startsetups[setups:endnotes] \setupwhitespace[5em] \stopsetups \setupnote [endnote] [before=\directsetup{setups:endnotes}] \starttext \dorecurse{5}{\input zapf\endnote{\input knuth}} \placenotes[endnote] \stoptext I hope it helps, Pablo -- http://www.ousia.tk ___ 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 ___
[NTG-context] whitespace between endnotes
\placenotes[endnote] puts a list of endnotes spaced out with the setting of \setupwhitespace. Is there a means to keep \setupwhitespace undisturbed but changing this for the endnotes alone? Some parameter to be specified in \setupnote, \setupnotation or one of its friends perhaps? Hans van der Meer ___ 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 ___
Re: [NTG-context] Index with distinguishable entries -- again
On 2017-04-27 07:14, Florian Grammel wrote: Thank you very much for your example -- it really helps a lot! That’s one smart trick for the endnotes. It will do fine for my current project, but obviously it will not work for footnotes directly on the pages. I had somehow hoped that there would be something like „if within some environment/command" to the processors. With this also the formating of the items within the captions could be done automatically. A real problem though is that adding \setupregister [index] [compress=yes] will wrongly compress e.g. "aaa 1, 2, 1n“ to "aaa 1–1n“. I’ll need to use compressed ranges and would be happy with a result, where formatted numbers a subsumed under the regular ones. You don’t happen to know how to make this work correctly, do you? I do not think that it is wrong in the way it reports compressed page numbers. The aaa entry is indeed on those consecutive pages. Add some blank pages (or pages without the indexed items) and look at the result. You can use the same method I showed with indexed terms in footnotes. Just create another processor and use it in within the indexing command in the footnote, or create a new command to wrap it, as \defineprocessor[Footnote][style=bold,color=blue] \define[1]\fnindex{\index[Footnote->]{#1}} of course, if you use the optional indexunder component already ( \index[as if it were spelled this way]{displayed as} ) then you will have to create a more complex command. (I leave that as an exercise for those who need it and do not want to fall back to the \index command.) So: \defineprocessor [backpart] [style=slanted,right=n] \defineprocessor [Figure] [style=\tf,color=red,left=f] \defineprocessor [Footnote] [style=bold,color=blue] \define[1]\fnindex{\index[Footnote->]{#1}} \define[1]\fiindex{\index[Figure->]{#1}} \defineconversionset [backpart:pagenumber][][backpart->o] \setupuserpagenumber[way=byblock] \setuppagenumbering [location=none] \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}] \setupregister[index][compress=yes] %\setupnote[footnote][location=none] \useMPlibrary[dum] \starttext \startbodymatter \startchapter[title=A chapter] \index{aaa}This is in the main body.\footnote{\fnindex{bbb}This is a footnote.} \stopchapter \startchapter[title={Another chapter}] \index{aaa}This is in the main body.\footnote{\fnindex{bbb}This is a footnote.} \startplacefigure[location=default, title={Body illustration\fiindex{ccc}}] \externalfigure[dummy][] \stopplacefigure \stopchapter \startchapter[title=A third chapter] This is in the main body.\footnote{This is a footnote.} \stopchapter \startchapter[title=A fourth chapter] This is in the main body. \stopchapter \startchapter[title={Another chapter}] \index{aaa}This is in the main body.\footnote{\fnindex{bbb}This is a footnote.} \startplacefigure[location=default, title={Body illustration\fiindex{ccc}}] \externalfigure[dummy][] \stopplacefigure \stopchapter \stopbodymatter \page \startbackmatter \startchapter[title=An appendix] This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is a footnote.} \startplacefigure[location=default, title={Appendix illustration\index[Figure->]{ddd}}] \externalfigure[dummy][] \stopplacefigure \stopchapter \startchapter[title=Notes] \placenotes[footnote] \stopchapter \startchapter[title=Index] \placeregister[index] \stopchapter \stopbackmatter \stoptext Of course, there may be conflicts. You may index the same term twice on one page, once in the text, once in a footnote. Context will not choke, and there is a fifty-fifty chance it will default to what you want. -- Rik ___ 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 ___
Re: [NTG-context] Index with distinguishable entries -- again
Thank you very much for your example -- it really helps a lot! That’s one smart trick for the endnotes. It will do fine for my current project, but obviously it will not work for footnotes directly on the pages. I had somehow hoped that there would be something like „if within some environment/command" to the processors. With this also the formating of the items within the captions could be done automatically. A real problem though is that adding \setupregister [index] [compress=yes] will wrongly compress e.g. "aaa 1, 2, 1n“ to "aaa 1–1n“. I’ll need to use compressed ranges and would be happy with a result, where formatted numbers a subsumed under the regular ones. You don’t happen to know how to make this work correctly, do you? Best, Florian. > > On 2017-04-26 09:18, Florian Grammel wrote: >> Back in april 2012 Robert Blackstone asked some questions about indexing >> http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html >> <http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html> >> i.a.: >> >>> For a book in the area of musicology I would like to make one register with >>> entries of different kinds, distinguishable by their appearance in the >>> register (or index or whatever). >>> The index entries will mostly be authors, including composers, musical >>> terms >>> and musical compositions. The titles of the compositions and the foreign >>> words >>> are set in italic characters throughout in the text of the book. >>> What I would like is to be able to distinguish all entries according to >>> whether >>> they are treated in the text, are shown in a musical example, or are >>> mentioned >>> only in a foot- or endnote. >>> >>> In many books page numbers indicating illustrations are set in italics. >>> Pagenumbers indicating foot- or endnotes often have a suffix "n". >>> >> His other question were resolved, but this one remained unanswered, apart >> from that two other users also wanted to do exactly the same thing. >> >> I would like to do something very similar and was wondering: Has this been >> addressed/solved since then? >> >> > Perhaps the following can help. It has separate user page numbers for the > main matter and back matter, with a suffixed ‘n’ for the items indexed from > backmatter pages, but no suffix on the backmatter page numbers. The index > entries for figures are rubricated and have a leading ‘f’. > > \defineprocessor [backpart] [style=slanted,right=n] > \defineprocessor [Figure] [style=\tf,color=red,left=f] > \defineconversionset [backpart:pagenumber][][backpart->o] > \setupuserpagenumber[way=byblock] > \setuppagenumbering [location=none] > \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}] > \setupnote[footnote][location=none] > \useMPlibrary[dum] > \starttext > \startbodymatter > \startchapter[title=A chapter] > \index{aaa}This is in the main body.\footnote{\index{bbb}This is a > footnote.} > \stopchapter > \startchapter[title={Another chapter}] > \index{aaa}This is in the main body.\footnote{\index{bbb}This is a > footnote.} > \startplacefigure[location=default, > title={Body illustration\index[Figure->]{ccc}}] > \externalfigure[dummy][] > \stopplacefigure > \stopchapter > \stopbodymatter > \page > \startbackmatter > \startchapter[title=An appendix] > This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is a > footnote.} > \startplacefigure[location=default, > title={Appendix illustration\index[Figure->]{ddd}}] > \externalfigure[dummy][] > \stopplacefigure > \stopchapter > \startchapter[title=Notes] > \placenotes[footnote] > \stopchapter > \startchapter[title=Index] > \placeregister[index] > \stopchapter > \stopbackmatter > \stoptext > > -- > Rik ___ 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 ___
Re: [NTG-context] Index with distinguishable entries -- again
On 2017-04-26 09:18, Florian Grammel wrote: Back in april 2012 Robert Blackstone asked some questions about indexing http://www.mail-archive.com/ntg-context@ntg.nl/msg63134.html i.a.: For a book in the area of musicology I would like to make one register with entries of different kinds, distinguishable by their appearance in the register (or index or whatever). The index entries will mostly be authors, including composers, musical terms and musical compositions. The titles of the compositions and the foreign words are set in italic characters throughout in the text of the book. What I would like is to be able to distinguish all entries according to whether they are treated in the text, are shown in a musical example, or are mentioned only in a foot- or endnote. In many books page numbers indicating illustrations are set in italics. Pagenumbers indicating foot- or endnotes often have a suffix "n". His other question were resolved, but this one remained unanswered, apart from that two other users also wanted to do exactly the same thing. I would like to do something very similar and was wondering: Has this been addressed/solved since then? Perhaps the following can help. It has separate user page numbers for the main matter and back matter, with a suffixed ‘n’ for the items indexed from backmatter pages, but no suffix on the backmatter page numbers. The index entries for figures are rubricated and have a leading ‘f’. \defineprocessor [backpart] [style=slanted,right=n] \defineprocessor [Figure] [style=\tf,color=red,left=f] \defineconversionset [backpart:pagenumber][][backpart->o] \setupuserpagenumber[way=byblock] \setuppagenumbering [location=none] \setupheadertexts[{\convertedcounter[userpage][numberconversionset=number]}] \setupnote[footnote][location=none] \useMPlibrary[dum] \starttext \startbodymatter \startchapter[title=A chapter] \index{aaa}This is in the main body.\footnote{\index{bbb}This is a footnote.} \stopchapter \startchapter[title={Another chapter}] \index{aaa}This is in the main body.\footnote{\index{bbb}This is a footnote.} \startplacefigure[location=default, title={Body illustration\index[Figure->]{ccc}}] \externalfigure[dummy][] \stopplacefigure \stopchapter \stopbodymatter \page \startbackmatter \startchapter[title=An appendix] This is in the backmatter.\index{aaa}\footnote{\index{bbb}This is a footnote.} \startplacefigure[location=default, title={Appendix illustration\index[Figure->]{ddd}}] \externalfigure[dummy][] \stopplacefigure \stopchapter \startchapter[title=Notes] \placenotes[footnote] \stopchapter \startchapter[title=Index] \placeregister[index] \stopchapter \stopbackmatter \stoptext -- Rik ___ 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 ___
Re: [NTG-context] notes in the margin
Henning Hraban Ramm <mailto:te...@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 ___ 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 ___
Re: [NTG-context] notes in the margin
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 <te...@fiee.net>: > 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 ___ 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 ___
[NTG-context] notes in the margin
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 ___ 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 ___
Re: [NTG-context] Notes after a chapter
Hallo Wolfgang That works. Thanks a lot. Uschi Von: ntg-context [mailto:ntg-context-boun...@ntg.nl] Im Auftrag von Wolfgang Schuster Gesendet: Donnerstag, 21. Juli 2016 22:55 An: mailing list for ConTeXt users Betreff: Re: [NTG-context] Notes after a chapter <mailto:ursula.herm...@univie.ac.at> Ursula Hermann 21. Juli 2016 um 16:04 Hello list, I would like to have notes after a section. Now I would like to know: in the command\setupfootnote there is a key called :after, but the key had a red color, i dont know if i could need it, and i dont know what command i should give in the key after: maybe after=section? Sorry for the long text below. I dont know what you mean with the red color but you can place notes at the end of a chapter with the following setup. \setupnote[footnote][location=none] \setuphead[chapter][aftersection={\placenotes[footnote]}] \starttext \startchapter[title={Ward}] \dorecurse{12}{\input ward \footnote{Footnote #1}\par} \stopchapter \stoptext My second question is: When there are notes, which are after all sections, what there is the right command: I have : \setuppapersize[A4] \definelinenote[note] \setuplinenote[note] \setupdescription[note] \starttext \startchapter \mainlanguage[de] DIE INFORMELLE WIRTSCHAFT Zwischen neuen Entwicklungen und alten Rahmenbedingungen Das Wachstum einer informellen Wirtschaft in den Großstädten hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die heute zwischen der Wirtschaft einerseits und den gesetzlichen Regelungen andererseits besteht. \note {1}Den Begriff »informelle Wirtschaft« verwende ich für jene einkommenbringenden Tätigkeiten, die außerhalb der gesetzlichen Regelungen stattfinden, aber dennoch denen, die sich daran halten, ähneln; so werden Umfang und Wesen der informellen Wirtschaft dennoch durch diese Regelungen, denen sie sich eigentlich entziehen, bestimmt. Aus diesem Grund kann man das Wesen der informellen Wirtschaft, der Schattenwirtschaft, nur dann erfassen, wenn man sie in Beziehung zur offiziellen Wirtschaft setzt, also zu den geregelten einkommenbringenden Tätigkeiten. \stoptext 1. \stopchapter is missing in your example 2. The \note command already exists and you redefine it in your example which is a bad idea. 3. Where do you have a note *after* a section in your example? Wolfgang ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Notes after a chapter
Ursula Hermann <mailto:ursula.herm...@univie.ac.at> 21. Juli 2016 um 16:04 Hello list, I would like to have notes after a section. Now I would like to know: in the command\setupfootnote there is a key called :after, but the key had a red color, i don't know if i could need it, and i don't know what command i should give in the key after: maybe after=section? Sorry for the long text below. I don't know what you mean with the red colorbut you can place notes at the end of a chapter with the following setup. \setupnote[footnote][location=none] \setuphead[chapter][aftersection={\placenotes[footnote]}] \starttext \startchapter[title={Ward}] \dorecurse{12}{\input ward \footnote{Footnote #1}\par} \stopchapter \stoptext My second question is: When there are notes, which are after all sections, what there is the right command: I have : \setuppapersize[A4] \definelinenote[note] \setuplinenote[note] \setupdescription[note] \starttext \startchapter \mainlanguage[de] DIE INFORMELLE WIRTSCHAFT Zwischen neuen Entwicklungen und alten Rahmenbedingungen Das Wachstum einer informellen Wirtschaft in den Großstädten hochentwickelter Länder wirft neue Fragen über die Beziehung auf, die heute zwischen der Wirtschaft einerseits und den gesetzlichen Regelungen andererseits besteht. \note {1}Den Begriff »informelle Wirtschaft« verwende ich für jene einkommenbringenden Tätigkeiten, die außerhalb der gesetzlichen Regelungen stattfinden, aber dennoch denen, die sich daran halten, ähneln; so werden Umfang und Wesen der informellen Wirtschaft dennoch durch diese Regelungen, denen sie sich eigentlich entziehen, bestimmt. Aus diesem Grund kann man das Wesen der informellen Wirtschaft, der Schattenwirtschaft, nur dann erfassen, wenn man sie in Beziehung zur offiziellen Wirtschaft setzt, also zu den geregelten einkommenbringenden Tätigkeiten. \stoptext 1. \stopchapter is missing in your example 2. The \note command already exists and you redefine it in your example which is a bad idea. 3. Where do you have a note *after* a section in your example? Wolfgang ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___