ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* bug in \headnumber[section] in LMTX?
@ 2021-03-07  9:49 Pablo Rodriguez
  2021-03-07 12:21 ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Pablo Rodriguez @ 2021-03-07  9:49 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

  \starttext
    \section{Section}
      \currentheadnumber\\
      \headnumbercontent\\
      \headnumber[section]
  \stoptext

In LMTX, \headnumber[section] triggers an error message about missing
number.

BTW, \currentheadnumber outputs 0 in both MkIV and LMTX. I think this
may be a bug.

Could anyone confirm both issues?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \headnumber[section] in LMTX?
  2021-03-07  9:49 bug in \headnumber[section] in LMTX? Pablo Rodriguez
@ 2021-03-07 12:21 ` Wolfgang Schuster
  2021-03-07 14:32   ` Pablo Rodriguez
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2021-03-07 12:21 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

Pablo Rodriguez schrieb am 07.03.2021 um 10:49:
> Dear list,
> 
> I have the following sample:
> 
>    \starttext
>      \section{Section}
>        \currentheadnumber\\

You need \determineheadnumber[section] before you can use 
\currentheadnumber.

>        \headnumbercontent\\

You can use \headnumbercontent only when you create a new section layout 
with \defineheadalternative.

>        \headnumber[section]

It's a bug.

>    \stoptext
> 
> In LMTX, \headnumber[section] triggers an error message about missing
> number.
> 
> BTW, \currentheadnumber outputs 0 in both MkIV and LMTX. I think this
> may be a bug.
> 
> Could anyone confirm both issues?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: bug in \headnumber[section] in LMTX?
  2021-03-07 12:21 ` Wolfgang Schuster
@ 2021-03-07 14:32   ` Pablo Rodriguez
  0 siblings, 0 replies; 3+ messages in thread
From: Pablo Rodriguez @ 2021-03-07 14:32 UTC (permalink / raw)
  To: ntg-context

On 3/7/21 1:21 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 07.03.2021 um 10:49:
>> Dear list,
>>
>> I have the following sample:
>>
>>    \starttext
>>      \section{Section}
>>        \currentheadnumber\\
>
> You need \determineheadnumber[section] before you can use
> \currentheadnumber.

Many thanks for your reply, Wolfgang.

I didn’t know that, but it makes sense now.

>>        \headnumbercontent\\
>
> You can use \headnumbercontent only when you create a new section layout
> with \defineheadalternative.

So, I didn’t make any sense in my sample.

Many thanks for your help again,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2021-03-07 14:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-07  9:49 bug in \headnumber[section] in LMTX? Pablo Rodriguez
2021-03-07 12:21 ` Wolfgang Schuster
2021-03-07 14:32   ` Pablo Rodriguez

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