ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* currentheadnumber / doif.. problem
@ 2007-09-10 11:09 Peter Schorsch
  2007-09-12 13:25 ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Peter Schorsch @ 2007-09-10 11:09 UTC (permalink / raw)
  To: ntg-context

Hi,

I tried to get the full present heading-number. If I am using currentnumber
the result is only the last part of the heading-number. So I tried do
implement a function like this:

\def\presentheadnumber%
        {\doifelse{\headnumber[section]}{}%
                {\headnumber[chapter]}%
                {\headnumber[section]}%
        }

but always the else-part is executed. I also tried to use doifemptyelse,
doifnumber etc.. but as soon i am using headnumber[...] only the else-part
will be executed. Can anyone help me with this problem? Or am I going a
complete wrong way?

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


^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <mailman.1.1189504801.15983.ntg-context@ntg.nl>]
* currentheadnumber / doif.. problem
@ 2007-09-09 23:21 Peter Schorsch
  0 siblings, 0 replies; 8+ messages in thread
From: Peter Schorsch @ 2007-09-09 23:21 UTC (permalink / raw)
  To: ntg-context

Hi,

I tried to get the full present heading-number. If I am using currentnumber
I am getting back only the last part of the heading-number. So I tried do
implement a function like this:

\def\presentheadnumber%
        {\doifelse{\headnumber[section]}{}%
                {\headnumber[chapter]}%
                {\headnumber[section]}%
        }

but always the else-part is executed. I also tried to use doifemptyelse,
doifnumber etc.. but as soon i am using headnumber[...] only the else-part
will be executed. Can anyone help me with this problem? Or am I going a
complete wrong way?

Thanks

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-10-18 19:46 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-10 11:09 currentheadnumber / doif.. problem Peter Schorsch
2007-09-12 13:25 ` Aditya Mahajan
2007-09-25 19:42   ` Peter Schorsch
2007-09-26  0:09     ` Aditya Mahajan
2007-10-15 22:01       ` Peter Schorsch
2007-10-18 19:46         ` Peter Schorsch
     [not found] <mailman.1.1189504801.15983.ntg-context@ntg.nl>
2007-09-12  8:09 ` Duncan Hothersall
  -- strict thread matches above, loose matches on Subject: below --
2007-09-09 23:21 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).