ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Section numbering starting from zero, not one
@ 2023-02-16 16:32 Alex Leray via ntg-context
  2023-02-16 19:07 ` Alex Leray via ntg-context
  0 siblings, 1 reply; 3+ messages in thread
From: Alex Leray via ntg-context @ 2023-02-16 16:32 UTC (permalink / raw)
  To: Denis Maier via ntg-context; +Cc: Alex Leray

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-02-16 22:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 16:32 Section numbering starting from zero, not one Alex Leray via ntg-context
2023-02-16 19:07 ` Alex Leray via ntg-context
2023-02-16 22:41   ` Hans Hagen via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).