ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Subject marking in MkIV
Date: Wed, 10 Nov 2010 00:50:51 -0500 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.01.1011100033180.21730@ybpnyubfg.ybpnyqbznva> (raw)

Hi

I was trying to answer a question on tex.stackexchange 
(http://tex.stackexchange.com/questions/5166/) when I noticed that marking 
does not work the same way in MkIV as it did in MkII. Consider the 
following minimal example:

\startsetups footer
   \getmarking[subject][first]\space - \getmarking[subject][last]\space - 
\pagenumber
\stopsetups

\setupfootertexts[][\setups{footer}]

\starttext
\subject{One}  \input knuth
\subject{Two}  \input knuth
\subject{Three}\input knuth
\subject{Four} \input knuth
\stoptext

In MkII I get "One - Three - 1" in the footer of the first page. In MkIV, 
the subject markings are missing. I think that the reason is that for non 
numbered heads, section key is not set in \definestructurehead, so no 
marking gets defined for them.

What is the easiest way to enable subject marking in MkIV?

I am using an old beta from 2010.10.14 but I do not think that anything 
this fundamental has changed in the last month.

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


             reply	other threads:[~2010-11-10  5:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-10  5:50 Aditya Mahajan [this message]
2010-11-10 14:35 ` 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=alpine.LNX.2.01.1011100033180.21730@ybpnyubfg.ybpnyqbznva \
    --to=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).