Re: [NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-10 Thread Hans Hagen via ntg-context

On 10/9/2021 9:53 PM, Rik Kabel via ntg-context wrote:

Error with 20211008 ConTeXt:
%\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
\setupheadertexts [][][{\getmarking[chapter]}][] % fails
%\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

\starttext

\chapter{abc}
abc
\chapter{def}
def
\stoptext
no failure here, but actually the last one should fail (dummy page) due 
to nested []


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] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-09 Thread Rik Kabel via ntg-context

Note, this is not a problem in MkIV, just LMTX

On 10/9/2021 15:53, Rik Kabel via ntg-context wrote:


Error with 20211008 ConTeXt:

ConTeXt  ver: 2021.10.08 20:18 LMTX fmt: 2021.10.9  int:
english/english

...

tex error   > tex error on line 1 in file ./mmm.tex: Undefined
control sequence \??markingfilter




    \csname \??markingfilter
    \v!default \endcsname {chapter}
 \sectionheadmarkingtitle
    #1#2->\clf_markingtitle {#1}{#2
    }
 \strc_markings_get_yes
    ...rking \begincsname \??markingclass #1\endcsname
{#2}{#3}}\fi \orelse \ifparameter #2\or \markingcommand
{#1}{\csname \??markingfilter #2\endcsname {#1}}\else
\markingcommand {#1}{\csname \??markingfilter \v!default
\endcsname {#1}}
    \fi \endgroup ...


    \fi
 \page_layouts_process_element_indeed
    ...andcolor #1#2\begincsname \??layouttextstrut
\layoutelementparameter \c!strut \endcsname \ignorecrlf \edef
\p_width {\layoutelementparameter #3}\ifempty \p_width \else
\expandafter \page_layouts_process_element_limited \fi \p_text
    \endgroup
 \currentlayoutelement
    ...kern -\makeupwidth \fi \letfromlayoutelementparameter
\p_text \c!righttext \ifempty \p_text \kern \makeupwidth \else
\hbox to \makeupwidth \bgroup \hss
\page_layouts_process_element_indeed \c!rightstyle \c!rightcolor
\c!rightwidth
    \egroup \fi
 ...


    \stoptext

 1 >>
 2 %\setupheadertexts [][][{\it\getmarking[chapter]}][] % fails
 3 \setupheadertexts [][][{\getmarking[chapter]}][] % fails
 4 %\setupheadertexts [][][\getmarking[chapter]][] % succeeds

MWE to create. Note that the \it is not necessary to trigger the
error, just the braces.

%\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
\setupheadertexts [][][{\getmarking[chapter]}][] % fails
%\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

\starttext

\chapter{abc}
abc
\chapter{def}
def
\stoptext

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


[NTG-context] Undefined control sequence \??markingfilter, with MWE to recreate

2021-10-09 Thread Rik Kabel via ntg-context

Error with 20211008 ConTeXt:

   ConTeXt  ver: 2021.10.08 20:18 LMTX fmt: 2021.10.9  int: english/english

   ...

   tex error   > tex error on line 1 in file ./mmm.tex: Undefined
   control sequence \??markingfilter



   
    \csname \??markingfilter
    \v!default \endcsname {chapter}
\sectionheadmarkingtitle
    #1#2->\clf_markingtitle {#1}{#2
    }
\strc_markings_get_yes
    ...rking \begincsname \??markingclass #1\endcsname {#2}{#3}}\fi
   \orelse \ifparameter #2\or \markingcommand {#1}{\csname
   \??markingfilter #2\endcsname {#1}}\else \markingcommand
   {#1}{\csname \??markingfilter \v!default \endcsname {#1}}
    \fi \endgroup ...
   

    \fi
\page_layouts_process_element_indeed
    ...andcolor #1#2\begincsname \??layouttextstrut
   \layoutelementparameter \c!strut \endcsname \ignorecrlf \edef
   \p_width {\layoutelementparameter #3}\ifempty \p_width \else
   \expandafter \page_layouts_process_element_limited \fi \p_text
    \endgroup
\currentlayoutelement
    ...kern -\makeupwidth \fi \letfromlayoutelementparameter
   \p_text \c!righttext \ifempty \p_text \kern \makeupwidth \else \hbox
   to \makeupwidth \bgroup \hss \page_layouts_process_element_indeed
   \c!rightstyle \c!rightcolor \c!rightwidth
    \egroup \fi
 ...

   
    \stoptext

 1 >>
 2 %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
 3 \setupheadertexts [][][{\getmarking[chapter]}][] % fails
 4 %\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

   MWE to create. Note that the \it is not necessary to trigger the
   error, just the braces.

   %\setupheadertexts [][][{\it\getmarking[chapter]}][]  % fails
   \setupheadertexts [][][{\getmarking[chapter]}][] % fails
   %\setupheadertexts [][][\getmarking[chapter]][]   % succeeds

   \starttext

   \chapter{abc}
   abc
   \chapter{def}
   def
   \stoptext

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