Re: [NTG-context] Chapter number retrieval

2022-03-23 Thread Willi Egger via ntg-context
Hello Adam, What I am actually using (at least basically) is the code given in the second example on the wiki. So this moving graphic is not the problem. The problem lays in the fact, that I need the chapter number for calculating the position of the graphic along the outer edge of the page. —

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Adam Reviczky via ntg-context
Hi Willi, You could also access the number by using the \getmarking[chapternumber][current]. I think you have used a similar approach in the https://wiki.contextgarden.net/Thumb_index. Adam On Tue, Mar 22, 2022 at 11:15 PM Willi Egger via ntg-context < ntg-context@ntg.nl> wrote: > Hello Adam! >

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Adam! Many thanks for your solution. — It works very well in your example and also in an extended version with \startfrontmatter..\stopfrontmatter \startbodymatter…\stopbodymatter. — Unfortunately It does not work to my wish in the actual setup of my book. — I am using now the solution pr

Re: [NTG-context] Chapter number retrieval

2022-03-22 Thread Willi Egger via ntg-context
Hello Sreeram! What a nice and simple solution. After fiddling a bit I got it working also in my environment for the book! — Thank you so much for the support. Kind regrards Willi > On 22 Mar 2022, at 03:29, śrīrāma via ntg-context wrote: > > On Tuesday, March 22, 2022 2:17 AM Willi Egger vi

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread śrīrāma via ntg-context
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 i

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Adam Reviczky via ntg-context
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 labe

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
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 (wh

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
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

Re: [NTG-context] Chapter number retrieval

2022-03-21 Thread jbf via ntg-context
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

[NTG-context] Chapter number retrieval

2022-03-21 Thread Willi Egger via ntg-context
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 rega