ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* structure level limitation for \fullheadnumber
@ 2013-10-17 18:00 Zenlima
  2013-10-17 18:10 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Zenlima @ 2013-10-17 18:00 UTC (permalink / raw)
  To: ConTeXt

Hallo,

I added a level (without numbering) to the existing sections; that works
fine. But I also need the ability to "limit" the \fullheadnumber
function, so that I get a correct numbering.

How can I "limit" \fullheadnumber to level 1-7, so that I get the needed
"1.1" in the second call in the following example?

Thanks, H.

---8<---------------------

\definesection[section-8]
\definehead[paragraphHead][][alternative=paragraphHead,number=no,section=section-8] 

\starttext

\chapter{bla}
\section{bla}

I need: 1.1 - I get: \fullheadnumber

\paragraphHead{bla}

I need: 1.1 - I get: \fullheadnumber

\section{bla}

I need 1.2 - I get: \fullheadnumber

\stoptext
___________________________________________________________________________________
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: structure level limitation for \fullheadnumber
  2013-10-17 18:00 structure level limitation for \fullheadnumber Zenlima
@ 2013-10-17 18:10 ` Wolfgang Schuster
  2013-10-17 19:00   ` Zenlima
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2013-10-17 18:10 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.10.2013 um 20:00 schrieb Zenlima <post@zenlima.eu>:

> Hallo,
> 
> I added a level (without numbering) to the existing sections; that works
> fine. But I also need the ability to "limit" the \fullheadnumber
> function, so that I get a correct numbering.
> 
> How can I "limit" \fullheadnumber to level 1-7, so that I get the needed
> "1.1" in the second call in the following example?
> 
> Thanks, H.
> 
> ---8<---------------------
> 
> \definesection[section-8]
> \definehead[paragraphHead][][alternative=paragraphHead,number=no,section=section-8] 

You want a number for this heading but you disable it with “number=no”.

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: structure level limitation for \fullheadnumber
  2013-10-17 18:10 ` Wolfgang Schuster
@ 2013-10-17 19:00   ` Zenlima
  2013-10-17 19:21     ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Zenlima @ 2013-10-17 19:00 UTC (permalink / raw)
  To: ntg-context


> You want a number for this heading but you disable it with
> “number=no”.


I want that the heading of paragraphHead[level 8] is without number, but
I need the number[level 1-7] to use it in referencing (I need it for the
pararef module).


1. chapter -> [1.0.0.0.0.0.0.0]     \unknownfunction -> 1
1.1 section -> [1.1.0.0.0.0.0.0]    \unknownfunction -> 1.1
paragraphHead -> [1.1.0.0.0.0.0.1]  \unknownfunction -> 1.1
1.2. section -> [1.2.0.0.0.0.0.0]   \unknownfunction -> 1.2


In three cases the needed function \unknownfunction similars
\fullheadnumber but because in the cases of level-8 > 0 (like third
line above) I need a function line \fullheadnumber[max-level-7]. My TeX
knowledge is not enough to solve that, so I am happy for any help :)

H.
___________________________________________________________________________________
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: structure level limitation for \fullheadnumber
  2013-10-17 19:00   ` Zenlima
@ 2013-10-17 19:21     ` Wolfgang Schuster
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2013-10-17 19:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 17.10.2013 um 21:00 schrieb Zenlima <post@zenlima.eu>:

> 
>> You want a number for this heading but you disable it with
>> “number=no”.
> 
> 
> I want that the heading of paragraphHead[level 8] is without number, but
> I need the number[level 1-7] to use it in referencing (I need it for the
> pararef module).
> 
> 
> 1. chapter -> [1.0.0.0.0.0.0.0]     \unknownfunction -> 1
> 1.1 section -> [1.1.0.0.0.0.0.0]    \unknownfunction -> 1.1
> paragraphHead -> [1.1.0.0.0.0.0.1]  \unknownfunction -> 1.1
> 1.2. section -> [1.2.0.0.0.0.0.0]   \unknownfunction -> 1.2
> 
> 
> In three cases the needed function \unknownfunction similars
> \fullheadnumber but because in the cases of level-8 > 0 (like third
> line above) I need a function line \fullheadnumber[max-level-7]. My TeX
> knowledge is not enough to solve that, so I am happy for any help :)

\starttext

\chapter{Chapter}

“\placerawheadnumber[chapter]” \quad “\placerawheadnumber[section]”

“\namedheadnumber{chapter}” \quad “\namedheadnumber{section}”

\section{Section}

“\placerawheadnumber[chapter]” \quad “\placerawheadnumber[section]”

“\namedheadnumber{chapter}” \quad “\namedheadnumber{section}”

\stoptext

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

end of thread, other threads:[~2013-10-17 19:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-17 18:00 structure level limitation for \fullheadnumber Zenlima
2013-10-17 18:10 ` Wolfgang Schuster
2013-10-17 19:00   ` Zenlima
2013-10-17 19:21     ` Wolfgang Schuster

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).