Re: [NTG-context] Chapter number retrieval
On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote: > I would like to typeset the chapter title without number in the text. — > However I still would need to retrieve the number for a calculation in a > MetaFun graphic. I assume, that even though this number is not typeset, it is > kept in the background. How to retrieve it? > Hi, On Tuesday, March 22, 2022 2:17 AM Willi Egger via ntg-context wrote: > > I would like to typeset the chapter title without number in the text. — > However I still would need to retrieve the number for a calculation in a > MetaFun graphic. I assume, that even though this number is not typeset, it is > kept in the background. How to retrieve it? > Hi, You can define a custom command for the chapter, where the first argument (i.e, the number) is 'ignored' – \define[2]\ChapterTitle{#2} \setuphead[chapter][command=\ChapterTitle] It will still appeared as numbered in any lists (ToC, etc). Also, it can be accessed using \headnumber[...][...]. An example graphic – \startuseMPgraphic {graphic:chapter} picture cg; cg := outlinetext.d ("\ssbfd \headnumber[chapter]") (withcolor transparent(1,0.5,blue)); fill boundingcircle cg withcolor transparent(1, 0.5, lightgray); draw cg; \stopuseMPgraphic Using \headnumber[..][..] any 'conversion' applied to the chapter number (romannumerals, words, etc) are also preserved. Best, Sreeram ___ 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] Chapter number retrieval
Hi, There is a good overview of accessible variables at: https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names Maybe you want something like this? \starttext \setuphead[chapter][number=no] \startchapter[title={My Chapter}] Hello world! \startMPcode label("\currentstructurelistnumber\ \currentstructuretitle", origin); draw fullcircle scaled 3cm; \stopMPcode \stopchapter \stoptext Adam On Mon, Mar 21, 2022 at 11:46 PM jbf via ntg-context wrote: > Willi, offlist: Have to admit I didn't actually try your own comment, > but if it doesn't work, I'll be interested in the eventual answer. I > recently had to do something similar for the TOC, and Hraban pointed me > to \currentlistentrynumber. There probably has to be a command along > those lines (which led me to your 2011 comment, sorry ) for non-list > retrieval. \structurenumber? \currentstructurenumber? Something along > those lines? There seem to be a number of these but as yet undocumented > as far as I can see. > > Julian > > On 22/3/22 10:19, Willi Egger via ntg-context wrote: > > Hi Julian, > > > > :-) I am confronted with my own comments :-) > > > > However, this is precisely what I am using in my attempt to get this > hidden number. But no it does not appear… > > > > Thank you! > > Willi > > > >> On 21 Mar 2022, at 22:33, jbf via ntg-context > wrote: > >> > >> Willi, > >> > >> I see a comment by yourself back in 2011 at > https://wiki.contextgarden.net/Last_Head_Number > >> > >> I wonder if this helps? > >> > >> Julian > >> > >> On 22/3/22 07:47, Willi Egger via ntg-context wrote: > >>> Hello everybody! > >>> > >>> > >>> I would like to typeset the chapter title without number in the text. > — However I still would need to retrieve the number for a calculation in a > MetaFun graphic. I assume, that even though this number is not typeset, it > is kept in the background. How to retrieve it? > >>> > >>> Kind regards > >>> > >>> Willi > >>> > ___ > >>> 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 > >> > ___ > > > ___ > > 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 > > ___ > ___ 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] Chapter number retrieval
Willi, offlist: Have to admit I didn't actually try your own comment, but if it doesn't work, I'll be interested in the eventual answer. I recently had to do something similar for the TOC, and Hraban pointed me to \currentlistentrynumber. There probably has to be a command along those lines (which led me to your 2011 comment, sorry ) for non-list retrieval. \structurenumber? \currentstructurenumber? Something along those lines? There seem to be a number of these but as yet undocumented as far as I can see. Julian On 22/3/22 10:19, Willi Egger via ntg-context wrote: Hi Julian, :-) I am confronted with my own comments :-) However, this is precisely what I am using in my attempt to get this hidden number. But no it does not appear… Thank you! Willi On 21 Mar 2022, at 22:33, jbf via ntg-context wrote: Willi, I see a comment by yourself back in 2011 at https://wiki.contextgarden.net/Last_Head_Number I wonder if this helps? Julian On 22/3/22 07:47, Willi Egger via ntg-context wrote: Hello everybody! I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind regards Willi ___ 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 ___ ___ 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] Chapter number retrieval
Hi Julian, :-) I am confronted with my own comments :-) However, this is precisely what I am using in my attempt to get this hidden number. But no it does not appear… Thank you! Willi > On 21 Mar 2022, at 22:33, jbf via ntg-context wrote: > > Willi, > > I see a comment by yourself back in 2011 at > https://wiki.contextgarden.net/Last_Head_Number > > I wonder if this helps? > > Julian > > On 22/3/22 07:47, Willi Egger via ntg-context wrote: >> Hello everybody! >> >> >> I would like to typeset the chapter title without number in the text. — >> However I still would need to retrieve the number for a calculation in a >> MetaFun graphic. I assume, that even though this number is not typeset, it >> is kept in the background. How to retrieve it? >> >> Kind regards >> >> Willi >> ___ >> 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 > ___ ___ 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] Chapter number retrieval
Willi, I see a comment by yourself back in 2011 at https://wiki.contextgarden.net/Last_Head_Number I wonder if this helps? Julian On 22/3/22 07:47, Willi Egger via ntg-context wrote: Hello everybody! I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind regards Willi ___ 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] Chapter number retrieval
Hello everybody! I would like to typeset the chapter title without number in the text. — However I still would need to retrieve the number for a calculation in a MetaFun graphic. I assume, that even though this number is not typeset, it is kept in the background. How to retrieve it? Kind regards Willi ___ 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 ___
[NTG-context] Small bug in publ-imp-aps.mkvi
Hi everyone, Just letting you know that there is an extra . (full stop) on the end of lines 732 and 734 of publ-imp-aps.mkvi which causes references to be typeset like "p.. 417" and "pp.. 417--418". Thanks, Jack ___ 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] Metafun, difficulty with graphical element in the margin
Hello Wolfgang, thank you so much for your time and investigation. — Indeed your solution works fine! I use the latest version from March 2022. I use \startbodymatter cum suis. Lieber Gruß Willi > On 20 Mar 2022, at 17:21, Wolfgang Schuster via ntg-context > wrote: > > Willi Egger via ntg-context schrieb am 20.03.2022 um 17:05: >> Hoi Wolfgang, >> >> I tested both variants (bodymatter and bodypart. The compilation runs >> through, however without the thumb-picture in the margin and the metafun >> error is in the log. > > 1. Do you use \startfrontmatter and \startbodymatter in your document to > create blocks? > > 2. Is you installation up-to-date? > > Attached is a slightly modified version of your example, the only thing which > has to be local to the bodypart is the background setting to enable the thumb > pictures. > > 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 > ___ ___ 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 ___