Re: [NTG-context] Subject marking in MkIV

2010-11-10 Thread Hans Hagen

On 10-11-2010 6:50, Aditya Mahajan wrote:

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?


waiting for a fix

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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
___


[NTG-context] Subject marking in MkIV

2010-11-09 Thread Aditya Mahajan

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
___