* current head title and current number
@ 2010-08-22 18:35 Peter Schorsch
2010-08-22 18:48 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: Peter Schorsch @ 2010-08-22 18:35 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: current head title and current number
2010-08-22 18:35 current head title and current number Peter Schorsch
@ 2010-08-22 18:48 ` Wolfgang Schuster
2010-08-23 9:06 ` Peter Schorsch
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2010-08-22 18:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: current head title and current number
2010-08-22 18:48 ` Wolfgang Schuster
@ 2010-08-23 9:06 ` Peter Schorsch
2010-08-23 12:46 ` Peter Schorsch
0 siblings, 1 reply; 4+ messages in thread
From: Peter Schorsch @ 2010-08-23 9:06 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: current head title and current number
2010-08-23 9:06 ` Peter Schorsch
@ 2010-08-23 12:46 ` Peter Schorsch
0 siblings, 0 replies; 4+ messages in thread
From: Peter Schorsch @ 2010-08-23 12:46 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-08-23 12:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-22 18:35 current head title and current number Peter Schorsch
2010-08-22 18:48 ` Wolfgang Schuster
2010-08-23 9:06 ` Peter Schorsch
2010-08-23 12:46 ` Peter Schorsch
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).