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

josephcanedo at gmail.com josephcanedo at gmail.com
Sun Oct 25 20:02:40 CET 2015


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‎, ‎2015 ‎5‎:‎32‎ ‎PM
To: ntg-context at ntg.nl





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 future reference: please make minimal examples when asking a question.)

Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context at 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
___________________________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20151025/18048f9e/attachment.html>


More information about the ntg-context mailing list