Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
I somehow found a way. It doesn't work on my minimal example but it does in my real doc. I tested a lot of thing but I think it was thanks to the offset=none parameters For the record: ### \define[2]\MySection{ \framed[ location=top, strut=no, offset=none,

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
On 2023-02-15 08:44, Alex Leray via ntg-context wrote: \showframe \showlayout \showgrid \setuplayout[     grid=yes, ] \define[2]\MySection{\framed[     location=keep,     frame=on,     width=broad,     % height=22pt,     align=middle ]{{#1.\\#2}}} \setuphead[section][     strut=no,    

Re: [NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Rik Kabel via ntg-context
On 2023-02-15 08:44, Alex Leray via ntg-context wrote: \showframe \showlayout \showgrid \setuplayout[     grid=yes, ] \define[2]\MySection{\framed[     location=keep,     frame=on,     width=broad,     % height=22pt,     align=middle ]{{#1.\\#2}}} \setuphead[section][     strut=no,    

[NTG-context] Chapter number and titles in separate lines with grid layout

2023-02-15 Thread Alex Leray via ntg-context
Hello again, I'm having another issue: I'd like Chapter/Section number and titles in separate lines but with grid alignement. I followed that advice: https://wiki.contextgarden.net/Titles#Chapter_number_and_titles_in_separate_lines I'm having an issue though: I can't get rid of the space

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

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

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

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

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

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

Re: [NTG-context] chapter number sought

2021-05-30 Thread Hans van der Meer
Thanks. This helps. dr. Hans van der Meer > On 30 May 2021, at 13:40, Adam Reviczky wrote: > > Hi Hans, > > Does this help: > https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names > >

Re: [NTG-context] chapter number sought

2021-05-30 Thread Adam Reviczky
Hi Hans, Does this help: https://tex.stackexchange.com/questions/134474/context-part-chapter-section-and-subsection-names ? \starttext \startchapter[title={First chapter}] \structurenumber\ - \structuretitle \stopchapter \stoptext Although getmarking is probably what you're really after:

[NTG-context] chapter number sought

2021-05-30 Thread Hans van der Meer
With \pagenumber I can call up the current pagenumber and typeset it. But \chapternumber is not defined. How can I typeset the current chapternumber or even the current chapternumber.sectionnumber.subsectionnumber, for example? dr. Hans van der Meer

Re: [NTG-context] Chapter number with Luametafun

2020-08-18 Thread Wolfgang Schuster
Fabrice Couvreur schrieb am 18.08.2020 um 16:24: Hello, How to get the number of the current chapter ? \namedheadnumber{chapter} How to get the label "Chapitre" ? \labeltext{chapter} Wolfgang ___ If your

[NTG-context] Chapter number with Luametafun

2020-08-18 Thread Fabrice Couvreur
Hello, How to get the number of the current chapter ? How to get the label "Chapitre" ? Thanks for your help. Fabrice %%% Begin example \mainlanguage[fr] \setcharacterspacing [frenchpunctuation] \setuplabeltext[fr][chapter=Chapitre~] \startuseMPgraphic{fun} definecolor[name="Mycolor", s =

[NTG-context] chapter-number prefixes on figure, etc, numbers, even in unnumbered section appearing in TOC

2019-05-31 Thread Sanjoy Mahajan
Dear List, The following, it seems, is a recurring question, which I had hoped to solve by digging in the test suite -- but no luck. The problem is to have figures, list items, problems, etc. numbered with a chapter prefix (e.g. Figure 7.18) even in

Re: [NTG-context] chapter number

2018-11-06 Thread Andrea Valle
Thanks Tomas, solved! Best -a- -- Andrea Valle -- CIRMA - StudiUm Università degli Studi di Torino --> http://www.cirma.unito.it/andrea/ --> http://www.fonurgia.unito.it/andrea/ -->

Re: [NTG-context] chapter number

2018-11-06 Thread Tomas Hala
Hi Andrea, try this: \starttext \startfrontmatter \placecontent \page \chapter{Foreword} \stopfrontmatter \startbodymatter \chapter{Introduction} \stopbodymatter \startbackmatter \chapter{Something at the end} \stopbackmatter \stoptext Best wishes, Tomáš

[NTG-context] chapter number

2018-11-06 Thread Andrea Valle
Dear all, I have a simple issue I can’t solve. I have chapters in a book, and I have placed a foreword before. I’d like not to have the number in the foreword, and to start the numbering with the first chapter. I followed this

[NTG-context] Chapter number in list colored (setuplist)

2013-07-09 Thread Zenlima
Hi, I want to color the chapter number in the table of content. The attribute numbercolor does not exist in setuplist. So I tried to color the chapter number via numberstlye (numbercommand is also not working): ---8 \define[1]\listChapterColor{\color[bordeaux]{X #1}}

Re: [NTG-context] Chapter number in list colored (setuplist)

2013-07-09 Thread Aditya Mahajan
On Tue, 9 Jul 2013, Zenlima wrote: Hi, I want to color the chapter number in the table of content. The attribute numbercolor does not exist in setuplist. So I tried to color the chapter number via numberstlye (numbercommand is also not working): ---8

Re: [NTG-context] Chapter number in list colored (setuplist)

2013-07-09 Thread Wolfgang Schuster
Am 09.07.2013 um 18:08 schrieb Zenlima p...@zenlima.eu: Hi, I want to color the chapter number in the table of content. The attribute numbercolor does not exist in setuplist. So I tried to color the chapter number via numberstlye (numbercommand is also not working):

Re: [NTG-context] Chapter number in list colored (setuplist)

2013-07-09 Thread Zenlima
Am Tue, 9 Jul 2013 12:20:18 -0400 (EDT) schrieb Aditya Mahajan adit...@umich.edu: numbercolor=bordeaux I am so sorry.. I tried that too but I must have mistyped it then.. now it works :) Thanks ___ If your

Re: [NTG-context] Chapter number in list colored (setuplist)

2013-07-09 Thread Zenlima
2. You didn’t test numbercolor. You are correct: after my mistyped try'n'error I did not checked it any further as the documentation in the wiki. I updated it with that missing attribute. thanks signature.asc Description: PGP signature

[NTG-context] Chapter number in right margin?

2009-05-11 Thread Corsair
Hi all, I'm typesetting a double-sided document. And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area. So I write \def\MyChapter#1#2 {\inright{#1} #2} \setuphead [chapter] [command=\MyChapter] But it

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document.  And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area.  So I write    \def\MyChapter#1#2    {\inright{#1} #2}

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Wolfgang Schuster
Am 11.05.2009 um 14:59 schrieb Yanrui Li: On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document. And I want the chapter numbers to be in the right margin, while the chapter titles remain in the main text area. So I write

Re: [NTG-context] Chapter number in right margin?

2009-05-11 Thread Yanrui Li
On Mon, May 11, 2009 at 9:09 PM, Wolfgang Schuster schuster.wolfg...@googlemail.com wrote: Am 11.05.2009 um 14:59 schrieb Yanrui Li: On Mon, May 11, 2009 at 8:06 PM, Corsair chris.cors...@gmail.com wrote: Hi all, I'm typesetting a double-sided document.  And I want the chapter numbers to

[NTG-context] Chapter number conversion to words

2008-02-07 Thread Bart C. Wise
I would like to display chapter headings spelling out the numbers into words. For example: Chapter One Chapter Two Chapter Three etc. I thought that I could put a conversion in the setuphead function; however, it doesn't appear to be supported. So how to I do the conversion? Thanks, Bart