* How do you customize the chapter number format?
@ 2013-04-29 18:42 Lance Larsen
2013-04-29 20:31 ` Wolfgang Schuster
0 siblings, 1 reply; 2+ messages in thread
From: Lance Larsen @ 2013-04-29 18:42 UTC (permalink / raw)
To: ntg-context
I am trying to update the chapter number formatting for the chapter heading.
By default the numbering is like
1 First Chapter
1.1 First Section
I would like to change this to:
1.0 First Chapter
1.1 First Section
Adding the following command worked, except it did not change the numbering
in the table of contents:
\setuphead[chapter][numbercommand=\groupedcommand{}{.0\blank[2cm]}]
Any suggestions for how I change the numbering so that the 1.0 shows up in
the table of contents as well?
-Lance Larsen
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: How do you customize the chapter number format?
2013-04-29 18:42 How do you customize the chapter number format? Lance Larsen
@ 2013-04-29 20:31 ` Wolfgang Schuster
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2013-04-29 20:31 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 29.04.2013 um 20:42 schrieb Lance Larsen <lance.c.larsen@gmail.com>:
> I am trying to update the chapter number formatting for the chapter heading.
> By default the numbering is like
>
> 1 First Chapter
> 1.1 First Section
>
> I would like to change this to:
>
> 1.0 First Chapter
> 1.1 First Section
>
> Adding the following command worked, except it did not change the numbering
> in the table of contents:
>
> \setuphead[chapter][numbercommand=\groupedcommand{}{.0\blank[2cm]}]
>
> Any suggestions for how I change the numbering so that the 1.0 shows up in
> the table of contents as well?
\define[1]\ChapterConversion
{\convertnumber{Numbers}{#1}.0}
\defineconversion[ChapterConversion][\ChapterConversion]
\setuphead[chapter][conversion=ChapterConversion]
\starttext
\completecontent
\chapter{First Chapter}
\section{First Section}
\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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-29 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-04-29 18:42 How do you customize the chapter number format? Lance Larsen
2013-04-29 20:31 ` Wolfgang Schuster
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).