Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread Alan BRASLAU
This works only because ConTeXt has some sanity checks, so a new \startsubsection will implicitly stop an un-stopped subsection. But it is bad practice to count on this, for I am sure that there are some situations where something might fail. The \startXXX ... \stopXXX syntax is generally better t

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Thanks a lot, very concise. I was wondering if the \stopchapter (or more generally \stop) were needed ? In my document I write in some instances: \startsubsection Bla bla \startsubsection etc …. and it seems to work fine (but perhaps pure luck or is the \startsubsection implictly end

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Yes, that’s correct. I guess command= attribute kind of replaces the “default” processing for the head ? Because when I use it the “align = center” does not seem to be taken in account. Thanks a lot Joseph Sent from Windows Mail From: Thomas A. Schmitz Sent: ‎Sunday‎, ‎October‎ ‎25‎

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread Alan BRASLAU
Easier: \setuplabeltext [chapter=Chapitre ] % with trailing space; blank by default \starttext \startchapter Some text. \stopchapter \startchapter Some more text. \stopchapter \stoptext Alan On Sun, 25 Oct 2015 17:32:30 +0100 "Thomas A. Schmitz" wrote: > Is that what you're look

Re: [NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread Thomas A. Schmitz
Is that what you're looking for? \define[2]\MyChapterTitle% {#2: #1} \setuphead[chapter] [command=\MyChapterTitle] \starttext \startchapter [title=Some Title] Some text. \stoptext When you define a command, #1 is your chapter/section/whatever number, #2 is your title. (For fut

[NTG-context] Question on how to simple numbered sections or other headings

2015-10-25 Thread josephcanedo
Hello all, I have an another newbie ConTeXt user question (very powerful but the learning curve is a bit steep at least for me 😊). Sorry if this is documented in the Wiki but could not find an example to do this. I would like to have text splitted in chapters (or sections) with some title,