ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "B. Vogel" <bbvogel@home.nl>
To: ntg-context@ntg.nl
Subject: enumerations and definehead
Date: Sat, 8 Aug 2009 17:04:18 +0200	[thread overview]
Message-ID: <200908081704.18637.bbvogel@home.nl> (raw)
In-Reply-To: <200908081628.18288.bbvogel@home.nl>

Hi all,

How do I reset an enumeration with my own header?

See the example below.
The build-in section works and my own header fails.

Tia,

Bernard


% MKIV beta
% MTXrun | current version: 2009.08.07 11:22
% linux-32

\definehead[Mysection][section]

\setuphead[Mysection]
  [after=\nowhitespace\hairline]

\defineenumeration[example]
  [way=bysection]

\starttext

\dorecurse {3} {
  \Mysection{Mysection \recurselevel}
  \dorecurse {3} {\startexample \recurselevel \stopexample}} 
\page

\dorecurse {3} {
  \section{Section \recurselevel}
  \dorecurse {3} {\startexample \recurselevel \stopexample}} 

\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2009-08-08 15:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07  9:02 \currentdate and language deo Thomas A. Schmitz
2009-08-08 14:28 ` sectionblockenvironment not working? B. Vogel
2009-08-08 14:55   ` Wolfgang Schuster
2009-08-08 15:37     ` B. Vogel
2009-08-08 15:50       ` Wolfgang Schuster
2009-08-09 20:35     ` Hans Hagen
2009-08-08 15:04   ` B. Vogel [this message]
2009-08-11 22:37 ` \currentdate and language deo Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200908081704.18637.bbvogel@home.nl \
    --to=bbvogel@home.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).