[NTG-context] Section numbering does not work
Hi Section numbering does not work until I remove \startbackmatter \stopbackmatter. I had a longer text file and I stripped it down until I found this? Greets Oliver Running freshly installed context ARM64 on m1 and updated it via sh install.sh on ARM64 macos 14.3.1: context --version mtx-context | ConTeXt Process Management 1.05 mtx-context | mtx-context | main context file: /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2024.01.24 22:39 mtx-context | main context file: /Applications/ConTeXtStandalone/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2024.01.24 22:39 -- Stripped down MWE: \setuppapersize[A4] [A4] \starttext \completecontent[criterium=all] % ToC \page \chapter{CHAP 1} TEXT \startbackmatter \startchapter[title=Literature] \placelistofpublications \stopchapter \stopbackmatter \stoptext ___ 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] Section numbering starting from zero, not one
On 2/16/2023 8:07 PM, Alex Leray via ntg-context wrote: Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero] \starttext \startsection[title={Section zero}]foo\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise you can often find hints in the test suite (many small files) Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ### Thank you, Alex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Section numbering starting from zero, not one
Answering my own question… this fits my needs: ### \defineconversion[romannumeralszero][0, I, II, III, IV, V, VI, VII, VIII, IX, X, XI, XII, XIII, XIV, XV, XVI, XVII, XIII, XIX, XX, XXI] \setuphead[section][conversion=romannumeralszero] \starttext \startsection[title={Section zero}]foo\stopsection \startsection[title={Section 1}]bar\stopsection \stoptext ### Sorry for the noise Le 16/02/23 à 17:32, Alex Leray via ntg-context a écrit : Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ### Thank you, Alex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___ -- Alexandre Leray +32 487 947 030 Avez-vous pensé à (vous) offrir Médor ? https://medor.coop/ideescadeau ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Section numbering starting from zero, not one
Hello, I'd like to have roman numerals prefixed sections, but starting from Zero and not One (even if I know that roman numerals don't have a sign for 0). Is there a way to achieve this? My code looks like that at the moment: ### \setuphead[section][conversion=Romannumerals] \starttext \setupheadnumber[section] [-1] \startsection[title={Section zero}]\stopsection \startsection[title={Section one}]\stopsection \stoptext ### Thank you, Alex ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Section numbering in MkIV
Am 10.08.2011 um 10:47 schrieb Jean-Philippe Rey: > Is there a documentation on these new commands and options? I think only in the list archive. > I couldn't find anything on the wiki. Especially, What does the third > parameter of \definestructureconversionset mean? It’s a default value which is used for headings which aren’t set within the second argument, e.g. \subsubsubsection and below. 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] Section numbering in MkIV
Le 9 août 2011 à 20:41, Wolfgang Schuster a écrit : > > Am 09.08.2011 um 20:29 schrieb Jean-Philippe Rey: > >> Hi everybody, >> >> I need to use the following numbering scheme for the different section >> levels. >> >> I Chapter >> I.A Section >> I.A.1 Sub-section >> a Sub-sub-section >> > > > \definestructureconversionset[jean][numbers,Romannumerals,Character,numbers,character][numbers] > > \setuphead[sectionconversionset=jean] > \setuphead[subsubsection][sectionsegments=subsubsection] > > \starttext > \chapter{Chapter} > \section{Section} > \subsection{Subsection} > \subsubsection{Subsubsection} > \stoptext With \setupheads[sectionconversionset=jean] everything works as expected. Thank you very much. Is there a documentation on these new commands and options? I couldn't find anything on the wiki. Especially, What does the third parameter of \definestructureconversionset mean? -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France ___ 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] Section numbering in MkIV
Am 09.08.2011 um 20:29 schrieb Jean-Philippe Rey: > Hi everybody, > > I need to use the following numbering scheme for the different section levels. > > I Chapter > I.A Section > I.A.1 Sub-section > a Sub-sub-section > > No problem with MkII, the following example gives the desired result. > > \setupsection[section-2][conversion=Romannumerals] > \setupsection[section-3][conversion=Character] > \setupsection[section-4][conversion=numbers] > \setupsection[section-5][conversion=character,previousnumber=no] > > \starttext > \chapter{Chapter} > \section{Section} > \subsection{Sub-section} > \subsubsection{Sub-sub-section} > > Paragraph. > \stoptext > > > The same file with MkIV (ver: 2011.05.18 18:04 MKIV) gives > > I Chapter > A.A Section > A.A.A Sub-section > A.A.A.A Sub-sub-section > > > What am I doing wrong? \definestructureconversionset[jean][numbers,Romannumerals,Character,numbers,character][numbers] \setuphead[sectionconversionset=jean] \setuphead[subsubsection][sectionsegments=subsubsection] \starttext \chapter{Chapter} \section{Section} \subsection{Subsection} \subsubsection{Subsubsection} \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] Section numbering in MkIV
Hi everybody, I need to use the following numbering scheme for the different section levels. I Chapter I.A Section I.A.1 Sub-section a Sub-sub-section No problem with MkII, the following example gives the desired result. \setupsection[section-2][conversion=Romannumerals] \setupsection[section-3][conversion=Character] \setupsection[section-4][conversion=numbers] \setupsection[section-5][conversion=character,previousnumber=no] \starttext \chapter{Chapter} \section{Section} \subsection{Sub-section} \subsubsection{Sub-sub-section} Paragraph. \stoptext The same file with MkIV (ver: 2011.05.18 18:04 MKIV) gives I Chapter A.A Section A.A.A Sub-section A.A.A.A Sub-sub-section What am I doing wrong? -- Jean-Philippe Rey Professeur - École Centrale Paris jean-philippe@ecp.fr 92295 Châtenay-Malabry Cedex - France ___ 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] section numbering problem with minimals
There seems to be a section numbering problem using the minimals (mkiv); I do not know about mkii as it is still broken! Alan Minimal example \starttext \section{first section} \subsection{first subsection of first section} \subsection{second subsection of first section} \section{second section} \subsection{first subsection of second section} \subsection{second subsection of second section} \stoptext 1 first section 1 first subsection of first section 1 second subsection of first section 2 second section 2 first subsection of second section 2 second subsection of second section ___ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Section Numbering
<--- On Feb 5, Taco Hoekwater wrote ---> > Aditya Mahajan wrote: >> Well this should be very easy to do in context, but I can not seem to >> find the right switches. For a document that I am writing, I want >> section and subsection numbers to display as follows >> >> A. Section 1 >> A-1 Section 1, subsection 1 >> >> B. Section 2 >> >> and so on. What is the magic command? > > This will give A, B etc. section numbers. I do not know about the rest > > \setupsection > [section-3] > [bodypartconversion=Character] > Thanks a lot. This gives me A, B, etc. I added \setuphead[subsection] [separator=-] to get a dash between the section number and subsection. In the context manual, separator is not documented in \setuphead but rather in \setupheads. I just tried it, crossed my fingers and it worked :) Thanks, Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Section Numbering
Aditya Mahajan wrote: > Well this should be very easy to do in context, but I can not seem to > find the right switches. For a document that I am writing, I want > section and subsection numbers to display as follows > > A. Section 1 > A-1 Section 1, subsection 1 > > B. Section 2 > > and so on. What is the magic command? This will give A, B etc. section numbers. I do not know about the rest \setupsection [section-3] [bodypartconversion=Character] Cheers, Taco ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Section Numbering
Well this should be very easy to do in context, but I can not seem to find the right switches. For a document that I am writing, I want section and subsection numbers to display as follows A. Section 1 A-1 Section 1, subsection 1 B. Section 2 and so on. What is the magic command? Aditya -- Aditya Mahajan, EECS Systems, University of Michigan http://www.eecs.umich.edu/~adityam || Ph: 7342624008 ___ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context