[NTG-context] Footnotes on the bottom of the column's current page, instead of the columns' end
> > > Hello, I'm trying to achieve a look similar to a magazine our religious organization frequently discusses, but unfortunately can't find the correct settings to do so. Whenever I call a custom note on a column, instead of the note showing on the bottom of the page, it shows at the end of the column. (like an endnote, except, it shows as a small footnote at the beginning) How should I make it shown on the bottom of the page of the current footnote instead of the end of the column command? My MWE: \definenote[question][textcommand=\gobbleoneargument, numbercommand=\gobbleoneargument] \setupnotation[question][counter=] \startdocument \startcolumns[n=2, balanced] \dorecurse{19}{ \question{1. This is a question for discussion. I wished it was on the current page instead of the end} \input{knuth} } \stopcolumns \stopdocument mwe.pdf Description: Adobe PDF document ___ 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 ___
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] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note
Dear Hans, Thank you for your reply. Here is the missing MWE. (I will also try to attach it.) % mwe % document is an English translation of Arabic text; all annotations are in English. % % concerning footnotes to Arabic text: % numbers in body should use Mashriki numbers (e.g. ٠١٢٣٤٥٦٧٨٩), and appear between parenthesis % numbers in footer should use Arabic numbers (e.g. 0123456789), and without parenthesis % % MWE uses dejavu for English and Amiri for and Arabic. Amiri is availble at https://www.amirifont.org/ \mainlanguage[en-gb] \setupdirections[bidi=global,method=one] \starttypescriptcollection [amiri] \starttypescript [serif] [amiri] \definefontsynonym [Serif] [file:Amiri-Regular.ttf] [features=arabic] \stoptypescript \starttypescript [amiri] \definetypeface [amiri] [rm] [serif] [amiri] [default] [fallbacks=latin-fallback] \stoptypescript \stoptypescriptcollection \define\setarabic{ \setupalign[r2l] \righttoleft \switchtobodyfont[amiri] } \define\setlatin{ \setupalign[l2r] \lefttoright \switchtobodyfont[dejavu] } \setupnotes[footnote][] \setupnotes[arfootnote][] \definenote[arfootnote][footnote] \setupnotation [arfootnote] [before=\setlatin, alternative=text, ] \setupnote [arfootnote] [headstyle={\switchtobodyfont[amiri]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{arabicdecimals}{#1}})}}} % unexpected results % \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{abjadnumerals}{#1}})}}} % \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{default}{#1}})}}} % % `\detokenize' variations, for comparison... % % \protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{arabicdecimals}{#1}})}}} % \protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{abjadnumerals}{#1}})}}} % \protected\def\footnotenotenumbercommand#1{{\high{(\detokenize{\convertnumber{default}{#1}})}}} \setupbodyfont[dejavu,11pt] \starttext \setarabic مرحبًا\arfootnote{Annotation text.} % expected footnote `(١)`, got `1arabic` مرحبًا\arfootnote{Annotation text.} % expected footnote `(٢)`, got `2arabic` \stoptext %%% end of mwe Thanks, Musa ___ 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] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note
On 1/15/2022 3:03 AM, musa furber via ntg-context wrote: This week I updated ConTeXt minimals. Before then, I used the following code so that footnotes to Arabic passages would have parenthesis around them and use the digits used in Arabic texts in the Middle East (e.g. ٠١٢٣٤٥٦٧٨٩). \setupnote [arfootnote] [ headstyle={\switchtobodyfont[kitab]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣)`. Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling \convertnumber{arabicdecimals}{1232} I'm still relatively new to ConTeXt, so I'm unsure if what used really is correct, or if it was wrong and I now need to find the right way to do it. Any help would be greatly appreciated. Next time give a complete MWE with useable fonts \setupnotation [arfootnote] [numberconversion=arabicdecimals] as in: \setupbodyfont[dejavu] \definenote [arfootnote] \setupnotation [arfootnote] [numberconversion=arabicdecimals] \setupnote [arfootnote] [headstyle={\switchtobodyfont[kitab]}, textcommand=\footnotenotenumbercommand, alternative=text] \protected\def\footnotenotenumbercommand#1{\high{(#1)}} \starttext x\arfootnote{x} \stoptext The #1 passed can be anything that renderes the note so the converters sees rubish. You can see details with you add \detokenize{#1} in your macro. 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] Critical Editions?
The starting point of the discussion on reledmac and other related points, has begun on May 13, 2016. See here about the way to get a ConTeXt equivalent to a LaTeX encoding : https://www.mail-archive.com/ntg-context@ntg.nl/msg81793.html <https://www.mail-archive.com/ntg-context@ntg.nl/msg81793.html> (I gave the LaTeX code). For the question asked by Jürgen, as far as I know, you have to deal (and play) with setupnote, definenote AND setupline commands. Discussion is here : https://www.mail-archive.com/search?l=ntg-context@ntg.nl=subject:%22Re%5C%3A+%5C%5BNTG%5C-context%5C%5D+TwoColumns+in+two+different+languages%2C+with+alternate+text+on+even+and+odd+page.%22=newest=1 > Le 5 janv. 2022 à 18:28, Jean-Pierre Delange via ntg-context > a écrit : > > Hi Luigi & Pablo, > I’ve thinking that Google translate may be provide some help. I’ll try it ! > >> Le 5 janv. 2022 à 17:13, luigi scarso via ntg-context > <mailto:ntg-context@ntg.nl>> a écrit : >> >> >> >> On Wed, Jan 5, 2022 at 12:54 PM Pablo Rodriguez via ntg-context >> mailto:ntg-context@ntg.nl>> wrote: >> On 1/5/22 9:43 AM, luigi scarso via ntg-context wrote: >> > [...] >> > quite old (2014), but perhaps still interesting: >> > embedding of a tei-xml into a tagged pdf >> > https://www.guitex.org/home/images/ArsTeXnica/AT018/teitagged.pdf >> > <https://www.guitex.org/home/images/ArsTeXnica/AT018/teitagged.pdf> >> >> Luigi, >> >> if you allow me a comment (or even a suggestion), an English version of >> that article updated to LMTX wouuld be of huge help to the rest of us. >> >> yeah, but unfortunately I have no time now. >> It's for luatex with poppler -- now we have pplib -- >> and not lmtx, so not so useful I guess. >> But you can try with >> $>pdftotext -layout teitagged.pdf >> and translate teitagged.txt with google. >> >> -- >> luigi >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> <http://www.ntg.nl/mailman/listinfo/ntg-context> >> webpage : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / >> http://context.aanhet.net <http://context.aanhet.net/> >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> <https://bitbucket.org/phg/context-mirror/commits/> >> wiki : http://contextgarden.net <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 > ___ ___ 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] Critical Editions?
On 12/21/21 10:50 AM, hanneder--- via ntg-context wrote: > > Details: > I was able to find the article "Ediciones críticas con ConTeXt" (is > this in use?) Hi Jürgen, if you mean http://www.ediciones-criticas.tk/pdf/criticas-context.pdf, this is outdated. I hope to update it in a not so distant future... . > I also found out that for simple editions context already works. For > critical editions in my field we need both footnote references based > on linenumbers (for prose), but also references to verse number, > which can be entered manually. As far as I can remember linenotes are footnotes with references to line numbers. I don’t think it makes a difference if the line number is set automatically by ConTeXt or the user specifies a given value. > So far, so good. Any hints to a more sophisticated solution are highly > welcome. (I am a simple TeX user) I’m only a ConTeXt newbie (who has been using it for about a decade ). There might be other solutions, but I’m afraid I don’t know which is exactly the problem you are facing. Sorry, but the text structure isn’t clear to me (this is independent from the fact that I don’t understand a word from the language you may be using). BTW, I could only make your sample work in the following form: \starttext \setupnotation[linenote] [alternative=serried,width=broad,distance=.5em,display=no] \setupnote[linenote][way=bypage,paragraph=yes,rule=off] \definenote [variant] \setupnotation[variant][number=no] \setupnote[variant][way=bypage,paragraph=yes,rule=off] \definelines[slokaed][][indenting={yes, small, even}, before={\startnarrower\startlinenumbering}, after={\stoplinenumbering\stopnarrower}] \definelines[slokaedplain][][indenting={yes, small, even}, before=\startnarrower, after=\stopnarrower] \startslokaed mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam \linenote{tam ] tat} upāsyam upāsmahe \stopslokaed \startslokaedplain mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe (2) \stopslokaedplain \stoptext Just in case it might 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] \thanks inside author in section
Wolfgang, Thank you! Removing the auxiliary file solved the problem. lør. 1. jan. 2022 kl. 09:32 skrev Wolfgang Schuster < wolfgang.schuster.li...@gmail.com>: > Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10: > > I've tried to implement a journal-like footnote with the authors' > > affiliation for each section/chapter, by adapting things from the wiki > > (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and > > https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that > > bugs me is that any note name I choose other than "thanks" does not > > work, and I have no clue why. Am I missing something, or is there a more > > elegant way to implement this? > > > > As an aside, I'd rather have the footnotes below the "thanks" notes. Is > > there any option that does this? > > > > [...] > > Do you have a example where anything besides \thanks fails. I changed > \thanks to another commands in the example below and there was no > problem to do so. The only thing you *have* to do when you change the > command is to remove the auxiliary file (context --purge) because the > old (non existing) command is otherwise used in the next run which > results then in an error message. > > \setuplist >[section] >[textcommand=\SectionTocEntry, > after=\blank] > > \define[1]\SectionTocEntry >{\doifsomething{\rawstructurelistuservariable{author}} > {{\it\structurelistuservariable{author}} --\crlf}% > #1% > \doifsomething{\rawstructurelistuservariable{subtitle}} > {\crlf\structurelistuservariable{subtitle}}} > > \setuphead >[section] >[ after=\directsetup{section}, > align=center, > number=no, > style=bold] > > \startsetups [section] > \blank > \midaligned{\it\structureuservariable{author}} > \blank > \stopsetups > > \setuphead >[subject] >[align=flushleft, > style=\bfb] > > \definenote[someothername] > > \setupnote >[someothername] >[rule=off] > > \setupnotation >[someothername] >[numberconversion=set 2] > > \setupnotation >[alternative=left, >hang=fit, > indenting={yes,small}, > indentnext=yes] > > \setupinteraction >[state=start, > color=, > contrastcolor=] > > \starttext > > \subject{Grande lista de autores} > > \placecontent[alternative=c] > > \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to > say}] > This is a section. > \stopsection > > \startsection[title={Segunda seção}][author={Fulano de > Tal},subtitle={Uma segunda seção de teste}] > This is a section. > \stopsection > > \startsection[title={Terceira seção}][author={Alberto de > Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}] > This is a section. > \stopsection > > \startsection[title={Três autores}][author={Sicrano de > Tal\someothername{Universidade de Tangerinas} e Alberto > Steinenberg\someothername{Universidade de Nilfgaard}}, > subtitle={Uma seção de teste com dois autores e comentário}] > This is a section.\footnote{Só de teste.} > \stopsection > > \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] \thanks inside author in section
Youssef Cherem via ntg-context schrieb am 01.01.2022 um 13:10: I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki (https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that bugs me is that any note name I choose other than "thanks" does not work, and I have no clue why. Am I missing something, or is there a more elegant way to implement this? As an aside, I'd rather have the footnotes below the "thanks" notes. Is there any option that does this? [...] Do you have a example where anything besides \thanks fails. I changed \thanks to another commands in the example below and there was no problem to do so. The only thing you *have* to do when you change the command is to remove the auxiliary file (context --purge) because the old (non existing) command is otherwise used in the next run which results then in an error message. \setuplist [section] [textcommand=\SectionTocEntry, after=\blank] \define[1]\SectionTocEntry {\doifsomething{\rawstructurelistuservariable{author}} {{\it\structurelistuservariable{author}} --\crlf}% #1% \doifsomething{\rawstructurelistuservariable{subtitle}} {\crlf\structurelistuservariable{subtitle}}} \setuphead [section] [ after=\directsetup{section}, align=center, number=no, style=bold] \startsetups [section] \blank \midaligned{\it\structureuservariable{author}} \blank \stopsetups \setuphead [subject] [align=flushleft, style=\bfb] \definenote[someothername] \setupnote [someothername] [rule=off] \setupnotation [someothername] [numberconversion=set 2] \setupnotation [alternative=left, hang=fit, indenting={yes,small}, indentnext=yes] \setupinteraction [state=start, color=, contrastcolor=] \starttext \subject{Grande lista de autores} \placecontent[alternative=c] \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to say}] This is a section. \stopsection \startsection[title={Segunda seção}][author={Fulano de Tal},subtitle={Uma segunda seção de teste}] This is a section. \stopsection \startsection[title={Terceira seção}][author={Alberto de Paiva\someothername{asdf}},subtitle={Uma terceira seção de teste}] This is a section. \stopsection \startsection[title={Três autores}][author={Sicrano de Tal\someothername{Universidade de Tangerinas} e Alberto Steinenberg\someothername{Universidade de Nilfgaard}}, subtitle={Uma seção de teste com dois autores e comentário}] This is a section.\footnote{Só de teste.} \stopsection \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 ___
[NTG-context] \thanks inside author in section
I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki ( https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC and https://wiki.contextgarden.net/LaTeX_Thanks). However, one thing that bugs me is that any note name I choose other than "thanks" does not work, and I have no clue why. Am I missing something, or is there a more elegant way to implement this? As an aside, I'd rather have the footnotes below the "thanks" notes. Is there any option that does this? \setuplist[section][ textcommand=\SectionTocEntry, after=\blank, ] \define[1]\SectionTocEntry{% \doifnot{\rawstructurelistuservariable{author}}{} {\start \it \structurelistuservariable{author}\stop\space-- \crlf}% #1% title \doifnot{\rawstructurelistuservariable{subtitle}}{} {\crlf\structurelistuservariable{subtitle}}} \setuphead[section][ after=\setup{section}, align=center, number=no, style=\bold ] \startsetups section \blank \midaligned{\it \structureuservariable{author}} \blank \stopsetups %\foonote{\structureuservariable{affiliation}} %only "thanks" seems to work. \definenote[thanks]%[numberconversion=set 2] \setupnote[thanks][rule=off] \setupnotation[thanks][numberconversion=set 2] % or set 1 %\setupnote[footnote][location=bottom] % does not work %% all notes, footnotes etc. \setupnotation[ alternative={left,bottom}, hang=fit, % if commented, hanging is larger indenting={yes,small},indentnext=yes, % please, indent everything, should be default ] \setupinteraction[state=start,color=black,contrastcolor=black] \setuphead[subject][align=flushleft,style=\bfb] \starttext \subject{Grande lista de autores} \placecontent[alternative=c] \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to say}] This is a section. \stopsection \startsection[title={Segunda seção}][author={Fulano de Tal},subtitle={Uma segunda seção de teste}] This is a section. \stopsection \startsection[title={Terceira seção}][author={Alberto de Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}] This is a section. \stopsection \startsection[title={Três autores}][author={Sicrano de Tal\thanks{Universidade de Tangerinas} e Alberto Steinenberg\thanks{Universidade de Nilfgaard}}, subtitle={Uma seção de teste com dois autores e comentário}] This is a section.\footnote{Só de teste.} \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 ___
[NTG-context] local notes, "serried" (paragraph) or column style.
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). Any help would be much appreciated. \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 \starttext \startlocalnotes Author 1\afiliação{asdf} Author 2\afiliação{asdf} \dorecurse{5}{\afiliação{Nota explicativa.}} \placelocalnotes[afiliação] \stoplocalnotes \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] \thanks inside author in section
I've tried to implement a journal-like footnote with the authors' affiliation for each section/chapter, by adapting things from the wiki here <https://wiki.contextgarden.net/Table_of_Contents#Author_in_ToC> and here <https://wiki.contextgarden.net/LaTeX_Thanks>. However, one thing that bugs me is that any note name I choose other than "thanks" does not work, and I have no clue why. Am I missing something, or is there a more elegant way to implement this? As an aside, I'd rather have the footnotes below the "thanks" notes. Is there any option that does this? \setuplist[section][ textcommand=\SectionTocEntry, after=\blank, ] \define[1]\SectionTocEntry{% \doifnot{\rawstructurelistuservariable{author}}{} {\start \it \structurelistuservariable{author}\stop\space-- \crlf}% #1% title \doifnot{\rawstructurelistuservariable{subtitle}}{} {\crlf\structurelistuservariable{subtitle}}} \setuphead[section][ after=\setup{section}, align=center, number=no, style=\bold ] \startsetups section \blank \midaligned{\it \structureuservariable{author}} \blank\stopsetups %\foonote{\structureuservariable{affiliation}} \definenote[thanks]%[numberconversion=set 2]\setupnote[thanks][rule=off]\setupnotation[thanks][numberconversion=set 2] % or set 1 %\setupnote[footnote][location=bottom] % does not work %% all notes, footnotes etc.\setupnotation[ alternative={left,bottom}, hang=fit, % if commented, hanging is larger indenting={yes,small},indentnext=yes, % please, indent everything, should be default ] \setupinteraction[state=start,color=black,contrastcolor=black] \setuphead[subject][align=flushleft,style=\bfb] \starttext \subject{Grande lista de autores} \placecontent[alternative=c] \startsection[title={Whatever}][author={A. Uthor},subtitle={I’d like to say}] This is a section.\stopsection \startsection[title={Segunda seção}][author={Fulano de Tal},subtitle={Uma segunda seção de teste}] This is a section.\stopsection \startsection[title={Terceira seção}][author={Alberto de Paiva\thanks{asdf}},subtitle={Uma terceira seção de teste}] This is a section.\stopsection \startsection[title={Três autores}][author={Sicrano de Tal\thanks{Universidade de Tangerinas} e Alberto Steinenberg\thanks{Universidade de Nilfgaard}}, subtitle={Uma seção de teste com dois autores e comentário}] This is a section.\footnote{Só de teste.}\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] Critical Editions?
Thanks for bringing this topic up again. I'd also be highly interested in this! Denis > -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von hanneder-- > - via ntg-context > Gesendet: Dienstag, 21. Dezember 2021 10:51 > An: ntg-context@ntg.nl > Cc: hanne...@staff.uni-marburg.de > Betreff: [NTG-context] Critical Editions? > > > I just started switching after long years of typesetting with La-/Omega- > /pdfTeX to Context and was exploring the capabilities of the program for > typesetting critical editions. So I was wondering whether there is any > updated information on how to produce critical editions? > > > Details: > I was able to find the article "Ediciones críticas con ConTeXt" (is this in > use?) > as well as a plan of and a remark concerning critTeXt: "As I learned from a > thread on NTG-context from early 2010 we shouldn't expect a dedicated > package, but that ConTeXt will eventually incorporate the needed > functionalities." What is the status of that? > > > I also found out that for simple editions context already works. For critical > editions in my field we need both footnote references based on > linenumbers (for prose), but also references to verse number, which can be > entered manually. The main problem for me was to find the command > \linenote :) > > % Setup of \linenote > \setupnotation[linenote] > [alternative=serried,width=broad,distance=.5em,display=no] > \setupnote[linenote][way=bypage,paragraph=yes,rule=off] > > % \variant as a footnote without reference number \definenote [variant] > [footnote] \setupnotation[variant][number=no] > \setupnote[variant][way=bypage,paragraph=yes,rule=off] > > % Two "environments" for Sanskrit verses, one with, one without > linenumbers. > > % SANSKRIT EDITION linenumbers > \definelines[slokaed][][indenting={yes, small, even}, > > before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopn > arrower] > > % SANSKRIT EDITION plain (referring to verses) > \definelines[slokaedplain][][indenting={yes, small, even}, >before=\startnarrower,after=\stopnarrower] > > With this the code of the edition can be pleasently minimalistic: > > \startslokaed > mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam >yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam > \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed > > > \startslokaedplain > mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c > dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe > (2) \stopslokaedplain > > So far, so good. Any hints to a more sophisticated solution are highly > welcome. (I am a simple TeX > user) > Thanks > Jürgen > > > > --- > > Prof. Dr. Juergen Hanneder > Philipps-Universitaet Marburg > FG Indologie u. Tibetologie > Deutschhausstr.12 > 35032 Marburg > Germany > Tel. 0049-6421-28-24930 > hanne...@staff.uni-marburg.de > > __ > _ > 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] Critical Editions?
I just started switching after long years of typesetting with La-/Omega-/pdfTeX to Context and was exploring the capabilities of the program for typesetting critical editions. So I was wondering whether there is any updated information on how to produce critical editions? Details: I was able to find the article "Ediciones críticas con ConTeXt" (is this in use?) as well as a plan of and a remark concerning critTeXt: "As I learned from a thread on NTG-context from early 2010 we shouldn't expect a dedicated package, but that ConTeXt will eventually incorporate the needed functionalities." What is the status of that? I also found out that for simple editions context already works. For critical editions in my field we need both footnote references based on linenumbers (for prose), but also references to verse number, which can be entered manually. The main problem for me was to find the command \linenote :) % Setup of \linenote \setupnotation[linenote] [alternative=serried,width=broad,distance=.5em,display=no] \setupnote[linenote][way=bypage,paragraph=yes,rule=off] % \variant as a footnote without reference number \definenote [variant] [footnote] \setupnotation[variant][number=no] \setupnote[variant][way=bypage,paragraph=yes,rule=off] % Two "environments" for Sanskrit verses, one with, one without linenumbers. % SANSKRIT EDITION linenumbers \definelines[slokaed][][indenting={yes, small, even}, before=\startnarrower\startlinenumbering,after=\stoplinenumbering\stopnarrower] % SANSKRIT EDITION plain (referring to verses) \definelines[slokaedplain][][indenting={yes, small, even}, before=\startnarrower,after=\stopnarrower] With this the code of the edition can be pleasently minimalistic: \startslokaed mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\linenote{dṛṣṭvā ] dṛṣṭva G\lohi{pc}{1}} vinivartante tam \linenote{tam ] tat} upāsyam upāsmahe} \stopslokaed \startslokaedplain mano buddhir ahaṃ prāṇās tanmātrendriyajīvanam yaṃ dṛṣṭvā\variant{2c dṛṣṭvā ] dṛṣṭva} vinivartante tam \variant{2d tam ] tat} upāsyam upāsmahe (2) \stopslokaedplain So far, so good. Any hints to a more sophisticated solution are highly welcome. (I am a simple TeX user) Thanks Jürgen --- Prof. Dr. Juergen Hanneder Philipps-Universitaet Marburg FG Indologie u. Tibetologie Deutschhausstr.12 35032 Marburg Germany Tel. 0049-6421-28-24930 hanne...@staff.uni-marburg.de ___ 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] LTR footnotes from RTL paragraph
> -Ursprüngliche Nachricht- > Von: ntg-context Im Auftrag von Pablo > Rodriguez via ntg-context > Gesendet: Donnerstag, 16. Dezember 2021 18:07 > An: Denis Maier via ntg-context > Cc: Pablo Rodriguez > Betreff: Re: [NTG-context] LTR footnotes from RTL paragraph > > On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote: > > Ok, this works: > > > > \setupnote[footnote][align=l2r] > > > > Does that have any drawbacks? > > Hi Denis, > > I don’t think it may have (other than forgetting other options, such as hz or > hanging). Ah, I alway forget that. By the way, is there a way to append to setting instead of overriding it? > > > Is it possible to change the text direction for single notes? > > It doesn’t seem an option for \startfootnote. Yep, unlike other \startstops \startfootnote does not inherit key-values settings from the corresponding \setupX (I mean, it does of course inherit the settings, but you can't set them directly on \startfootnote.) Why is that? Is it due to the fact that note setups take place in two places? (\setupnote vs \setupnotation)? > How about defining a new command? Thanks for pointing me in that direction. That looks good. > > \definedelimitedtext[rtlblockquote][before={\righttoleft}] > \definenote[otnote][footnote] > \setupnote[otnote][align=l2r] > \starttext > \input zapf > \startblockquote > \input zapf\footnote{this starts on the left.} > \stopblockquote > \startrtlblockquote > \input zapf\footnote{this should start on the left.} > \input zapf\otnote{this should start on the left.} > \stoprtlblockquote > \input zapf > \stoptext > > Just in case it might 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 ___
Re: [NTG-context] LTR footnotes from RTL paragraph
On 12/16/21 12:34 PM, Denis Maier via ntg-context wrote: > Ok, this works: > > \setupnote[footnote][align=l2r] > > Does that have any drawbacks? Hi Denis, I don’t think it may have (other than forgetting other options, such as hz or hanging). > Is it possible to change the text direction for single notes? It doesn’t seem an option for \startfootnote. How about defining a new command? \definedelimitedtext[rtlblockquote][before={\righttoleft}] \definenote[otnote][footnote] \setupnote[otnote][align=l2r] \starttext \input zapf \startblockquote \input zapf\footnote{this starts on the left.} \stopblockquote \startrtlblockquote \input zapf\footnote{this should start on the left.} \input zapf\otnote{this should start on the left.} \stoprtlblockquote \input zapf \stoptext Just in case it might 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] Local custom notes affect regular footnotes
If I use local notes, regular footnotes disappear in the following example: \definenote[testnote] \starttext \startlocalnotes[testnote] Test\testnote{Custom note} Other text inbetween with normal footnotes.\footnote{Footnote} Test\testnote{Another custom note} Other text afterwards with normal footnotes.\footnote{Other Footnote} :::\placelocalnotes[testnote] ::: ---\placelocalnotes[footnote] --- % just to be sure, no output %\stoplocalnotes % a NOP? \stoptext (LMTX or MkIV 2020.09.20 23:02) The use case is a commented edition of historical letters. Footnotes of letter contents should be local and numbered per letter, while general footnotes should behave as usual and are numbered by text. (This setup works otherwise, no need to explain.) Actually, the “normal text” part appears only after a letter, but before \placelocalnotes. The logical structure would be: \startlocalnotes[testnote] \startnarrower \input lorem\testnote{bla bla} \input lorem\testnote{bla bla} \stopnarrower \stoplocalnotes % forgets local notes \input knuth\footnote{Donald dixit} \placelocalnotes[testnote] % nothing In the MWE, the footnotes just disappear. In the actual project the problem is different, but I couldn’t reproduce it in a MWE. I guess the interference of different note types is the cause of both problems. I tried using the same custom note for the last comment as a workaround, but it gets placed twice: once at the bottom of the current page (i.e. like a normal footnote, out of order) and once after the other custom notes. (The letter is in a delimitedtext environment.) 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 7/31/20 10:32 AM, Hans Hagen wrote: > Hi, > > Sorry for the long mail ... > > One of the changes in lmtx is that we freeze the properties that > determine the paragraph shape as well as breaking into lines in such a > way that we have predictable behaviour. As a side effect it can be that > existing code (lmtx only) will behave differently (will be fixed when we > notice) but also that some low level user tweaking can not work, i.e. > they are just ignored, but only when they happen mid paragraph which > actually is always debatable anyway. Hi Hans, many thanks for your explanation. I wonder whether the new improvements could prevent body text running into the footnotes (as some of us have already reported). > [...] > No one ever requested it so see it an a quick and dirty example but > don't hesitate to ask for more anyway (we like an occasional challenge). If you are open for suggestions, I would ask for a footnotes that behave as a page index, such as in: \setuplanguage[en][patterns={en,agr}] \setuppapersize[A6] \setupbodyfont[dejavu] \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][number=no, style={\tfx\setupinterlinespace[line=2.5ex]}] \starttext Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα, -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb}, ἔπειτα τί ἐστιν ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation} καὶ κατάφασις\dict{κατάφασις, εως, ἡ: affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις, -εως, ἡ: statement} καὶ λόγος. \stoptext What I need there is that these notes are alphabetically sorted, such as in a standard register. As I proposed that (years ago), you told me it was too complex. I wonder whether this would be easier with the current developments. Many thanks for your improvements to ConTeXt, 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] mix two-column and single-column footnotes
Hi, Is it possible to mix two-column and single-column footnotes? Here's my use case. I have two types of footnotes: 1) short one- or two-word terms 2) long descriptions and notes On some pages there are a lot of "short" footnotes which take up a lot of space at the bottom of the page. I'd like to typeset them in 2 or 3 columns. But then the "long" footnotes had better stay in one column. See below for desired input and output. Thanks, ~MHB Sample input: \definenote[shortfootnote][...,n=3] \definenote[longfootnote][...,n=1] \definenotation[shortfootnote][...] \definenotation[longfootnote][...] \starttext \shortfootnote{short}\shortfootnote{short}\shortfootnote{short} \longfootnote{This is a long footnote which spans the entire width of the page.} \shortfootnote{short}\shortfootnote{short} \longfootnote{Another "long" footnote.} \longfootnote{Note that footnotes 5, 6 used only two out of three available columns.} \stoptext Desired output: __ 1 short 2 short 3 short 4 This is a long footnote which spans the entire width of the page. 5 short 6 short 7 Another "long" footnote. 8 Note that footnotes 5, 6 used only two out of three available columns. ___ 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
> Am 17.11.2018 um 15:43 schrieb Pablo Rodriguez : > > 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] With this information I found: https://wiki.contextgarden.net/Unexpected_behavior#Footnotes:_The_Difference_between_.5Csetupnotation_and_.5Csetupnote The headcolor in \setupnotation is actually the color of the marker in the note while the maker in the text is defined with \setupnote. I guess I have to request edit rights for the garden. DONE > >> 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. The page mentioned above offers the following solution: \definenote[commentnote][endnote] \setupnotation[commentnote] [color=red,left={(},right={)}] \setupnote [commentnote] [textcommand=\mycommentcommand] \define[1]\mycommentcommand{\high{\tfxx(#1)}} Thanks for pointing me in the right direction. Axel ___ 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] 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] definenote and localfootnotes
Hi Stanislav, footnotes are only one kind of notes. Not all notes are footnotes. If you ask for footnotes, you will only get footnotes Thanks Pablo, I had a feeling that was the case, but all the examples I ran across seemed to have the two conflated. Your example is perfect! BTW, I wonder whether it makes sense to have both kind of notes to share numbering. I see now that notes don't have to inherit from footnotes. Thanks again, Stan ___ 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] definenote and localfootnotes
On 11/03/2017 08:39 PM, Stanislav Sokolenko wrote: > Hi, > > I'm not sure if this is a bug or feature, but I noticed that custom > footnotes defined through \definenote do not appear when using > \placelocalfootnotes as per the following example: Hi Stanislav, footnotes are only one kind of notes. Not all notes are footnotes. If you ask for footnotes, you will only get footnotes. > Both the local and global footnotes appear as 1, 2 (so noteone is > numbered locally). Is there an alternative command to > \placelocalfootnotes that I can use to make noteone appear in the local > context? \setuppapersize [A5] \definenote [noteone] [footnote] % there is no different number \setupnotation [noteone] [style=bold, headstyle=bold] \setupnote [noteone] [textstyle=bold] \starttext \startlocalnotes[footnote] \startlocalnotes[noteone] Testing footnote \footnote{this is a footnote} Testing noteone \noteone{this is noteone} \placelocalnotes[footnote] \placelocalnotes[noteone] \stoplocalnotes \stoplocalnotes Testing footnote \footnote{this is a footnote} Testing noteone \noteone{this is noteone} \stoptext BTW, I wonder whether it makes sense to have both kind of notes to share numbering. Just in case it may help, 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] definenote and localfootnotes
Hi, I'm not sure if this is a bug or feature, but I noticed that custom footnotes defined through \definenote do not appear when using \placelocalfootnotes as per the following example: % \setuppapersize [A5] \definenote [noteone] [footnote] \setupnotation [noteone] [style=bold, headstyle=bold] \setupnote [noteone] [textstyle=bold] \starttext \startlocalfootnotes Testing footnote \footnote{this is a footnote} Testing noteone \noteone{this is noteone} \placelocalfootnotes \stoplocalfootnotes Testing footnote \footnote{this is a footnote} Testing noteone \noteone{this is noteone} \stoptext % Both the local and global footnotes appear as 1, 2 (so noteone is numbered locally). Is there an alternative command to \placelocalfootnotes that I can use to make noteone appear in the local context? Thanks, Stan ___ 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 in paragraph form + annotating them in margin
Dear list, in my document I have several kinds of footnotes including footnotes in paragraph form. In some cases I need to annotate these. The annotation should to appear in the outer margin of the page and in line with the annotated footnote. I tried a few different approaches, but none yields exactly the result I want to obtain: 1. I defined a seperate footnote type for the annotations according to the wiki, but the annotations are centered in the margin and not in line with the footnote(s) they refer to. 2. As suggested on the mailinglist some time ago, I tested \myCustomFootnote{Text.\margintext[scope=local]{Annotation.}} but since I have \definenote[myCustomNote][paragraph=yes], no text in the margin is displayed unless I delete this parameter (which unfortunately is no option for my document layout). Do you have any ideas how to solve this? Thanks in advance and best regards, Michelle ___ 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] a special kind of notes in each page
Hans, I have a document http://tex.ousia.tk/hippocratic-oath.pdf (source as attachment to the PDF document itself). The special kind of notes are the first group in two columns. I need that their space and location in page are calculated by the notes mechanism. And also that the notes mechanism selects the range of notes that belong to the page. I don’t need any reference, not to note number or to line number. Since it is a vocabulary list, what I need is a minimal register with "indicator=no, before=, after=". So it would be possible to have well-balanced columns and words alphabetically sorted, which is essential in a vocabulary. I guess that \definenote[NAME][alternative=register] and \setupregister[NAME][indicator=no, before=, after=] could be a good way to invoke these page-related vocabularies. Would it be possible to have such a feature? This would the way to have page vocabularies. Many thanks for your help, 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] TwoColumns in two different languages, with alternate text on even and odd page.
Hi Hans, Thank you very much Hans for your help. I'll soon try your code and I'll report sooner as possible. A sample of some work I've referred to, using two columns, a rich criticus apparatus in greek, latin and georgian, is : "Les Hymnes de la Résurrection. I. Hymnographie liturgique géorgienne, introduction, traduction et annotation des textes du Sinaï 18 (Sources liturgiques, 3), Paris, 2000" (see here : https://rbecs.org/2015/05/06/hr/#more-3249) Unfortunately, the book is not under my hand. JP - Mail original - De: "Hans Hagen" <pra...@wxs.nl> À: ntg-context@ntg.nl Envoyé: Mardi 22 Novembre 2016 20:14:45 Objet: Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page. On 11/18/2016 1:16 PM, Jean-Pierre Delange wrote: > I make a statement on a part of the Arthur's reply (" there are no real-life > examples of documents that use it") : in fact, there are rare examples of > such printing materials : scholar editing and printing of Ancient texts are > mainly (if I am right) such printing material (including Ancient Armenian or > Georgian liturgic hymns). > > An example of such a book : on the even page you read a 'twocolumns' text > (say : Greek text with its Latin translation) with there own page setting, > including Stephanus apparatus in the footer, and several levels of footnotes > within the same footer. Commentaries (in English, French, German, usw) and > the like are on the odd page. The average (or regular) situation seems to be > less complicated : Greek or Latin text on the even page and translation on > the odd page. With Pablo Rodriguez help (actually, this is mainly Pablo's > work) I have tried to figure such a goal. But before setting up the even/odd > page, there is an issue which one has to fix: the text on two columns is well > fitted on the first page, but not on the following pages. How to fix this > issue with Greek text on the left column and Latin Text on the right one ? > See the mismatch between texts on the second page in the sample below . > Thank you very much for your remarks and advices. Below is an example that should work with the latest beta. I introduced two new keys 'spacebefore' and 'spaceinbetween' for notes. These are needed when we have multiple note categories. In mixed columns this is supported. In single column mode only with luatex experimental (so patience is needed, but no one asked for this feature anyway). \setupnotes[spacebefore=4*line] \setupnotes[spaceinbetween=line] \starttext \setupnote [footnote][before=,after=] \definenote[toofnote][before=,after=] \dorecurse{100}{ test #1.a\footnote{note #1} test #1.b\toofnote{eton #1} \par} \page \setuplanguage[agr][patterns={agr,la}] \mainlanguage[agr] % Greek as main language \definefallbackfamily [mainface] [serif] [GFS Didot] [preset=range:greek] \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \setupbodyfont[mainface] % ,7.8pt] \setuplayout[header=2cm,footer=2cm] \setupnotes[compress=yes] \setupnotations[alternative=serried] \definenote[aNote] \definenote[bNote] \definenote[cNote] \definenote[dNote] \setupnote[aNote][before=,after=] \setupnote[bNote][before=,after=] \setupnote[cNote][before=,after=] \setupnote[dNote][before=,after=] \def\ANote#1#2{#1\aNote{#1] #2}} \def\BNote#1#2{#1\bNote{#1] #2}} \def\CNote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setupnotes[spacebefore=4*line] \setupnotes[spaceinbetween=] % \setuplinenumbering[step=5, location=inright, distance=1ex,align=center, width=0.5em] \definemargindata[Stephanus][location=inner, distance=2ex,style=\em] % \setupbodyfont[mainface,7.8pt] \start\fr % some text in French Définir un `apparat critique' et le mettre en page avec un traitement de texte courant est un véritable casse-tête. LaTeX et ConTeXt offrent des outils d'automatisation encore assez mal connus dans la communauté des éditeurs, notamment dans l'édition savante, pour la collation et la comparaison de textes médiévaux. \stop \blank \start\en % some text in English {\em It is not very easy to define a `criticus apparatus' with some current tools (like Microsoft Office Word or LibreOffice). Maybe \ConTeXt offers some ways that seem easier, in order to improve clear and precise printing.} \stop \dorecurse{4}{ \startmixedcolumns[n=2, balance=yes] \Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον• τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λ
Re: [NTG-context] TwoColumns in two different languages, with alternate text on even and odd page.
On 11/18/2016 1:16 PM, Jean-Pierre Delange wrote: I make a statement on a part of the Arthur's reply (" there are no real-life examples of documents that use it") : in fact, there are rare examples of such printing materials : scholar editing and printing of Ancient texts are mainly (if I am right) such printing material (including Ancient Armenian or Georgian liturgic hymns). An example of such a book : on the even page you read a 'twocolumns' text (say : Greek text with its Latin translation) with there own page setting, including Stephanus apparatus in the footer, and several levels of footnotes within the same footer. Commentaries (in English, French, German, usw) and the like are on the odd page. The average (or regular) situation seems to be less complicated : Greek or Latin text on the even page and translation on the odd page. With Pablo Rodriguez help (actually, this is mainly Pablo's work) I have tried to figure such a goal. But before setting up the even/odd page, there is an issue which one has to fix: the text on two columns is well fitted on the first page, but not on the following pages. How to fix this issue with Greek text on the left column and Latin Text on the right one ? See the mismatch between texts on the second page in the sample below . Thank you very much for your remarks and advices. Below is an example that should work with the latest beta. I introduced two new keys 'spacebefore' and 'spaceinbetween' for notes. These are needed when we have multiple note categories. In mixed columns this is supported. In single column mode only with luatex experimental (so patience is needed, but no one asked for this feature anyway). \setupnotes[spacebefore=4*line] \setupnotes[spaceinbetween=line] \starttext \setupnote [footnote][before=,after=] \definenote[toofnote][before=,after=] \dorecurse{100}{ test #1.a\footnote{note #1} test #1.b\toofnote{eton #1} \par} \page \setuplanguage[agr][patterns={agr,la}] \mainlanguage[agr] % Greek as main language \definefallbackfamily [mainface] [serif] [GFS Didot] [preset=range:greek] \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \setupbodyfont[mainface] % ,7.8pt] \setuplayout[header=2cm,footer=2cm] \setupnotes[compress=yes] \setupnotations[alternative=serried] \definenote[aNote] \definenote[bNote] \definenote[cNote] \definenote[dNote] \setupnote[aNote][before=,after=] \setupnote[bNote][before=,after=] \setupnote[cNote][before=,after=] \setupnote[dNote][before=,after=] \def\ANote#1#2{#1\aNote{#1] #2}} \def\BNote#1#2{#1\bNote{#1] #2}} \def\CNote#1#2{#1\cNote{#1] #2}} \def\DNote#1#2{#1\dNote{#1] #2}} \setupalign[hz, hanging] \setuptolerance[strict] \setupnotes[spacebefore=4*line] \setupnotes[spaceinbetween=] % \setuplinenumbering[step=5, location=inright, distance=1ex,align=center, width=0.5em] \definemargindata[Stephanus][location=inner, distance=2ex,style=\em] % \setupbodyfont[mainface,7.8pt] \start\fr % some text in French Définir un `apparat critique' et le mettre en page avec un traitement de texte courant est un véritable casse-tête. LaTeX et ConTeXt offrent des outils d'automatisation encore assez mal connus dans la communauté des éditeurs, notamment dans l'édition savante, pour la collation et la comparaison de textes médiévaux. \stop \blank \start\en % some text in English {\em It is not very easy to define a `criticus apparatus' with some current tools (like Microsoft Office Word or LibreOffice). Maybe \ConTeXt offers some ways that seem easier, in order to improve clear and precise printing.} \stop \dorecurse{4}{ \startmixedcolumns[n=2, balance=yes] \Stephanus{1a} Ὁμώνυμα λέγεται ὧν ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λόγος τῆς οὐσίας ἕτερος, οἷον ζῷον ὅ τε ἄνθρωπος καὶ τὸ γεγραμμένον• τούτων γὰρ ὄνομα μόνον κοινόν, ὁ δὲ κατὰ τοὔνομα λόγος τῆς οὐσίας ἕτερος• ἐὰν γὰρ ἀποδιδῷ τις τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, ἴδιον ἑκατέρου λόγον ἀποδώσει. συνώνυμα δὲ λέγεται ὧν τό τε ὄνομα κοινὸν καὶ ὁ κατὰ τοὔνομα λόγος τῆς οὐσίας ὁ αὐτός, οἷον ζῷον ὅ τε ἄνθρωπος καὶ ὁ βοῦς• τούτων γὰρ ἑκάτερον κοινῷ ὀνόματι προσαγορεύεται ζῷον, καὶ ὁ λόγος δὲ τῆς οὐσίας ὁ αὐτός• ἐὰν γὰρ ἀποδιδῷ τις τὸν ἑκατέρου λόγον τί ἐστιν αὐτῶν ἑκατέρῳ τὸ ζῴῳ εἶναι, τὸν αὐτὸν λόγον ἀποδώσει. \column \startlinenumbering[continue] Aequivoca dicuntur quorum \CNote{nomen}{first note} solum commune est, secundum nomen vero \ANote{substantiae}{second note} \ANote{ratio}{second note} diversa, ut animal \DNote{homo}{third note} et quod pingitur. Horum enim solum nomen commune est, secundum
Re: [NTG-context] Problem with \inouter and text justification
Dear list, The problem with margin notes and main text justification being wrong in some lines when using stack=continue is still present with latest beta mtx-context | current version: 2016.01.18 22:21 This can be verified with the test stacking-002.tex in test suite or with MWE I posted earlier. Just wanted to know if fixing this problem was planned for next “stable” version or if that feature is somewhat deprecated ? This problem does not occur with current “stable” ConTeXt version. Many thanks for any hint, Joseph From: josephcan...@gmail.com Sent: Tuesday, December 15, 2015 9:58 PM To: ntg-context@ntg.nl Is this problem a hard limitation from (lua)TeX ? or simply some bug in ConTeXt ? The problem with main text justification is not present with “stable” version of ConTeXt, so my guess is that’s a regression in beta. I initially used stack=yes but despite the name in some cases the notes fail to stack and overlapped. Thanks a lot, Joseph From: josephcan...@gmail.com Sent: Friday, December 11, 2015 9:03 PM To: ntg-context@ntg.nl Thanks Wolfgang for alternative proposal. I had a try with your sample and it seems the margin notes stay stacked but not nearby the line I insert them in the text, which is what I am looking for. Is there a way to achieve this using notes ? Otherwise I assume that there is a bug with \ininner \inouter then ? Also I noticed there is a \ininnermargin, but I was curious to know what’s the difference with \ininner. Thanks a lot Joseph From: Wolfgang Schuster Sent: Friday, December 11, 2015 1:13 PM To: ntg-context@ntg.nl josephcan...@gmail.com 10. Dezember 2015 um 11:04 Dear all, Another problem appears if using both \inouter and \ininner to have notes in both sides. Apparently when doing so the stack=continue does not work any longer. I see margin notes overlapping and not being stacked. If the “left note” is removed the right side notes are stacked properly again. Is there any solution to avoid the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed \stopsetups \setuptexttexts[margin][][\directsetup{marginnotes}] \definenote [marginnote][criterium=page] \setupnotation[marginnote][number=no] \starttext \dorecurse{100}{\input ward\expanded{\marginnote{This is note \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote rules for bidi document
On 1/9/2016 3:15 AM, Mohammad Hossein Bateni wrote: I updated the documentation on context garden. Hans, I hadn't noticed that you updated the macros on the same day as your last message! I had another question regarding the definition of notes/footnotes. It is not that important but I am curious: is it possible to define two notes that are essentially the same except for some of their stylistic definitions? Let me give an example. some text \Afootnote{A} more text \Bfootnote{B} some more text \Afootnote{C} And I want the result at the bottom of the page to read: 1 A 2 B 3 C However, I'd like to have the power to control how the numbers are typeset in the text and at the bottom, as well as determine the fonts, etc. of \Afootnote and \Bfootnote separately. \definenote[handnote][footnote] \setupnotation[handnote][style=bold] \definenote[earnote] [footnote] \setupnotation[earnote] [style=bolditalic,color=green] \definenote[nosenote][earnote] \setupnotation[nosenote][color=red] \starttext a foot note \footnote{A} a hand note \handnote{B} an ear note \earnote{C} a nose note \nosenote{D} \stoptext On Mon, Jan 4, 2016 at 11:21 AM, Mohammad Hossein Bateni <bat...@gmail.com <mailto:bat...@gmail.com>> wrote: That said, I'm not asking for this to be the default. I only want to know how it can be achieved. The code will be put in my style file or module. i'll add rule=paragraph (i.e. listen to the first following paragraph if possible) ... you need to document it as for sure i forget about it Awesome! Thanks, Hans! Once this becomes available and I test it, I'll update the documentation for Footnotes on Context Garden. Is it possible to determine the direction of the first line of footnote block while typesetting the footnote rule? I imagine it should not be difficult in Lua. Note that this may be the leftover from a long footnote that started on some previous page. —MHB ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote rules for bidi document
Awesome, thanks! On Sat, Jan 9, 2016 at 8:07 AM, Hans Hagen <pra...@wxs.nl> wrote: > On 1/9/2016 3:15 AM, Mohammad Hossein Bateni wrote: > >> I updated the documentation on context garden. Hans, I hadn't noticed >> that you updated the macros on the same day as your last message! >> >> I had another question regarding the definition of notes/footnotes. It >> is not that important but I am curious: is it possible to define two >> notes that are essentially the same except for some of their stylistic >> definitions? Let me give an example. >> >> some text \Afootnote{A} >> more text \Bfootnote{B} >> some more text \Afootnote{C} >> >> And I want the result at the bottom of the page to read: >> >> 1 A >> 2 B >> 3 C >> >> However, I'd like to have the power to control how the numbers are >> typeset in the text and at the bottom, as well as determine the fonts, >> etc. of \Afootnote and \Bfootnote separately. >> > > \definenote[handnote][footnote] \setupnotation[handnote][style=bold] > \definenote[earnote] [footnote] \setupnotation[earnote] > [style=bolditalic,color=green] > \definenote[nosenote][earnote] \setupnotation[nosenote][color=red] > > \starttext > > a foot note \footnote{A} > a hand note \handnote{B} > an ear note \earnote{C} > a nose note \nosenote{D} > > \stoptext > > > On Mon, Jan 4, 2016 at 11:21 AM, Mohammad Hossein Bateni >> <bat...@gmail.com <mailto:bat...@gmail.com>> wrote: >> >> That said, I'm not asking for this to be the default. I only >> want to >> know how it can be achieved. The code will be put in my >> style file or >> module. >> >> >> i'll add rule=paragraph (i.e. listen to the first following >> paragraph if possible) ... you need to document it as for sure i >> forget about it >> >> >> Awesome! Thanks, Hans! Once this becomes available and I test it, >> I'll update the documentation for Footnotes on Context Garden. >> >> Is it possible to determine the direction of the first line >> of footnote >> block while typesetting the footnote rule? I imagine it >> should not be >> difficult in Lua. Note that this may be the leftover from a >> long >> footnote that started on some previous page. >> >> >> —MHB >> >> >> >> >> >> ___ >> 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 >> >> ___ >> >> > > -- > > - > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.com | 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote rules for bidi document
On 1/4/2016 1:00 AM, Mohammad Hossein Bateni wrote: I see your point, Hans. For what it's worth, that's the default for mixed Persian/English documents unless one uses a system that cannot do it. For instance, FarsiTeX and XePersian provide that as default behavior. That said, I'm not asking for this to be the default. I only want to know how it can be achieved. The code will be put in my style file or module. i'll add rule=paragraph (i.e. listen to the first following paragraph if possible) ... you need to document it as for sure i forget about it Is it possible to determine the direction of the first line of footnote block while typesetting the footnote rule? I imagine it should not be difficult in Lua. Note that this may be the leftover from a long footnote that started on some previous page. --MHB On Jan 3, 2016 5:26 PM, "Hans Hagen" <pra...@wxs.nl <mailto:pra...@wxs.nl>> wrote: On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote: I just found out that \definenote[afootnote][rule={on,right}] instead of \definenote[afootnote][rule=right] works and places the footnote rule on the right-hand side. Still wondering about how to get automatic right/left rules. what do you mean with automatic ... the problem with mixed direction documents is that these things are part of the document design: dominant direction vs local direction and right now we don't have a clear model for that (if only because till now demands were always conflicting so what works as default for someone doesn't for someone else) (i can imagine some modules that set up things) On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni <bat...@gmail.com <mailto:bat...@gmail.com> <mailto:bat...@gmail.com <mailto:bat...@gmail.com>>> wrote: Hi, This has been previously discussed on the list but I didn't find a resolution to the issue. It might as well be my fault since I didn't go through the entire archive and I am needless to say new to CONTEXT. In a bidi text (Persian/English in my case), I would like the footnote rule to be placed on the right-hand side if and only if the first line of the footnote text is RTL. Is there a way this information can be obtained within a user-defined rulecommand. Ideally I'd like a rule=autodir attribute for notes in addition to the current left & right. Speaking of which, the left & right rules do not seem to work, or I misunderstand their point. When used (either left or right), the footnote rule disappears. \starttext \definenote[afootnote][paragraph=no,rule=right] \startalignment[r2l] righttoleft text\afootnote{\input ward } \input tufte \stopalignment \startalignment[l2r] lefttoright text\afootnote{\input ward} \input tufte \stopalignment \stoptext I see these defined in strc-not.mkvi <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> and still don't work with "% macros=mkvi" in the first line of the input file and when the file has extension mkvi. Is this some issue of mkiv vs mkvi? For what it's worth, I don't notice a reference to MKVI in the compilation output. Back to the main question, I can define my own rule as follows: \unprotect \def\myfootrule{% \ifvmode \dontleavehmode \hskip.8\hsize\blackrule [\c!color=\noteparameter\c!rulecolor, \c!width=.2\hsize, \c!height=\noteparameter\c!rulethickness, \c!depth=\zeropoint]% \endgraf \kern\strutdepth \fi} \protect Then I can use \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule] to get a footnote rule on the right-hand side. If I can figure out whether the first line of the footnote text is RTL or LTR, an if-statement can do the trick I want. Somewhat related to this, I was wondering whether it's possible to define two note commands, say \footnote and \afootnote, that use the same counter but are otherwise completely different. I use TeXLive 2015 on Mac OS X, CONTEXT 2015.05.18 12 <tel:2015.05.18%2012>:26, and
Re: [NTG-context] Footnote rules for bidi document
On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote: I just found out that \definenote[afootnote][rule={on,right}] instead of \definenote[afootnote][rule=right] works and places the footnote rule on the right-hand side. Still wondering about how to get automatic right/left rules. what do you mean with automatic ... the problem with mixed direction documents is that these things are part of the document design: dominant direction vs local direction and right now we don't have a clear model for that (if only because till now demands were always conflicting so what works as default for someone doesn't for someone else) (i can imagine some modules that set up things) On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni <bat...@gmail.com <mailto:bat...@gmail.com>> wrote: Hi, This has been previously discussed on the list but I didn't find a resolution to the issue. It might as well be my fault since I didn't go through the entire archive and I am needless to say new to CONTEXT. In a bidi text (Persian/English in my case), I would like the footnote rule to be placed on the right-hand side if and only if the first line of the footnote text is RTL. Is there a way this information can be obtained within a user-defined rulecommand. Ideally I'd like a rule=autodir attribute for notes in addition to the current left & right. Speaking of which, the left & right rules do not seem to work, or I misunderstand their point. When used (either left or right), the footnote rule disappears. \starttext \definenote[afootnote][paragraph=no,rule=right] \startalignment[r2l] righttoleft text\afootnote{\input ward } \input tufte \stopalignment \startalignment[l2r] lefttoright text\afootnote{\input ward} \input tufte \stopalignment \stoptext I see these defined in strc-not.mkvi <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> and still don't work with "% macros=mkvi" in the first line of the input file and when the file has extension mkvi. Is this some issue of mkiv vs mkvi? For what it's worth, I don't notice a reference to MKVI in the compilation output. Back to the main question, I can define my own rule as follows: \unprotect \def\myfootrule{% \ifvmode \dontleavehmode \hskip.8\hsize\blackrule [\c!color=\noteparameter\c!rulecolor, \c!width=.2\hsize, \c!height=\noteparameter\c!rulethickness, \c!depth=\zeropoint]% \endgraf \kern\strutdepth \fi} \protect Then I can use \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule] to get a footnote rule on the right-hand side. If I can figure out whether the first line of the footnote text is RTL or LTR, an if-statement can do the trick I want. Somewhat related to this, I was wondering whether it's possible to define two note commands, say \footnote and \afootnote, that use the same counter but are otherwise completely different. I use TeXLive 2015 on Mac OS X, CONTEXT 2015.05.18 12:26, and LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238). Thanks a lot! —MHB ___ 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 ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnote rules for bidi document
I see your point, Hans. For what it's worth, that's the default for mixed Persian/English documents unless one uses a system that cannot do it. For instance, FarsiTeX and XePersian provide that as default behavior. That said, I'm not asking for this to be the default. I only want to know how it can be achieved. The code will be put in my style file or module. Is it possible to determine the direction of the first line of footnote block while typesetting the footnote rule? I imagine it should not be difficult in Lua. Note that this may be the leftover from a long footnote that started on some previous page. --MHB On Jan 3, 2016 5:26 PM, "Hans Hagen" <pra...@wxs.nl> wrote: > On 1/3/2016 8:58 PM, Mohammad Hossein Bateni wrote: > >> I just found out that >>\definenote[afootnote][rule={on,right}] >> instead of >>\definenote[afootnote][rule=right] >> works and places the footnote rule on the right-hand side. >> >> Still wondering about how to get automatic right/left rules. >> > > what do you mean with automatic ... the problem with mixed direction > documents is that these things are part of the document design: dominant > direction vs local direction and right now we don't have a clear model for > that (if only because till now demands were always conflicting so what > works as default for someone doesn't for someone else) > > (i can imagine some modules that set up things) > > On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni >> <bat...@gmail.com <mailto:bat...@gmail.com>> wrote: >> >> Hi, >> >> This has been previously discussed on the list but I didn't find a >> resolution to the issue. It might as well be my fault since I >> didn't go through the entire archive and I am needless to say new to >> CONTEXT. >> >> In a bidi text (Persian/English in my case), I would like the >> footnote rule to be placed on the right-hand side if and only if the >> first line of the footnote text is RTL. Is there a way this >> information can be obtained within a user-defined rulecommand. >> Ideally I'd like a rule=autodir attribute for notes in addition to >> the current left & right. >> >> Speaking of which, the left & right rules do not seem to work, or I >> misunderstand their point. When used (either left or right), the >> footnote rule disappears. >> >> \starttext >> >> \definenote[afootnote][paragraph=no,rule=right] >> >> \startalignment[r2l] >> righttoleft text\afootnote{\input ward } >> \input tufte >> \stopalignment >> >> \startalignment[l2r] >> lefttoright text\afootnote{\input ward} >> \input tufte >> \stopalignment >> >> \stoptext >> >> I see these defined in strc-not.mkvi >> < >> http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> >> and >> still don't work with "% macros=mkvi" in the first line of the input >> file and when the file has extension mkvi. Is this some issue of >> mkiv vs mkvi? For what it's worth, I don't notice a reference to >> MKVI in the compilation output. >> >> Back to the main question, I can define my own rule as follows: >> >> \unprotect >> \def\myfootrule{% >> \ifvmode >>\dontleavehmode \hskip.8\hsize\blackrule >> [\c!color=\noteparameter\c!rulecolor, >> \c!width=.2\hsize, >> \c!height=\noteparameter\c!rulethickness, >> \c!depth=\zeropoint]% >>\endgraf >>\kern\strutdepth >> \fi} >> \protect >> >> Then I can use >> >> >> \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule] >> >> to get a footnote rule on the right-hand side. If I can figure out >> whether the first line of the footnote text is RTL or LTR, an >> if-statement can do the trick I want. >> >> Somewhat related to this, I was wondering whether it's possible to >> define two note commands, say \footnote and \afootnote, that use the >> same counter but are otherwise completely different. >> >> I use TeXLive 2015 on Mac OS X, >> CONTEXT 2015.05.18 12:26, and >> LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238). >> >> Thanks a lot! >> —MHB >> >> >> >> >> >> _
[NTG-context] Footnote rules for bidi document
Hi, This has been previously discussed on the list but I didn't find a resolution to the issue. It might as well be my fault since I didn't go through the entire archive and I am needless to say new to CONTEXT. In a bidi text (Persian/English in my case), I would like the footnote rule to be placed on the right-hand side if and only if the first line of the footnote text is RTL. Is there a way this information can be obtained within a user-defined rulecommand. Ideally I'd like a rule=autodir attribute for notes in addition to the current left & right. Speaking of which, the left & right rules do not seem to work, or I misunderstand their point. When used (either left or right), the footnote rule disappears. \starttext \definenote[afootnote][paragraph=no,rule=right] \startalignment[r2l] righttoleft text\afootnote{\input ward } \input tufte \stopalignment \startalignment[l2r] lefttoright text\afootnote{\input ward} \input tufte \stopalignment \stoptext I see these defined in strc-not.mkvi <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> and still don't work with "% macros=mkvi" in the first line of the input file and when the file has extension mkvi. Is this some issue of mkiv vs mkvi? For what it's worth, I don't notice a reference to MKVI in the compilation output. Back to the main question, I can define my own rule as follows: \unprotect \def\myfootrule{% \ifvmode \dontleavehmode \hskip.8\hsize\blackrule [\c!color=\noteparameter\c!rulecolor, \c!width=.2\hsize, \c!height=\noteparameter\c!rulethickness, \c!depth=\zeropoint]% \endgraf \kern\strutdepth \fi} \protect Then I can use \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule] to get a footnote rule on the right-hand side. If I can figure out whether the first line of the footnote text is RTL or LTR, an if-statement can do the trick I want. Somewhat related to this, I was wondering whether it's possible to define two note commands, say \footnote and \afootnote, that use the same counter but are otherwise completely different. I use TeXLive 2015 on Mac OS X, CONTEXT 2015.05.18 12:26, and LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238). Thanks a lot! —MHB ___ 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] Footnote rules for bidi document
I just found out that \definenote[afootnote][rule={on,right}] instead of \definenote[afootnote][rule=right] works and places the footnote rule on the right-hand side. Still wondering about how to get automatic right/left rules. On Sun, Jan 3, 2016 at 1:22 PM, Mohammad Hossein Bateni <bat...@gmail.com> wrote: > Hi, > > This has been previously discussed on the list but I didn't find a > resolution to the issue. It might as well be my fault since I didn't go > through the entire archive and I am needless to say new to CONTEXT. > > In a bidi text (Persian/English in my case), I would like the footnote > rule to be placed on the right-hand side if and only if the first line of > the footnote text is RTL. Is there a way this information can be obtained > within a user-defined rulecommand. Ideally I'd like a rule=autodir > attribute for notes in addition to the current left & right. > > Speaking of which, the left & right rules do not seem to work, or I > misunderstand their point. When used (either left or right), the footnote > rule disappears. > > \starttext > > \definenote[afootnote][paragraph=no,rule=right] > > \startalignment[r2l] > righttoleft text\afootnote{\input ward } > \input tufte > \stopalignment > > \startalignment[l2r] > lefttoright text\afootnote{\input ward} > \input tufte > \stopalignment > > \stoptext > > I see these defined in strc-not.mkvi > <http://repo.or.cz/w/context.git/blob/HEAD:/tex/context/base/strc-not.mkvi> > and > still don't work with "% macros=mkvi" in the first line of the input file > and when the file has extension mkvi. Is this some issue of mkiv vs mkvi? > For what it's worth, I don't notice a reference to MKVI in the compilation > output. > > Back to the main question, I can define my own rule as follows: > > \unprotect > \def\myfootrule{% > \ifvmode > \dontleavehmode \hskip.8\hsize\blackrule > [\c!color=\noteparameter\c!rulecolor, > \c!width=.2\hsize, > \c!height=\noteparameter\c!rulethickness, > \c!depth=\zeropoint]% > \endgraf > \kern\strutdepth > \fi} > \protect > > Then I can use > > \definenote[afootnote][paragraph=no,rule=command,rulecommand=\myfootrule] > > to get a footnote rule on the right-hand side. If I can figure out > whether the first line of the footnote text is RTL or LTR, an if-statement > can do the trick I want. > Somewhat related to this, I was wondering whether it's possible to define > two note commands, say \footnote and \afootnote, that use the same counter > but are otherwise completely different. > > I use TeXLive 2015 on Mac OS X, > CONTEXT 2015.05.18 12:26, and > LuaTeX, Version beta-0.80.0 (TeX Live 2015) (rev 5238). > > Thanks a lot! > —MHB > ___ 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] Problem with \inouter and text justification
Is this problem a hard limitation from (lua)TeX ? or simply some bug in ConTeXt ? The problem with main text justification is not present with “stable” version of ConTeXt, so my guess is that’s a regression in beta. I initially used stack=yes but despite the name in some cases the notes fail to stack and overlapped. Thanks a lot, Joseph From: josephcan...@gmail.com Sent: Friday, December 11, 2015 9:03 PM To: ntg-context@ntg.nl Thanks Wolfgang for alternative proposal. I had a try with your sample and it seems the margin notes stay stacked but not nearby the line I insert them in the text, which is what I am looking for. Is there a way to achieve this using notes ? Otherwise I assume that there is a bug with \ininner \inouter then ? Also I noticed there is a \ininnermargin, but I was curious to know what’s the difference with \ininner. Thanks a lot Joseph From: Wolfgang Schuster Sent: Friday, December 11, 2015 1:13 PM To: ntg-context@ntg.nl josephcan...@gmail.com 10. Dezember 2015 um 11:04 Dear all, Another problem appears if using both \inouter and \ininner to have notes in both sides. Apparently when doing so the stack=continue does not work any longer. I see margin notes overlapping and not being stacked. If the “left note” is removed the right side notes are stacked properly again. Is there any solution to avoid the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed \stopsetups \setuptexttexts[margin][][\directsetup{marginnotes}] \definenote [marginnote][criterium=page] \setupnotation[marginnote][number=no] \starttext \dorecurse{100}{\input ward\expanded{\marginnote{This is note \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \inouter and text justification
josephcan...@gmail.com <mailto:josephcan...@gmail.com> 10. Dezember 2015 um 11:04 Dear all, Another problem appears if using both \inouter and \ininner to have notes in both sides. Apparently when doing so the stack=continue does not work any longer. I see margin notes overlapping and not being stacked. If the “left note” is removed the right side notes are stacked properly again. Is there any solution to avoid the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed \stopsetups \setuptexttexts[margin][][\directsetup{marginnotes}] \definenote [marginnote][criterium=page] \setupnotation[marginnote][number=no] \starttext \dorecurse{100}{\input ward\expanded{\marginnote{This is note \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Problem with \inouter and text justification
Thanks Wolfgang for alternative proposal. I had a try with your sample and it seems the margin notes stay stacked but not nearby the line I insert them in the text, which is what I am looking for. Is there a way to achieve this using notes ? Otherwise I assume that there is a bug with \ininner \inouter then ? Also I noticed there is a \ininnermargin, but I was curious to know what’s the difference with \ininner. Thanks a lot Joseph From: Wolfgang Schuster Sent: Friday, December 11, 2015 1:13 PM To: ntg-context@ntg.nl josephcan...@gmail.com 10. Dezember 2015 um 11:04 Dear all, Another problem appears if using both \inouter and \ininner to have notes in both sides. Apparently when doing so the stack=continue does not work any longer. I see margin notes overlapping and not being stacked. If the “left note” is removed the right side notes are stacked properly again. Is there any solution to avoid the previous problem and this one please ? Are notes a alternative for you? \startsetups[marginnotes] \startframed[width=max,height=max,align=high,strut=no] \placenotes[marginnote][before=,after=,rule=off] \stopframed \stopsetups \setuptexttexts[margin][][\directsetup{marginnotes}] \definenote [marginnote][criterium=page] \setupnotation[marginnote][number=no] \starttext \dorecurse{100}{\input ward\expanded{\marginnote{This is note \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] r2l alignment and linenumbering conflict?
Hans, the beta is a solid step forward regarding bidi and Arabic support, and not just in footnotes. Thank you. However, it appears that my earlier declarations of ‘problem solved’ were a bit premature. Footnotes display everything correctly, but not linenumber notes. Using the three bidi methods of \setupdirections[bidi]: - ‘default’ orders the linenumber notes and their texts right-to-left, but any number therein is reversed (4102 instead of 2014). - ‘one’ does not render either the note block nor the individual notes' texts right-to-left. - ‘two’ is identical to method ‘one’. Compare these to regular footnotes, where everything is rendered correctly as of this new beta. Below is a minimal example with resulting PDF output. Talal = %%% LANGUAGE FONTS BIDI \mainlanguage[arabic] \definefontfamily [mainface] [rm] [ALM Fixed] [range=arabic,features=arabic] \setupbodyfont[mainface,11pt] \setupdirections[bidi=global,method=two,fences=no] \setupalign[r2l] %% HEADINGS \setuppagenumber[numberconversion=arabicdecimals] %%% NOTES \definenote[footnote][% Used for my comments in English. setups=note:footnote, align=righttoleft, rule={on,right}, paragraph=yes, ] \setupnotations[footnote][% align=righttoleft, alternative=serried, width=broad, distance=.5em, display=no, numberconversion=arabicdecimals, headstyle=\lefttoright, ] \setuplinenumbering[% style=\tfxx, referencing=on, step=1, location=outer, method=page, align=left, distance=1em, width=0.4em, conversion=arabicdecimals, ] \definelinenote[linenotedefault][% setups=note:linenotedefault, align=righttoleft, rule={on,right}, paragraph=yes, ] \setupnotations[linenotedefault][% align=righttoleft, alternative=serried, width=broad, distance=.5em, display=no, numberconversion=arabicdecimals, headstyle=\lefttoright, ] \definelinenote[linenoteone][% setups=note:linenoteone, align=righttoleft, rule={on,right}, paragraph=yes, ] \setupnotations[linenoteone][% align=righttoleft, alternative=serried, width=broad, distance=.5em, display=no, numberconversion=arabicdecimals, headstyle=\lefttoright, ] \definelinenote[linenotetwo][% setups=note:linenotetwo, align=righttoleft, rule={on,right}, paragraph=yes, ] \setupnotations[linenotetwo][% align=righttoleft, alternative=serried, width=broad, distance=.5em, display=no, numberconversion=arabicdecimals, headstyle=\lefttoright, ] \startsetups[note:footnote] \setupdirections[bidi=on,method=two,fences=no] \stopsetups \startsetups[note:linenotedefault] \setupdirections[bidi=on,method=default] \stopsetups \startsetups[note:linenoteone] \setupdirections[bidi=on,method=one] \stopsetups \startsetups[note:linenotetwo] \setupdirections[bidi=on,method=two] \stopsetups %%% DOCUMENT \starttext \showframe \startlinenumbering \input ward\footnote{هذه تعليقة أولى كتبت عام ٢٠١٤.} \input ward\footnote{هذه تعليقة ثانية (٢٠١٤).} \input ward\linenotedefault{هذه تعليقة أولى كتبت عام ٢٠١٤.} \input ward\linenotedefault{هذه تعليقة ثانية (٢٠١٤).} \input ward\linenoteone{هذه تعليقة أولى كتبت عام ٢٠١٤.} \input ward\linenoteone{هذه تعليقة ثانية (٢٠١٤).} \input ward\linenotetwo{هذه تعليقة أولى كتبت عام ٢٠١٤.} \input ward\linenotetwo{هذه تعليقة ثانية (٢٠١٤).} \stoplinenumbering \stoptext \stoptext = num-ar.pdf Description: Adobe PDF document On 3 Aug 2015, at 17:52, tala...@fastmail.fm wrote: Well, I don’t know if ‘solves’ the underlying questions that Hans wrote about, but after some more fiddling, I now have all the numbers appearing as I expect them to. It required specifying `method=two` as part of `\setupdirections[bidi=global,method=two]`. That, along with the `numbercommand=\righttoleft` in \setuphead[section], means that it now looks as I expect it to. Unless someone identifies a problem with any of this, I think I’ll write up a summary on the Wiki. Without trolling through the mailing list for anything on RTL and then experimenting with the various combinations, it would be hard for one to divine how to get this to work. For posterity’s sake, here is a full MWE example: == %%% LANGUAGE AND FONTS \mainlanguage[arabic] \definefontfamily [mainface] [rm] [ALM Fixed][range=arabic,features=arabic] \setupbodyfont[mainface,12pt] \setupdirections[bidi=global,method=two] \setupalign[r2l] %\righttoleft %% HEADINGS \setuphead[section][ conversion=myconversion, numbercommand=\righttoleft
Re: [NTG-context] footnotes when using RtL (Arabic)
I wonder whether anyone might have any thoughts about the below? Many thanks. On 21 Jul 2015, at 20:56, tala...@fastmail.fm wrote: I’m reviving this old thread, as the problem appears to still exist. Consider the following: \starttext \showframe \definenote[afootnote][rule={on,right},paragraph=no] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext r2l.pdf In the output (r2l.pdf), the text runs from right to left as it should, and the footnote reference numbers are in the right margin, as they should be. However, if we switch the option “paragraph” to “yes”, the entire frame no longer runs r2l (see the output in r2l-yes.pdf). r2l-yes.pdf What I want is for the text to read as follows: .eerht etontoof si sihT 3 .owt etontoof si sihT 2 .eno etontoof si sihT 1 where the entire frame begins at the right margin, such that the first footnote number (1) is in the right margin, instead of in the left margin as it is in r2l-yes.pdf. To say it another way, the entire footnote frame should be r2l, regardless of its contents, perhaps (as Idris wrote to me) through some hard direction switch for the entire frame. Best wishes, Talal ___ 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] footnotes when using RtL (Arabic)
Thank you, Pablo. This is indeed the problem: the individual elements — the notes — are correctly RTL, but the overall “paragraph” is ordering the elements LTR (with the additional caveat the footnote paragraph is not properly aligned/justified to the right margin either). Best wishes, Talal On 30 Jul 2015, at 15:26, Pablo Rodriguez oi...@gmx.es wrote: On 07/30/2015 03:00 PM, tala...@fastmail.fm wrote: I wonder whether anyone might have any thoughts about the below? Many thanks. I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Just in case it might help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes when using RtL (Arabic)
On 07/30/2015 04:43 PM, tala...@fastmail.fm wrote: Thank you, Pablo. This is indeed the problem: the individual elements — the notes — are correctly RTL, but the overall “paragraph” is ordering the elements LTR (with the additional caveat the footnote paragraph is not properly aligned/justified to the right margin either). Adding \definenotation[afootnote][alternative=serried, align=r2l] makes alignment even worse. Pablo On 30 Jul 2015, at 15:26, Pablo Rodriguez wrote: On 07/30/2015 03:00 PM, tala...@fastmail.fm wrote: I wonder whether anyone might have any thoughts about the below? Many thanks. I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Just in case it might help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes when using RtL (Arabic)
On 07/30/2015 03:00 PM, tala...@fastmail.fm wrote: I wonder whether anyone might have any thoughts about the below? Many thanks. I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Just in case it might help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes when using RtL (Arabic)
Hi Wolfgang, On Thu, 30 Jul 2015 11:54:55 -0600, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Pablo Rodriguez mailto:oi...@gmx.es 30. Juli 2015 16:26 I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Can you test the following patch. \unprotect \def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup} \protect %\setupalign[righttoleft] \setupnote[footnote][paragraph=yes,align=righttoleft] \setupnotation[footnote][align=righttoleft] \showframe \starttext First note.\footnote{This is the first footnote.} Second note.\footnote{This is the second footnote.} \stoptext Wolfgang Looking good... Question: From strc-not.mkvi=== \def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {\vbox\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup} = What was key point of attack in the original definition that was hardwiring the TLT in the note markers? Best wishes Idris -- Idris Samawi Hamid Professor of Philosophy Colorado State University Fort Collins, CO 80523 ___ 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] footnotes when using RtL (Arabic)
Indeed, that seems to do the trick, Wolfgang. On 30 Jul 2015, at 18:54, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Pablo Rodriguez mailto:oi...@gmx.es30. Juli 2015 16:26 I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Can you test the following patch. \unprotect \def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup} \protect %\setupalign[righttoleft] \setupnote[footnote][paragraph=yes,align=righttoleft] \setupnotation[footnote][align=righttoleft] \showframe \starttext First note.\footnote{This is the first footnote.} Second note.\footnote{This is the second footnote.} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes when using RtL (Arabic)
I’ve come across a snag. When using parentheses in Arabic footnotes, they are flipped. In any earlier email (http://article.gmane.org/gmane.comp.tex.context/91501/match=setupdirections+bidi+global), you had advised adding the following: \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups \setupnote[footnote][setups=note:footnote] % align=righttoleft However, if one does this with your patch, the second footnote gets dropped. Here is the MWE: \unprotect \def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup} \protect \definefontfamily[mainface][serif][ALMFixed][features=arabic,range=arabic,] \setupbodyfont [mainface] \startsetups[note:footnote] \setupdirections[bidi=global] \stopsetups \setupnote[footnote][paragraph=yes,align=righttoleft,setups=note:footnote,] \setupnotation[footnote][align=righttoleft,alternative=serried,] \showframe \starttext First note.\footnote{هذه هي (التعليقة) الأولى.} Second note.\footnote{هذه هي (التعليقة) الثانية.} \stoptext All the best, Talal On 30 Jul 2015, at 18:54, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: Pablo Rodriguez mailto:oi...@gmx.es30. Juli 2015 16:26 I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Can you test the following patch. \unprotect \def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup} \protect %\setupalign[righttoleft] \setupnote[footnote][paragraph=yes,align=righttoleft] \setupnotation[footnote][align=righttoleft] \showframe \starttext First note.\footnote{This is the first footnote.} Second note.\footnote{This is the second footnote.} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes when using RtL (Arabic)
Pablo Rodriguez mailto:oi...@gmx.es 30. Juli 2015 16:26 I wonder whether there is a bug somewhere in notes, because you may have r2l notations, but the notes paragraph is built l2r: \setuppapersize[A6] \starttext \showframe \definenote[afootnote][rule={on,right}, paragraph=yes] \definenotation[afootnote][align=r2l] \startalignment[r2l] Testing.\afootnote{This is footnote one.} Testing testing.\afootnote{This is footnote two.} Testing testing testing.\afootnote{This is footnote three.} \stopalignment \stoptext Can you test the following patch. \unprotect \def\strc_notes_flush_global {\begingroup \useinterlinespaceparameter\noteparameter \doifelse{\noteparameter\c!paragraph}\v!yes {%\vbox\starthboxestohbox \vbox\ifconditional\displaylefttoright \else dir TRT \fi\starthboxestohbox \iftrialtypesetting\unvcopy\else\unvbox\fi\currentnoteinsertionnumber \stophboxestohbox} {\iftrialtypesetting\unvcopied\else\unvboxed\fi\currentnoteinsertionnumber}% \endgroup} \protect %\setupalign[righttoleft] \setupnote[footnote][paragraph=yes,align=righttoleft] \setupnotation[footnote][align=righttoleft] \showframe \starttext First note.\footnote{This is the first footnote.} Second note.\footnote{This is the second footnote.} \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Problem with definelabel and footnotes
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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] alphabetically ordered notes
On 4/5/2015 8:32 PM, Pablo Rodriguez wrote: Hans, as you told me to remind you latter, here you have the proposal for alphabetically ordered footnotes: \setuplanguage[en][patterns={en,agr}] \setuppapersize[A7] \setupbodyfont[dejavu, 12pt] \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][width=broad, number=no] \starttext Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα, -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb}, ἔπειτα τί ἐστιν ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation} καὶ κατάφασις\dict{κατάφασις, εως, ἡ: affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις, -εως, ἡ: statement} καὶ λόγος. Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό: affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ. \page \title{Vocabulary} \placenotes[dict] \stoptext BTW, it would be extremely useful to be able to place this kind of notes on each page and also with a \placenotes command. quite tricky due to synchronization issues Many thanks for your help, in next beta: \placelist[dict][order=title] (no language control yet .. no time now) - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] alphabetically ordered notes
Hans, as you told me to remind you latter, here you have the proposal for alphabetically ordered footnotes: \setuplanguage[en][patterns={en,agr}] \setuppapersize[A7] \setupbodyfont[dejavu, 12pt] \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][width=broad, number=no] \starttext Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα, -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb}, ἔπειτα τί ἐστιν ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation} καὶ κατάφασις\dict{κατάφασις, εως, ἡ: affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις, -εως, ἡ: statement} καὶ λόγος. Ἔστι μὲν οὖν τὰ ἐν τῇ φωνῇ\dict{φωνή, -ῆς, ἡ: voice} τῶν ἐν τῇ ψυχῇ\dict{ψυχῇ, -ῆς, ἡ: soul} παθημάτων\dict{πάθημα, -ατος, τό: affections} σύμβολα\dict{σύμβολον, -ου, τό: symbol}, καὶ τὰ γραφόμενα\dict{γραφόμενον: written} τῶν ἐν τῇ φωνῇ. \page \title{Vocabulary} \placenotes[dict] \stoptext BTW, it would be extremely useful to be able to place this kind of notes on each page and also with a \placenotes command. Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] line break between number and footnote text in paragraph footnotes
Il giorno ven, 03/04/2015 alle 00.36 +0200, Hans Hagen ha scritto: On 4/3/2015 12:31 AM, mf wrote: Hello, I have a problem with paragraph footnotes. I don't know how to prevent a line break occurring between the footnote number and the footnote text. Sometimes a thing like this happens: ... [main text] ... -- 1. text of the first footnote --- 2. text of the second one --- 3. text of the third one Is there a way to force ConTeXt to keep the 3. with text of the third one? Thanks in advance, Massi ... \definenote[footnote] \setupnotation[footnote][ alternative=serried, numberstopper=, numbercommand={\high}, numberconversion=a, way=bypage, width=0.5pt, location=page] \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} , location=page, before={\blank[2*line]}] \starttext First footnote\footnote{this is the text of the first footnote}. Another one\footnote{the second one, longer to get to the right margin}. And the third one,\footnote{third footnote} with the “c” letter separated by a line break from the footnote text. \stoptext I found a solution: adding a negative penalty at the end of the inbetween parameter: \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} \penalty-1000, location=page, before={\blank[2*line]}] The footnotes' area was like this: - ^a this is the text of the first footnote --- ^b the second... --- ^c third footnote Now it is like this: - ^a this is the text of the first footnote --- ^b the second... --- ^c third footnote The first line ends with an em dash: it's not so fine, but it's better than a letter (footnote number) split from the text of the footnote by a line break. it is already handled in the beta I've downloaded it and I was glad to see the result. Now the footnotes' area looks like this: - ^a this is the text... --- ^b the second... --- ^c third footnote It's much better. Thank you, Hans. ___ 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] line break between number and footnote text in paragraph footnotes
On 4/3/2015 12:31 AM, mf wrote: Hello, I have a problem with paragraph footnotes. I don't know how to prevent a line break occurring between the footnote number and the footnote text. Sometimes a thing like this happens: ... [main text] ... -- 1. text of the first footnote --- 2. text of the second one --- 3. text of the third one Is there a way to force ConTeXt to keep the 3. with text of the third one? Thanks in advance, Massi ... \definenote[footnote] \setupnotation[footnote][ alternative=serried, numberstopper=, numbercommand={\high}, numberconversion=a, way=bypage, width=0.5pt, location=page] \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} , location=page, before={\blank[2*line]}] \starttext First footnote\footnote{this is the text of the first footnote}. Another one\footnote{the second one, longer to get to the right margin}. And the third one,\footnote{third footnote} with the “c” letter separated by a line break from the footnote text. \stoptext I found a solution: adding a negative penalty at the end of the inbetween parameter: \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} \penalty-1000, location=page, before={\blank[2*line]}] The footnotes' area was like this: - ^a this is the text of the first footnote --- ^b the second... --- ^c third footnote Now it is like this: - ^a this is the text of the first footnote --- ^b the second... --- ^c third footnote The first line ends with an em dash: it's not so fine, but it's better than a letter (footnote number) split from the text of the footnote by a line break. it is already handled in the beta -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] line break between number and footnote text in paragraph footnotes
Hello, I have a problem with paragraph footnotes. I don't know how to prevent a line break occurring between the footnote number and the footnote text. Sometimes a thing like this happens: ... [main text] ... -- 1. text of the first footnote --- 2. text of the second one --- 3. text of the third one Is there a way to force ConTeXt to keep the 3. with text of the third one? Thanks in advance, Massi ... \definenote[footnote] \setupnotation[footnote][ alternative=serried, numberstopper=, numbercommand={\high}, numberconversion=a, way=bypage, width=0.5pt, location=page] \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} , location=page, before={\blank[2*line]}] \starttext First footnote\footnote{this is the text of the first footnote}. Another one\footnote{the second one, longer to get to the right margin}. And the third one,\footnote{third footnote} with the “c” letter separated by a line break from the footnote text. \stoptext I found a solution: adding a negative penalty at the end of the inbetween parameter: \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} \penalty-1000, location=page, before={\blank[2*line]}] The footnotes' area was like this: - ^a this is the text of the first footnote --- ^b the second... --- ^c third footnote Now it is like this: - ^a this is the text of the first footnote --- ^b the second... --- ^c third footnote The first line ends with an em dash: it's not so fine, but it's better than a letter (footnote number) split from the text of the footnote by a line break. ___ 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] line break between number and footnote text in paragraph footnotes
On 4/1/2015 12:15 AM, mf wrote: Hello, I have a problem with paragraph footnotes. I don't know how to prevent a line break occurring between the footnote number and the footnote text. Sometimes a thing like this happens: ... [main text] ... -- 1. text of the first footnote --- 2. text of the second one --- 3. text of the third one Is there a way to force ConTeXt to keep the 3. with text of the third one? example needed - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl - Here it is: \definenote[footnote] \setupnotation[footnote][ alternative=serried, numberstopper=, numbercommand={\high}, numberconversion=a, way=bypage, width=0.5pt, location=page] \setupnote[footnote][ alternative=serried, paragraph=yes, inbetween= \emdash{} , location=page, before={\blank[2*line]}] \starttext First footnote\footnote{this is the text of the first footnote}. Another one\footnote{the second one, longer to get to the right margin}. And the third one,\footnote{third footnote} with the “c” letter separated by a line break from the footnote text. \stoptext I'm using the ConTeXt package from Debian testing, version 2014.05.21.20140528-2. Here's the output of context --version: mtx-context | ConTeXt Process Management 0.60 mtx-context | mtx-context | main context file: /usr/share/texmf/tex/context/base/context.mkiv mtx-context | current version: 2014.05.21 22:04 ___ 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] footnotes broken in latest beta?
On 03/27/2015 09:37 PM, Hans Hagen wrote: On 3/27/2015 6:46 PM, Pablo Rodriguez wrote: Hans, I’m afraid that footnotes are broken in latest beta from 2015-03-26 22:54: \starttext a\footnote{b} \stoptext Both numbers in body and footnote are missing. Many thanks for your help, i uploaded a beta ... with a few more things done in notes (some 1000 changes to go) thanks for testing Many thanks for the fast fix, Hans. What I see in the new beta is that with one of my documents blank between footnotes is much higher than in the previous beta from 2015.03.25 22:13. But I will provide a minimal sample later. Since you are changing so many things in notes, I wonder whether this is the right time to ask for a feature. Just in case it were, I would suggest the following: \setuplanguage[en][patterns={en,agr}] \setuppapersize[A5] \setupbodyfont[dejavu] \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][number=no] \starttext Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα, -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb}, ἔπειτα τί ἐστιν ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation} καὶ κατάφασις\dict{κατάφασις, εως, ἡ: affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις, -εως, ἡ: statement} καὶ λόγος. \stoptext Alphabetically sorted notes would be extremely useful for language teaching? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnotes and Marginal texts
On 2/15/2015 12:04 AM, Robert Krug wrote: Greetings, I am working on a document with many annotations of different types, and have a couple of questions. (Before the questions, though, I am quite impressed with ConTeXt so far. It is much nicer to work with than any of the TeX or LaTeX packages I have worked with before.) First, what is the preferred way to get marginal text? Is \margintext, \inmargin, or some other the current best practice? Second, is there a way to get marginal text for a footnote? Here is a minimal working example: \starttext Text for the\footnote{A\margintext{Where am I?} footnote.} main\margintext{I am here.} body. \stoptext Finally, is there a way to have different classes of footnotes? I would like to have three classes of footnotes to be displayed something like: —— 1. first footnote of class 1 2. second footnote of class 1. —— a. first footnote of class 2. b. second footnote of class 2. —— 1. first footnote of class 3. 2. second footnote of class 3. That is, the footnotes of each class should appear together, with a “normal” footnote rule above them. Each class of footnotes should also have its own numbering scheme. Footnotes of class 1 are “regular” footnotes in the main text body. Footnotes of class 2 will be longer, and will occasionally be more than one paragraph. They, also, will occur in the main text body. To complicate matters, they may have marginal notes and footnotes (of class 3). Footnotes of class 3 are footnotes that occur in footnotes of class 2. \definenote[NoteA] \definenote[NoteB] \definenote[NoteC] \starttext Text for the \NoteA{A\margintext[scope=local]{Where am I?} footnote A.} main\inleft{I am here.} body. Text for the \NoteB{B\margintext[scope=local]{Where am I?} footnote B.} main\inleft{I am here.} body. Text for the \NoteC{C\margintext[scope=local]{Where am I?} footnote C.} main\inleft{I am here.} body. \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Footnotes and Marginal texts
This is definite progress. Thanks. But I don’t see footnotes of type NoteC when used inside a NoteB. Example: == \definenote[NoteA] \definenote[NoteB] \definenote[NoteC] \setupnotation[NoteB][numberconversion=characters] \setupnotation[NoteC][numberconversion=Romannumerals] \starttext Text for the \NoteB{B\margintext[scope=local]{Where am I?} footnote \NoteC{C footnote C.} B.} main body. Text for the \NoteA{A first footnote A.} main\inleft{I am here.} body. Text for the \NoteA{A second footnote A.} body. \stoptext == This seems related to an even simpler example from the Wiki == \starttext This\footnote{Or that\footnote{Or possibly even the other.}, if you prefer.} is a sentence with a footnote. \stoptext == Robert On Feb 15, 2015, at 6:26 AM, Hans Hagen pra...@wxs.nl wrote: On 2/15/2015 12:04 AM, Robert Krug wrote: Greetings, I am working on a document with many annotations of different types, and have a couple of questions. (Before the questions, though, I am quite impressed with ConTeXt so far. It is much nicer to work with than any of the TeX or LaTeX packages I have worked with before.) First, what is the preferred way to get marginal text? Is \margintext, \inmargin, or some other the current best practice? Second, is there a way to get marginal text for a footnote? Here is a minimal working example: \starttext Text for the\footnote{A\margintext{Where am I?} footnote.} main\margintext{I am here.} body. \stoptext Finally, is there a way to have different classes of footnotes? I would like to have three classes of footnotes to be displayed something like: —— 1. first footnote of class 1 2. second footnote of class 1. —— a. first footnote of class 2. b. second footnote of class 2. —— 1. first footnote of class 3. 2. second footnote of class 3. That is, the footnotes of each class should appear together, with a “normal” footnote rule above them. Each class of footnotes should also have its own numbering scheme. Footnotes of class 1 are “regular” footnotes in the main text body. Footnotes of class 2 will be longer, and will occasionally be more than one paragraph. They, also, will occur in the main text body. To complicate matters, they may have marginal notes and footnotes (of class 3). Footnotes of class 3 are footnotes that occur in footnotes of class 2. \definenote[NoteA] \definenote[NoteB] \definenote[NoteC] \starttext Text for the \NoteA{A\margintext[scope=local]{Where am I?} footnote A.} main\inleft{I am here.} body. Text for the \NoteB{B\margintext[scope=local]{Where am I?} footnote B.} main\inleft{I am here.} body. Text for the \NoteC{C\margintext[scope=local]{Where am I?} footnote C.} main\inleft{I am here.} body. \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] interline space in final notes?
Dear list, I have the following sample: \startsetups[setups:footnote] \setupinterlinespace[line=5ex] \stopsetups \definenote[specialnote] \setupnote[specialnote][setups=setups:footnote] \setupnote[footnote][way=bytext, location=text, setups=setups:footnote] \def\snote#1{\footnote{#1}\specialnote{#1}} \starttext Hi\snote{\input knuth}. \placefootnotes \stoptext And I dont know how to setup the different interline space for final footnotes? Aren’t setups the right way to do this? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] issues with footnotes
Dear list, using beta from 2014-08-21 09:59, I’m trying to generate a document that has two bodies of notes: footnotes and linenotes. Since the document isn’t minimal, I include only the notes definitions: \definenote[dict] \setupnote[dict][setups=setups:linenote, n=2, rule=off, split=verystrict, scope=text, inbetween=\hskip1.5em] \setupnotation[dict][number=no, width=broad] \definelinenote[grammatical] \setupnote[grammatical][setups=setups:linenote, rule=off, paragraph=yes, split=verystrict, scope=text, inbetween=\hskip1.5em, compress=yes] \setupnotation[grammatical][numbercommand=, alternative=serried, distance=1em] The output can be found at http://www.ousia.tk/unbalanced-columns.pdf. In all four pages, columns in footnotes are unbalanced. Is there any way to get balanced columns in footnotes? The second issue is that the columnar footnotes don’t respect space before and after defined in \setupnote. How can I avoid this? (BTW, this also happens with the space before when paragraph=yes.) BTW, if I add the following code to avoid widows and orphans: \setuplayout[setups=*lessstrict] \startsetups[*lessstrict] \setup[reset] \widowpenalty=1 \clubpenalty=1 \brokenpenalty=0 \stopsetups The footnotes aren’t displayed in columns at all (http://www.ousia.tk/no-columns.pdf). Is there no way that I can avoid widows and orphans for the body text? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] another issue with PDF bookmarks
On 4/9/2014 9:33 PM, Aditya Mahajan wrote: On Wed, 9 Apr 2014, Aditya Mahajan wrote: One possibility is to add: \appendtoks \let\footnote \gobbleoneargument \to \everysimplifycommands to your style. Perhaps this should be added to the definition of definenote. Hmm... simplifycommands needs an overhaul: From typo-del.mkiv: \appendtoks \def\quotation#1{#1}% \def\quote#1{'#1'}% \to \everysimplifycommands and from buff-ver.mkiv: \appendtoks \def\type#1{\letterbackslash\checkedstrippedcsname#1}% or maybe detokenize \def\tex #1{\letterbackslash#1}% \to \everysimplifycommands The simplification of \type assumes that a user will always use \type{\command} and gives the wrong result for \type{text} and fails for \type{text\undefined}. The simplification of \quote and \quotation should not be hardcoded, but rather be a part of \definedelimitedtext. Apart from notes and delimited text, are there other commands that need to be simplified for bookmarks, etc? this kind of things are always tricky ... simplify vs ignore and so there is an experimental option: \enabledirectives[references.bookmarks.preroll] which also work to some extend with math: $\sqrt{123}$ i've made that one also ignore notes (beta coming) concerning the undefined commands (\command) ... ad \let\command\relax to the preamble then ... there is no way we can predict all that and we're in a different catcode regime at that point Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] another issue with PDF bookmarks
On 04/09/2014 09:33 PM, Aditya Mahajan wrote: On Wed, 9 Apr 2014, Aditya Mahajan wrote: One possibility is to add: \appendtoks \let\footnote \gobbleoneargument \to \everysimplifycommands to your style. Perhaps this should be added to the definition of definenote. Hmm... simplifycommands needs an overhaul: From typo-del.mkiv: \appendtoks \def\quotation#1{#1}% \def\quote#1{'#1'}% \to \everysimplifycommands and from buff-ver.mkiv: \appendtoks \def\type#1{\letterbackslash\checkedstrippedcsname#1}% or maybe detokenize \def\tex #1{\letterbackslash#1}% \to \everysimplifycommands The simplification of \type assumes that a user will always use \type{\command} and gives the wrong result for \type{text} and fails for \type{text\undefined}. The simplification of \quote and \quotation should not be hardcoded, but rather be a part of \definedelimitedtext. Apart from notes and delimited text, are there other commands that need to be simplified for bookmarks, etc? Many thanks for your reply, Aditya. If I don’t get it wrong, I guess all language and style commands should be ignored. And all braces, when not explicitly invoked (such as in \{). But this only would affect to PDF bookmarks. Many thanks again, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] another issue with PDF bookmarks
On Wed, 9 Apr 2014, Pablo Rodriguez wrote: On 04/09/2014 08:29 PM, Andreas Schneider wrote: On 08.04.2014 16:20, Pablo Rodriguez wrote: I have a sample that shows an issue with PDF bookmarks: [...] Sorry, but I don’t know why the footnote is removed in the table of contents and in the header, but it isn‘t in the bookmark. That probably has to do with expansion (a detailed explanation may be given by a (Con)TeX(t) Guru :-)). I think the best fix is to use the MkIV title mechanism (start... stop...) http://wiki.contextgarden.net/Titles#New_MkIV_Sectioning That way you can do: \startchapter[title={Footnote\footnote{Only where appropriate}}, bookmark={No Footnote}] ... \stopchapter Many thanks for your reply, Andreas. This is a way to avoid the problem. F rom the user’s perspective, I cannot see the reason why \footnote isn’t removed from the PDF bookmark automatically. It makes the same sense as in headers and ToC. One possibility is to add: \appendtoks \let\footnote \gobbleoneargument \to \everysimplifycommands to your style. Perhaps this should be added to the definition of definenote. Aditya___ 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] another issue with PDF bookmarks
On Wed, 9 Apr 2014, Aditya Mahajan wrote: One possibility is to add: \appendtoks \let\footnote \gobbleoneargument \to \everysimplifycommands to your style. Perhaps this should be added to the definition of definenote. Hmm... simplifycommands needs an overhaul: From typo-del.mkiv: \appendtoks \def\quotation#1{#1}% \def\quote#1{'#1'}% \to \everysimplifycommands and from buff-ver.mkiv: \appendtoks \def\type#1{\letterbackslash\checkedstrippedcsname#1}% or maybe detokenize \def\tex #1{\letterbackslash#1}% \to \everysimplifycommands The simplification of \type assumes that a user will always use \type{\command} and gives the wrong result for \type{text} and fails for \type{text\undefined}. The simplification of \quote and \quotation should not be hardcoded, but rather be a part of \definedelimitedtext. Apart from notes and delimited text, are there other commands that need to be simplified for bookmarks, etc? Aditya ___ 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 ___
[NTG-context] (critical edition) notes alphabetically sorted
Hi Thomas, Luigi and Hans, I’m aware that this isn’t exactly a feature for critical editions, but this is a useful feature for educational material. This is a minimal sample: \mainlanguage[en] \setuplanguage[en][patterns={en,agr}] \setuppapersize[A5] \usemodule[simplefonts] \setmainfont[DejaVu Serif] \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][number=no] \starttext Πρῶτον δεῖ θέσθαι τί ὄνομα\dict{ὄνομα, -ατος, τό: noun} καὶ τί ῥῆμα\dict{ῥῆμα, -ατος, τό: verb}, ἔπειτα τί ἐστιν ἀπόφασις\dict{ἀπόφασις, -εως, ἡ: negation} καὶ κατάφασις\dict{κατάφασις, εως, ἡ: affirmation} καὶ ἀπόφανσις\dict{ἀπόφανσις, -εως, ἡ: statement} καὶ λόγος. \stoptext Having these notes alphabetically ordered would be extremely useful for language teaching- Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Indented footnotes in ConTeXt
Am 21.11.2012 um 08:54 schrieb H. Özoguz h.oezo...@mmnetz.de: Am 21.11.2012 08:50, schrieb ntg-context-requ...@ntg.nl: Message: 1 Date: Tue, 20 Nov 2012 14:28:11 -0600 From: Adam Khanloyalc...@gmail.com To:ntg-context@ntg.nl Subject: [NTG-context] Indented footnotes in ConTeXt Message-ID: CAAAgs1CcxeJ9Dr2MqNb1JdD3N1Pv3=Yju=GE=ujo6zvwgvr...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Greetings! I am writing a German critical edition in which I am using endnotes, and I am encountering severe difficulties with formatting them as I should wish. The idea is to indent the entire footnote?marker and text?0.5in. In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this set-up: \definenote[critical][conversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] Then I move the text by adding the unsightly but functional hack \hskip.5into the beginning of the argument of \critical or \criticaltext. Unfortunately, the endnotes do not flow from page to page in Mark II, and, from the comments on the source code, it appears that this cannot be helped. Given the length and number of endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem viable. In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow from page to page, but the formatting does not appear to respond to the margindistance key. From various related posts, the answer appears to lie in \setupnotation, but, whenever I attempt to pass this command, I get an ?undefined control sequence? error. In short, my question is, How do I code indenting each endnote .5in with the highest degree of automation and fewest hacks possible? Sincerely yours, Adam Khan You can try, what I use for footnotes, maybe this is what you want or helps? \setupnotation[footnote][ alternative=left, width=2em, numbercommand=\hskip1.6em\high] %Fußnoten werden eingerückt und Nummer hochgestellt \setupnotation [endnote] [alternative=left, hang=1, width=1.6em, headalign=flushright] \starttext \input knuth\endnote{\input ward } \placenotes[endnote] \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Indented footnotes in ConTeXt
Greetings! I am writing a German critical edition in which I am using endnotes, and I am encountering severe difficulties with formatting them as I should wish. The idea is to indent the entire footnote—marker and text—0.5in. In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this set-up: \definenote[critical][conversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] Then I move the text by adding the unsightly but functional hack \hskip.5into the beginning of the argument of \critical or \criticaltext. Unfortunately, the endnotes do not flow from page to page in Mark II, and, from the comments on the source code, it appears that this cannot be helped. Given the length and number of endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem viable. In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow from page to page, but the formatting does not appear to respond to the margindistance key. From various related posts, the answer appears to lie in \setupnotation, but, whenever I attempt to pass this command, I get an “undefined control sequence” error. In short, my question is, How do I code indenting each endnote .5in with the highest degree of automation and fewest hacks possible? Sincerely yours, Adam Khan P.S. In case something less obvious in my environment file is causing my difficulties, I attach it below: \startenvironment Formattierung \setuppapersize[letter][letter] \setuplayout[backspace=1.5in, topspace=1in, bottomspace=1in, cutspace=1in] \setupinterlinespace[line=5.6ex] \setupindenting[.5in] \indenting[always] \setupnarrower[left=0.5in, right=0in] \setupspacing[packed] \setupalign[right,broad,nothyphenated] \setuplinenumbering[step=1] \setuppagenumbering[way=bytext] \definenote[genetic] \setupnote[genetic][numberconversion=romannumerals, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \definenote[source] \setupnote[source][numberconversion=set2, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \definenote[critical] \setupnote[critical][numberconversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] \definenote[annotation] \setupnote[annotation][numberconversion=numbers, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \definenote[sociological] \setupnote[sociological][numberconversion=Romannumerals, way=bychapter, location=text, bodyfont=12pt, align=flushleft] \setupbodyfont[ss,12pt] \setuphead[chapter][ownnumber=yes] \def\broadcast{\rm} \def\callout#1{#1} \def\noteindent{\hskip.5in} \def\notepar{\\\hskip.5in} \def\original{\ss} \def\paratext{\tt} \def\quotationheader#1#2{{\noindenting\paratext#1]\wordright{[#2}}} \def\siglum#1{{\bf#1}} \def\someoneelse#1{{\it#1}} \stopenvironment ___ 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 ___
[NTG-context] Indented footnotes in ConTeXt
Am 21.11.2012 08:50, schrieb ntg-context-requ...@ntg.nl: Message: 1 Date: Tue, 20 Nov 2012 14:28:11 -0600 From: Adam Khanloyalc...@gmail.com To:ntg-context@ntg.nl Subject: [NTG-context] Indented footnotes in ConTeXt Message-ID: CAAAgs1CcxeJ9Dr2MqNb1JdD3N1Pv3=Yju=GE=ujo6zvwgvr...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Greetings! I am writing a German critical edition in which I am using endnotes, and I am encountering severe difficulties with formatting them as I should wish. The idea is to indent the entire footnote?marker and text?0.5in. In ConTeXt (Mark II) on XeTeX, I can move the footnote marker with this set-up: \definenote[critical][conversion=characters, way=bychapter, location=text, bodyfont=12pt, margindistance=-.5in, align=flushleft] Then I move the text by adding the unsightly but functional hack \hskip.5into the beginning of the argument of \critical or \criticaltext. Unfortunately, the endnotes do not flow from page to page in Mark II, and, from the comments on the source code, it appears that this cannot be helped. Given the length and number of endnotes needed for my project, ConTeXt (Mark II) on XeTeX does not seem viable. In ConTeXt (Mark IV) on LuaTeX, on the other hand, the endnotes do flow from page to page, but the formatting does not appear to respond to the margindistance key. From various related posts, the answer appears to lie in \setupnotation, but, whenever I attempt to pass this command, I get an ?undefined control sequence? error. In short, my question is, How do I code indenting each endnote .5in with the highest degree of automation and fewest hacks possible? Sincerely yours, Adam Khan You can try, what I use for footnotes, maybe this is what you want or helps? \setupnotation[footnote][ alternative=left, width=2em, numbercommand=\hskip1.6em\high] %Fußnoten werden eingerückt und Nummer hochgestellt Viel Erfolg. Huseyin ___ 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 ___
[NTG-context] linenotes space for compress
Hi there, I have tried to add the compress option for linenotes to a commented edition that I'm trying to typeset (http://geoffreysteadman.com/). Sample is attached. And the relevant code for both apparatuses are: \definenote[dict] \setupnote[dict][n=2,rule=off, split=strict, inbetween=\hskip1.5em] \setupnotation[dict][number=no] \definelinenote[contxt] \setupnote[contxt][rule=off, paragraph=yes, split=strict, inbetween=\hskip1.5em] \setupnotation[contxt][numbercommand=,alternative=serried,distance=1em,compress=yes,compressseparator=] There is a problem (shown in the second apparatus from pages 1-3): compression space is also shown at line start with no previous text on that line. I'm afraid this is a bug. There is another issue with the blank space between compressed notes. They have more space than normal notes. This can be observed comparing the first compressed notes and the first numbered ones. I guess compressed notes have both spaces from numbered notes (the space before and the space after the number [inbetween option from setupnote and distance option from setupnotation]). I think there should be less space for compressed notes than for numbered notes. I think Idris and Thomas might give some insight into this issue. My suggestion would be to reduce the compressed space to the space before the number (inbetween option from setupnotes) or to enable a compressspace option in setupnotation (which would make sense mainly when compressseparator were disabled). There is another issue on pages 2 and 3: the separation between body and the dict linenotes is almost non-existent. I'm afraid this may be bug. BTW, I would like to put the contxt linenote numbers in old style. \setff{oldn} would be the command, but \setupnotation[contxt][numbercommand=\setff{oldn}] doesn't work. How can I get this? Many thanks for your help, Pablo -- http://www.ousia.tk symposium.pdf Description: video/flv ___ 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] Luatex error in latest beta (standalone)
Thanks, Sietse, but local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway, the original error remains. Alan On Fri, Aug 3, 2012 at 11:01 AM, Sietse Brouwer sbbrou...@gmail.com wrote: Alan wrote: the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end Three functions are defined directly above: L297: local function getsymbolpage(tag,n) L307: local function getnumberpage(tag,n) L317: function notes.deltapage(tag,n) There is no reference to /\deltapage/ anywhere (`\` is a word boundary), so I suggest turning L317 into local function getdeltapage(tag,n) and see whether that solves your problem. I can't test it myself, lacking a minimal (non)working example. (They should be called Minimal Illustrative Examples, really, or Minimal Complete Examples. But that ship has long sailed.) Cheers, Sietse On Fri, Aug 3, 2012 at 4:36 PM, Alan Bowen bowenala...@gmail.com wrote: Hi, Keith— the relevant lines in strc-not.lua are: notes.getsymbolpage = getsymbolpage notes.getnumberpage = getnumberpage notes.getdeltapage = getdeltapage function commands.notesymbolpage(tag,n) context(getsymbolpage(tag,n)) end function commands.notenumberpage(tag,n) context(getnumberpage(tag,n)) end function commands.notedeltapage (tag,n) context(getdeltapage (tag,n)) end In strc-not.mkiv, the lines are: \def\strc_notes_set_style_color_special {\iftrialtypesetting % keep \else\ifx\currentcolorparameter\empty \scratchcounter\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % todo calculate once \setlocationcolorspecified\scratchcounter \fi\fi} \unexpanded\def\strc_notes_inject_pointer % todo calculate once {\ifcase\ctxcommand{notedeltapage(\currentnote,\currentnotenumber)}\relax % unknown \or % same page \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!nextpage]}% \or \noteparameter\c!symbolcommand{\symbol[\v!note:\v!previouspage]}% \fi} But I have no idea what to make of this. Alan On Fri, Aug 3, 2012 at 10:04 AM, Keith J. Schultz keithjschu...@web.de wrote: Hi Alan, I do not know if this helps. As I do not have the source, but I assume that should be notegetdeltapage. There are other possiblities. If that does not help. start looking for getdeltapage. Maybe, it was not hook in correct. at one point, or somebody for to use a dummy function. regards Keith. Am 03.08.2012 um 15:04 schrieb Alan Bowen bowenala...@gmail.com: Files that used to process are now getting this error message: ! LuaTeX error ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: attempt to call global 'getdeltapage' (a nil value) stack traceback: ...TeXt/tex/texmf-context/tex/context/base/strc-not.lua:351: in function 'notedeltapage' main ctx instance:1: in main chunk. system tex error on line 24 in file c_2012-01_Johnson.tex: LuaTeX error … ctxcommand ...\directlua \zerocount {commands.#1} \strc_notes_set_style_color_special ...tenumber )} \relax \setlocationcolorsp... \strc_notes_set_style_color_inline ...lor_special \fi \strc_notes_inject_symbol ...xtstyle \c!textcolor \hbox \strc_notes_get_refe... \195notation:note ...l \strc_notes_inject_symbol \else \unskip \unskip \glo... \strc_notations_command_nop ...handler \endcsname \strc_constructions_finali... I am running ConTeXt ver: 2012.08.02 10:55 MKIV fmt: 2012.8.2 int: english/english (standalone) Is there fix for this? Many thanks. Alan ___ 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 ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http
Re: [NTG-context] Luatex error in latest beta (standalone)
Sietse wrote (at 17:00): so I suggest turning L317 into local function getdeltapage(tag,n) Alan Bowen bowenala...@gmail.com wrote (at 17:42): local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway, the original error remains. No error here. What \definenote-related error do you get when running context --make? Cheers, Sietse ___ 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] Luatex error in latest beta (standalone)
When I change line 317 in strc-not.lua to read local function notes.deltapage(tag,n) and run context --make, I get system tex error on line 1701 in file /Applications/ConTeXt/tex/texmf-context/tex/context/base/strc-not.mkvi: LuaTeX error ... 1691 {\let\strc_notes_set_bodyfont\relax 1692\restoreglobalbodyfont 1693\switchtobodyfont[\noteparameter\c!bodyfont]% 1694\setupalign[\noteparameter\c!align]} 1695 1696 %D The footnote mechanism defaults to a traditional one 1697 %D column way of showing them. By default we precede them by 1698 %D a small line. 1699 1700 \definenote [\v!footnote] 1701 \definenote [\v!endnote ] [\c!location=\v!none] % else no break 1702 1703 %D Compatibility macros: 1704 1705 \unexpanded\def\setupfootnotedefinition{\setupnotedefinition [\v!footnote]} 1706 \unexpanded\def\setupfootnotes {\setupnote [\v!footnote]} 1707\def\footnotetext {\setnotetext [\v!footnote]} 1708 \unexpanded\def\placefootnotes {\dodoubleempty\strc_notes_place_footnotes [\v!footnote]} 1709 \unexpanded\def\placelocalfootnotes {\dodoubleempty\strc_notes_place_local_footnotes[\v!footnote]} 1710 \unexpanded\def\startlocalfootnotes{\startlocalnotes [\v!footnote]} % alleen footnote 1711 \unexpanded\def\stoplocalfootnotes {\stoplocalnotes } \ctxcommand ...\directlua \zerocount {commands.#1} inserted text ...insertionnumber \currentnote )} \ifx \currentnoteparent \e... \define_note ...te }\fi \fi \the \everydefinenote \let \currentnote \saved_d... \syst_helpers_triple_empty_two_spaced ...{#2}][][] to be read again \definenote l.1701 \definenote [\v!endnote ] [\c!location=\v!none] % else no break ? Alan On Fri, Aug 3, 2012 at 1:03 PM, Sietse Brouwer sbbrou...@gmail.com wrote: Sietse wrote (at 17:00): so I suggest turning L317 into local function getdeltapage(tag,n) Alan Bowen bowenala...@gmail.com wrote (at 17:42): local function getdeltapage(tag,n) seems to mess up \definenote (the error appears when running context --make). And if one plows ahead anyway, the original error remains. No error here. What \definenote-related error do you get when running context --make? Cheers, Sietse ___ 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 ___ ___ 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 ___
[NTG-context] inheritance of footnotes
dear list, until some months ago it was possible to define/setup a series of notes and then use them as kind of interface, i.e. to let their copies inherit their setups yet be independent sets of notes – However now such copies seem to be get mereley added to the set of notes they are based upon. -- In the following minimal example none of the notes get printed when the first series of notes are not placed; on the other hand their respective \placenotes-commands are completely ignored. Thanks in advance! Daniel \definenote[first] \setupnote[first][location=text] \setupnotation[first][number=no] \definenote[second][first] \definenote[third][first] \starttext That’s my first par.\first{First note set} That’s my second par.\second{Second note set} That’s my third par.\third{Third noteset} \page %\placenotes[first]% all notes get printed when this is not commented \placenotes[second] % those are ignored \placenotes[third]% those are ignored \stoptext I'm sure I' missing some new mechanism ... or do I have to set them up each one of them?! This seems a bit cumbersome to me … \definenote[first] \definenote[second] \definenote[third] \setupnote[first][location=text] \setupnote[second][location=text] \setupnote[third][location=text] \setupnotation[first][number=no] \setupnotation[second][number=no] \setupnotation[third][number=no] \starttext That’s my first par.\first{First note set} That’s my second par.\second{Second note set} That’s my third par.\third{Third noteset} \page \placenotes[first] \placenotes[second] \placenotes[third] \stoptext -- Daniel Schopper Jahngasse 30/7 1050 Wien mobil. +43 676 4302747 tel. +43 1 5851767 mail. daniel.schop...@aon.at ___ 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 ___
[NTG-context] footnotes location=text
Dear list, after switching to the current beta (2012.06.09 01:22) manually placed footnotes are being placed _both_ on the page and at the place specified by \placenotes. And another one: I'd like to align the footnote number with the text (instead of having it ahng into the margin). Following http://wiki.contextgarden.net/Footnotes#Special_Needs I tried the location key in \setupnotation but this doesn't seem to do anything. \showframe \definenote [myFoot] \setupnote [myFoot] [location=text] \definenote[myOtherFoot] \setupnotation[myOtherFoot][location=left] \starttext \input knuth\myFoot{a footnote (which should be placed in the text)} \input knuth\myOtherFoot{ this footnote number should be aligned with the edge of the text.} \page \placenotes[myFoot] \stoptext thanks in advance!best, Daniel ___ 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] footnotes location=text
Thanks, I missed that change! And what is the parameter to prevent the footnotes being placed twice? \definenote [myFoot] \setupnote [myFoot] [location=text] \starttext \input knuth\myFoot{a footnote (which should not be placed on the page)} \page \placeno tes[myFoot] \stoptext cheers Daniel - Ursprüngliche Nachricht - Von: Wolfgang Schuster schuster.wolfg...@googlemail.com Erhalten: 11.06.2012 11:34 An: daniel.schop...@aon.at, mailing list for ConTeXt users ntg-context@ntg.nl Am 11.06.2012 um 10:58 schrieb HermannSchopper: Dear list, after switching to the current beta (2012.06.09 01:22) manually placed footnotes are being placed _both_ on the page and at the place specified by \placenotes. And another one: I'd like to align the footnote number with the text (instead of having it ahng into the margin). Following http://wiki.contextgarden.net/Footnotes#Special_Needs I tried the location key in \setupnotation but this doesn't seem to do anything. You have to write \setupnotation[…][alternative=…]. 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] space between footnotes
On 02/06/12 09:27, Philipp Gesang wrote: Hi Pablo! ···date: 2012-06-01, Friday···from: Pablo Rodríguez··· Hi there, I'm trying to add some space between footnotes, such as: \setupnotation[footnote][numbercommand=,inbetween=\hskip.25em] ^^ Assuming instead that you intend to put some vertical distance between the notes, you can try the “after” key: \setupnotation[footnote][ numbercommand=, after=\blank, %% hook you spacing macro in here ] Hi Philipp, many thanks for your reply and your help. This is what I intended, but it has an undesired effect, it adds some space after the last note in page (which, I'd like to avoid). Here is a sample: \definenote[showafter] \definenote[showbefore] \definenote[showbetween] \definenote[shownt] \setupnotation[footnote][numbercommand=] \setupnotation[showafter][numbercommand=,after={\blank[5*big]}] \setupnotation[showbefore][numbercommand=,before={\blank[5*big]}] \setupnotation[showbetween][numbercommand=,inbetween={\blank[5*big]}] \showframe \starttext \dorecurse{5}{foot\footnote{note}} \page \dorecurse{5}{foot\showafter{note}} \page \dorecurse{5}{foot\showbefore{note}} \page \dorecurse{5}{foot\showbetween{note}} \stoptext I need to add some space between the notes, but neither before the first one nor after the last. I thought inbetween was the right option for this. According to the sample above, it doesn't seem to work (I don't see what changes with and without inbetween=\blank[5*big]). I have two questions: Is inbetween the right option to add space only between notes? If the answer is yes, I'm afraid I have hit a bug. If the answer is no, what is inbetween supposed to do? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] space between footnotes
Am 02.06.2012 um 15:25 schrieb Pablo Rodríguez: On 02/06/12 09:27, Philipp Gesang wrote: Hi Pablo! ···date: 2012-06-01, Friday···from: Pablo Rodríguez··· Hi there, I'm trying to add some space between footnotes, such as: \setupnotation[footnote][numbercommand=,inbetween=\hskip.25em] ^^ Assuming instead that you intend to put some vertical distance between the notes, you can try the “after” key: \setupnotation[footnote][ numbercommand=, after=\blank, %% hook you spacing macro in here ] Hi Philipp, many thanks for your reply and your help. This is what I intended, but it has an undesired effect, it adds some space after the last note in page (which, I'd like to avoid). Here is a sample: \definenote[showafter] \definenote[showbefore] \definenote[showbetween] \definenote[shownt] \setupnotation[footnote][numbercommand=] \setupnotation[showafter][numbercommand=,after={\blank[5*big]}] \setupnotation[showbefore][numbercommand=,before={\blank[5*big]}] \setupnotation[showbetween][numbercommand=,inbetween={\blank[5*big]}] \showframe \starttext \dorecurse{5}{foot\footnote{note}} \page \dorecurse{5}{foot\showafter{note}} \page \dorecurse{5}{foot\showbefore{note}} \page \dorecurse{5}{foot\showbetween{note}} \stoptext I need to add some space between the notes, but neither before the first one nor after the last. I thought inbetween was the right option for this. According to the sample above, it doesn't seem to work (I don't see what changes with and without inbetween=\blank[5*big]). I have two questions: Is inbetween the right option to add space only between notes? If the answer is yes, I'm afraid I have hit a bug. If the answer is no, what is inbetween supposed to do? Inbetween is the space between a description/enumeration title and content when you have the setup “alternative=top”. 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 ___
[NTG-context] generating two additional list from notes
Hi there, I have the following minimal sample: \definenote[dict] \setupnotation[dict][number=no] \starttext \chapter{First chapter} This is my dictionary\dict{dictionary: vocabulario} command\dict{command: orden} for a complex\dict{complex: complejo} text\dict{text: texto}. \chapter{Second chapter} This\dict{this: éste} is my\dict{my: mi} dictionary command for a complex. \stoptext What I try with the \dict command is a kind of in-page dictionary for the body text. But I would like to have two automatically-generated lists from the \dict command. The first list should contain all \dict entries alphabetically ordered. The second list should contain all \dict entries but grouped by page in which they occur (having a \subject{Page [number]} title) and alphabetically ordered. I don't even know what to search. Does anyone know how to generate these two additional lists? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] columnar footnotes
Am 31.03.2012 um 23:25 schrieb Pablo Rodríguez: I'm trying to get a particular footnote series in columns. The body and other footnotes and line notes have no columns. Consulting the wiki, I thought this is the right code for it: \setupcolumns[n=2] \definenote[dict] \setupnote[dict][before=\stopcolumns, after=\startcolumns] \setupnote[dict][n=2] The columns environment can only be used in the normal text. 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] columnar footnotes
On 01/04/12 09:31, Wolfgang Schuster wrote: Am 31.03.2012 um 23:25 schrieb Pablo Rodríguez: [...] \setupcolumns[n=2] \definenote[dict] \setupnote[dict][before=\stopcolumns, after=\startcolumns] \setupnote[dict][n=2] The columns environment can only be used in the normal text. Many thanks for your help, Wolfgang. I'll add this to the wiki. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] sorting footnotes alphabetically
Hi there, I read in strc-not.mkvi that footnotes can be treated as lists. And the reference manual deals in section 12.3 with sorting lists. My basic sample is the following: \definenote[dict] \setupnotation[dict][number=no] \starttext This is my dictionary\dict{dictionary: vocabulario} command\dict{command: orden} for a complex\dict{complex: complejo} text\dict{text: texto}. \stoptext What I'm trying to achieve is that the \dict footnotes are sorted alphabetically. Adding the code from sorted lists, I get the following: \definesorting[meaning][meanings] \setupsorting[meaning][criterium=all] \definenote[dict] \setupnote[dict][number=no,command=\placelistofmeanings] \setupnotation[dict][number=no,command=\meaning] \starttext This is my dictionary\dict{dictionary: vocabulario} command\dict{command: orden} for a complex\dict{complex: complejo} text\dict{text: texto}. \stoptext It compiles fine, but the footnotes aren't alphabetically sorted. Is there any way to achieve this? Many thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] sorting footnotes alphabetically
Am 01.04.2012 um 12:15 schrieb Pablo Rodríguez: Hi there, I read in strc-not.mkvi that footnotes can be treated as lists. And the reference manual deals in section 12.3 with sorting lists. My basic sample is the following: \definenote[dict] \setupnotation[dict][number=no] \starttext This is my dictionary\dict{dictionary: vocabulario} command\dict{command: orden} for a complex\dict{complex: complejo} text\dict{text: texto}. \stoptext What I'm trying to achieve is that the \dict footnotes are sorted alphabetically. Adding the code from sorted lists, I get the following: \definesorting[meaning][meanings] \setupsorting[meaning][criterium=all] \definenote[dict] \setupnote[dict][number=no,command=\placelistofmeanings] \setupnotation[dict][number=no,command=\meaning] \starttext This is my dictionary\dict{dictionary: vocabulario} command\dict{command: orden} for a complex\dict{complex: complejo} text\dict{text: texto}. \stoptext It compiles fine, but the footnotes aren't alphabetically sorted. Is there any way to achieve this? I’m sorry to disappoint you but notes can’t be sorted. 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 ___
[NTG-context] columnar footnotes
I'm trying to get a particular footnote series in columns. The body and other footnotes and line notes have no columns. Consulting the wiki, I thought this is the right code for it: \setupcolumns[n=2] \definenote[dict] \setupnote[dict][before=\stopcolumns, after=\startcolumns] \starttext \dorecurse{10}{a\footnote{b}\dict{c}} \stoptext But I get an error and the document doesn't compile. I don't know what is wrong here (although I realize that my mistake may be basic). Could anyone tell me what I am doing wrong here? Thanks for your help, 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes bychapter
Am 24.03.2012 um 17:54 schrieb Steffen Wolfrum: Am 24.03.2012 um 17:34 schrieb Wolfgang Schuster: Am 24.03.2012 um 17:29 schrieb Steffen Wolfrum: Is there meanwhile a context version that provides way=... again? What doesn’t work? \setupnotation[footnote][way=chapter] \starttext \chapter{One} text\footnote{One: first} text\footnote{One: second} \chapter{Two} text\footnote{Two: first} text\footnote{Two: second} \stoptext ah, \setupfootnotes[way=bychapter] didn't became \setupnote[footnote][way=bychapter] That would make no sense because \setupfootnotes is defined as \def\setupfootnotes{\setupnote[footnote]} which means both are the same setup. \setupnotation[footnote][way=bychapter] The footnote counter is created by \definenotation (which is called when you create a new note with \definenote) and the fore you need \setupnotation to change it. 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] footnotes bychapter
Am 24.03.2012 um 18:14 schrieb Wolfgang Schuster: Am 24.03.2012 um 17:54 schrieb Steffen Wolfrum: Am 24.03.2012 um 17:34 schrieb Wolfgang Schuster: Am 24.03.2012 um 17:29 schrieb Steffen Wolfrum: Is there meanwhile a context version that provides way=... again? What doesn’t work? \setupnotation[footnote][way=chapter] \starttext \chapter{One} text\footnote{One: first} text\footnote{One: second} \chapter{Two} text\footnote{Two: first} text\footnote{Two: second} \stoptext ah, \setupfootnotes[way=bychapter] didn't became \setupnote[footnote][way=bychapter] That would make no sense because \setupfootnotes is defined as \def\setupfootnotes{\setupnote[footnote]} which means both are the same setup. \setupnotation[footnote][way=bychapter] The footnote counter is created by \definenotation (which is called when you create a new note with \definenote) and the fore you need \setupnotation to change it. ok, interesting thanks a lot! steffen ___ 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] \note does not preserve formatting -- example
Am 24.01.2012 um 05:44 schrieb Peter Park Nelson: After updating to the current beta, I discovered that the \note macro does not format the note marker correctly. In the minimal example below, I define an item group for a paragraph-formatted list of article authors, and an affiliation note for a paragraph-formatted list of affiliations below them. (This is fairly common in academic journals; I have left out most of the text formatting.) The note marks for the third and fourth authors (Jones and Mandrell), which are created using the \note macro to reference previous affiliations, are too small and not bold. I would guess this is related to changes around line 122 of strc-not.mkiv, dealing with the handling of note attributes (see: \def\usenotestyleandcolor). \setuppapersize[letter][letter] \defineitemgroup[Authorlist] \setupitemgroup[Authorlist] [each] [text] [symbol=0, Better use “symbol=none”. margin=no, align=normal, width=-10pt, ??? distance=0pt, leftmargin=no, location=top, textdistance=big] \definenote[affiliation] [numbercommand=\ss, Don’t misuse the number command key for style settings, use the numberstyle key. 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 ___