Re: [NTG-context] current head title and current number

2010-08-23 Thread Peter Schorsch
Thanks Wolfgang, that helped :-)

Only one additional question occured with that solution:

I am trying to use unnumbered chapters/sections and recognized that 
\fullstructureheadnumber gives the number of the chapter/section before 
instead of giving back and empty string:

\chapter{abc}  \fullstructureheadnumber - 1
\chapter{abc}  \fullstructureheadnumber - 2
\title{abc}  \fullstructureheadnumber - 2 (instead of an empty string)
\chapter{abc}  \fullstructureheadnumber - 3

(\placeheadnumber only returns (chapter and title) an empty string)

Is there a way to solve this?


___
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
___


Re: [NTG-context] current head title and current number

2010-08-23 Thread Peter Schorsch
I figured out that \fullstructureheadnumber returns inside a backmatter nil. 
So it works for my own needs.

I do not know if the reported return behavior inside a bodymatter or 
appendices is correct. But I leave this discussion to the context devs. 

Anyways @devs: Thanks for your work! Context became real cool stuff!



___
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] current head title and current number

2010-08-22 Thread Peter Schorsch
Hi,

I need to get the current *section/chapter title and number. I figured out 
that \fullstructureheadnumber gives the current number. But I can not figure 
out what gives the current head title.

In strc-sec.mkiv I found this comment:

   \def\currentheadtext{obsolete, use marks}

Is this a hint to use getmarking? I tried 

   \getmarking[current]
   \getmarking[currentsection]
   \getmarking[currenthead]

without success. Does anyone know how to access the current title?



___
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
___


Re: [NTG-context] current head title and current number

2010-08-22 Thread Wolfgang Schuster

 Am 22.08.10 20:35, schrieb Peter Schorsch:

Hi,

I need to get the current *section/chapter title and number. I figured out
that \fullstructureheadnumber gives the current number. But I can not figure
out what gives the current head title.


\fullstructureheadtitle

There are also the two commands

- \placeheadtext and
- \placeheadnumber

Wolfgang

___
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
___