Re: [NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-19 Thread Hans Hagen via ntg-context

On 1/19/2022 6:29 PM, Rik Kabel wrote:

This is still (or perhaps once again) a problem using the latest MkIV 
(context --luatex).

not twice a day upload for something like that -)

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Font scaling via sa in LMTX

2022-01-19 Thread Hans Hagen via ntg-context

On 1/19/2022 6:24 PM, Rik Kabel wrote:

On 2021-12-01 10:40, Hans Hagen wrote:

On 11/30/2021 9:36 PM, Rik Kabel via ntg-context wrote:

Hello list,

It seems that font scaling to a letter is not working consistently in 
LMTX.


This example:

    \definefont[TitleA][Sans sa a]
    \definefont[TitleAB][Sansbold sa a]
    \starttext
    {\ssa This is ssa \TitleA and this is TitleA}\par
    {\ssbf This is ssbf \TitleAB and this is TitleAB}\par
    \contextbanner
    \stoptext

Produces different relevant output with each engine.

I suppose one could use numeric values instead of defined font size 
letters as a work-around, but that means lack of coordination with 
custom sizes in \definebodyfontenvironment.


fixed in the next upload (which is a bit experimental in the sense 
that some low level consistency renaming happened which always has the 
danger of disabling some feature)


Hans


This is still a problem using yesterday's upload.

I'll check it but you anyway need SansBold (B)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-01-19 Thread Rik Kabel via ntg-context

This is still a problem with the current standalone.

   \definelabel[X][text=]
   \startTEXpage[offset=1cm]
  \X\X[a]\X[b]\X\par
  \convertnumber{R}{\ref[number][a]}
  \convertnumber{G}{\ref[number][b]}
   \stopTEXpage

   %% The above example fails to compile when there is no tuc file,
   %%    complaining of a missing number in line 4. When lines 4
   %%    and 5 are removed and the file is compiled, producing
   %%    a .tuc file, and then they are restored, the example
   %%    compiles without error. The effect of having or not having
   %%    an associated .tuc file does seem a bit odd.

Surely there is a way to get the number from a label reference that can 
then be converted to a numeral of choice.


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


Re: [NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-19 Thread Adam Reviczky via ntg-context
Hi Rik,

In the interim you can change one more occurrence of "symbolcolor" in line
317:
https://github.com/reviczky/context-mirror/commit/f4bfe0baaeb4bdcc6b8098de6ef1f8c96f928d07

Adam

On Wed, Jan 19, 2022 at 5:31 PM Rik Kabel via ntg-context <
ntg-context@ntg.nl> wrote:

> On 2022-01-15 14:29, Hans Hagen wrote:
> > On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
> >> MWE:
> >>
> >> \definelabel[xx][headcolor=red]
> >> \starttext
> >> ab\xx
> >> \stoptext
> >>
> >> fails, reporting in log:
> >>
> >> tex error   > tex error on line 4 in file G:/Desktop/mwe.tex: !
> >> Undefined control sequence
> >>
> >>  \c!symbolcolor
> >>
> >> \labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1
> >> \endcsname \??labels \currentlabel :#1\else \expandafter
> >> \dolabelparentparameter \csname \??labels \currentlabel :\s!parent
> >> \endcsname {#1}\fi \endcsname
> >> \useconstructionstyleandcolor ...pty \else
> >> \dousecurrentstyleparameter \fi \edef \currentcolorparameter
> >> {\labelparameter {#2}
> >>
> >> MkIV only, no problem in LMTX.
> > replace by \c!numbercolor and remake the format
> >
> >
> This is still (or perhaps once again) a problem using the latest MkIV
> (context --luatex).
>
> --
> Rik
>
>
> ___
> 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
>
> ___
>
___
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
___


Re: [NTG-context] undefined control sequence c!symbolcolor in MkIV, was new upload

2022-01-19 Thread Rik Kabel via ntg-context

On 2022-01-15 14:29, Hans Hagen wrote:

On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:

MWE:

    \definelabel[xx][headcolor=red]
    \starttext
    ab\xx
    \stoptext

fails, reporting in log:

    tex error   > tex error on line 4 in file G:/Desktop/mwe.tex: !
    Undefined control sequence

     \c!symbolcolor

    \labelparameter #1->\csname \ifcsname \??labels \currentlabel :#1
    \endcsname \??labels \currentlabel :#1\else \expandafter
    \dolabelparentparameter \csname \??labels \currentlabel :\s!parent
    \endcsname {#1}\fi \endcsname
    \useconstructionstyleandcolor ...pty \else
    \dousecurrentstyleparameter \fi \edef \currentcolorparameter
    {\labelparameter {#2}

MkIV only, no problem in LMTX.

replace by \c!numbercolor and remake the format


This is still (or perhaps once again) a problem using the latest MkIV 
(context --luatex).


--
Rik

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


Re: [NTG-context] Font scaling via sa in LMTX

2022-01-19 Thread Rik Kabel via ntg-context

On 2021-12-01 10:40, Hans Hagen wrote:

On 11/30/2021 9:36 PM, Rik Kabel via ntg-context wrote:

Hello list,

It seems that font scaling to a letter is not working consistently in 
LMTX.


This example:

    \definefont[TitleA][Sans sa a]
    \definefont[TitleAB][Sansbold sa a]
    \starttext
    {\ssa This is ssa \TitleA and this is TitleA}\par
    {\ssbf This is ssbf \TitleAB and this is TitleAB}\par
    \contextbanner
    \stoptext

Produces different relevant output with each engine.

I suppose one could use numeric values instead of defined font size 
letters as a work-around, but that means lack of coordination with 
custom sizes in \definebodyfontenvironment.


fixed in the next upload (which is a bit experimental in the sense 
that some low level consistency renaming happened which always has the 
danger of disabling some feature)


Hans


This is still a problem using yesterday's upload.

--
Rik

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