ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Sanjoy Mahajan <sanjoy@MIT.EDU>
To: Aditya Mahajan <adityam@umich.edu>
Cc: ntg-context@ntg.nl
Subject: Re: chapter-like headings with separate numbering
Date: Sat, 06 Dec 2008 09:10:53 -0500	[thread overview]
Message-ID: <E1L8xrx-0004PB-Tn@approx.mit.edu> (raw)
In-Reply-To: Your message of "Fri, 05 Dec 2008 17:48:01 EST." <alpine.LNX.2.00.0812051744350.6425@nqv-yncgbc> (sfid-20081205_175840_269858_C7709FB0)

Thanks, that's a nice approach.  It doesn't fully pass the duck test:
The page headlines come from the chapter titles, even in the interludes.
Here is an example.

\startsetups[chheadline]
  {\ss\it Chapter \getmarking[chapternumber].\quad\getmarking[chapter]}
\stopsetups
\setupheadertexts[\setups{chheadline}][pagenumber]

\defineenumeration
	[interlude]
        [before=\page,conversion=Characters,way=bytext,list=interlude,
         text={Interlude }]

\defineenumeration
	[interludeA]
        [before=\page,conversion=Characters,way=bytext,list=interludeA,
         text=, listtext=,
         title=yes, titleleft=, titleright=]

\starttext

\title{Contents}
\placelist[chapter,enumeration:interlude,enumeration:interludeA]

\chapter{Chap 1}

\interlude{Interlude 1}

\interludeA{{Interlude 1}}

\chapter{Chap 2}

\interlude{Interlude 2}

\interludeA{{Interlude 2}}

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


  reply	other threads:[~2008-12-06 14:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25  3:08 Sanjoy Mahajan
2008-11-26  8:14 ` luigi scarso
2008-11-26 11:45   ` Sanjoy Mahajan
2008-11-26 13:43     ` Wolfgang Schuster
2008-11-29 18:39       ` Sanjoy Mahajan
2008-11-30 11:13         ` Wolfgang Schuster
2008-12-05 22:48 ` Aditya Mahajan
2008-12-06 14:10   ` Sanjoy Mahajan [this message]
2008-12-06 17:51     ` Aditya Mahajan

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=E1L8xrx-0004PB-Tn@approx.mit.edu \
    --to=sanjoy@mit.edu \
    --cc=adityam@umich.edu \
    --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).