Footer issue (for graduated wizards mastering kung-fu)

Dear All,
I need some help, because I cannot figure out what is happening.
A file that used to work has stopped to work properly.
I have a main.tex file that uploads, through \input{} command, configuration.tex and chapter.tex files.
main.tex file was working, but now sometimes it works and sometimes it doesn't.
You can find the main.tex structure here below, where I already have commented all \input commands in order to find where the error can be positioned.
Consider that all chapter.tex file can change their content depending from which document I am writing, this is why I started commenting those line, because the error could be related with some change made in them recently.
I have found the surprising result that the error arise from a configuration file, that never change and never was changed.
I'll send you the error message from TEX too, because the position it marks seems not being related with the line generating the error.
Ok, hoping I could get your curiosity.
Let's start.
================================================
START OF THE main.tex FILE
================================================
% Load configuration files
\input{.\\TEX\\00-CONFIG\\config.tex}
\input{.\\TEX\\01-DOCFORMAT\\docformat.tex} %<---finally the error seems being here
\starttext
% load title page
\startstandardmakeup
\input{.\\TEX\\01-DOCFORMAT\\TITLEPAGE\\titlepageformat.tex}
\stopstandardmakeup
% ------------------------------------------------------------
\startfrontmatter
Here is working
%\input{.\\TEX\\Chapter_0.tex}
\stopfrontmatter
\completecontent
% -------------------------------------------------------------
\startbodymatter
Here is working
%\input{.\\TEX\\Chapter_1.tex}
%\input{.\\TEX\\Chapter_2.tex}
%\input{.\\TEX\\Chapter_3.tex}
%\input{.\\TEX\\Chapter_4.tex}
%\input{.\\TEX\\Chapter_5.tex}
%\input{.\\TEX\\Chapter_6.tex}
%\input{.\\TEX\\Chapter_7.tex}
%\input{.\\TEX\\Chapter_8.tex}
%\input{.\\TEX\\Chapter_9.tex}
%\input{.\\TEX\\Chapter_10.tex}
\stopbodymatter
% --------------------------------------------------------------
\startappendices
\noheaderandfooterlines
\ \vskip5cm
\midaligned{\bfd APPENDICES}
\page
\startchapter[title={Definition of engineering},reference={sec:engineering}]
Here is working
%\input{.\\TEX\\Appendix_1.tex}
\stopchapter
% \startchapter[title={Definition of take-over points},reference={sec:TOP}]
%\input{.\\TEX\\Appendix_2.tex}
% \stopchapter
\stopappendices
\stoptext
================================================
END OF THE main.tex FILE
================================================
================================================
START OF THE LOG FILE
================================================
system >
system > ConTeXt ver: 2024.02.14 13:38 LMTX fmt: 2024.2.15 int: english/english
system >
system > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 'D:/TECH/03-Programs/context-win64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system > beware: some patches loaded from cont-new.mkiv
close source > level 1, order 1, name 'D:/TECH/03-Programs/context-win64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system > files > jobname './P.CODE_CLIENT_(COUNTRY)_Rev.C.', input './P.CODE_CLIENT_(COUNTRY)_Rev.C..tex', result './P.CODE_CLIENT_(COUNTRY)_Rev.C.'
fonts > latin modern fonts are not preloaded
languages > language 'en' is active
open source > level 1, order 2, name './P.CODE_CLIENT_(COUNTRY)_Rev.C..tex'
open source > level 2, order 3, name '.\\TEX\\00-CONFIG\\config.tex'
close source > level 2, order 3, name '.\\TEX\\00-CONFIG\\config.tex'
open source > level 2, order 4, name '.\\TEX\\01-DOCFORMAT\\docformat.tex'
open source > level 3, order 5, name 'D:/TECH/03-Programs/context-win64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 3, order 5, name 'D:/TECH/03-Programs/context-win64/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source > level 2, order 5, name '.\\TEX\\01-DOCFORMAT\\docformat.tex'
open source > level 2, order 6, name '.\\TEX\\01-DOCFORMAT\\TITLEPAGE\\titlepageformat.tex'
close source > level 2, order 6, name '.\\TEX\\01-DOCFORMAT\\TITLEPAGE\\titlepageformat.tex'
pages > flushing realpage 1, userpage 1, subpage 1
structures > begin of sectionblock 'frontpart'
structures > end of sectionblock 'frontpart'
tex error > tex error on line 14 in file ./P.CODE_CLIENT_(COUNTRY)_Rev.C..tex: Valid keyword expected, likely 'minus'
<macro> \p_blank
Ma
r 25
<macro> \12>:myfootertext
#1->\switchtobodyfont [8pt]\setupinterlinespace \cap \framed [frame=off, align=normal]{\footerdisclaimer \relax \hfill \footerproject \myline \footerrevision \myline \footerdate
\relax }
<macro> \syst_helpers_process_comma_item
#*#1,->\ifarguments \or \commalistcommand {#1}
\expandafter \syst_helpers_process_comma_item_next \fi
<macro> \processcommacommand
[#1]#2->\pushmacro \commalistcommand \def \commalistcommand {#2}\normalexpanded {\syst_helpers_process_comma_item #1}\ignorearguments
\ignorearguments \ignorearguments \popmacro \commalistcommand
<macro> \page_layouts_process_element_single
...content {\detokenize {#1}}\ifcsname \??layouttextspecial \m_page_layouts_element_content \endcsname \lastnamedcs \else \doifelsemarking \m_page_layouts_element_content {\getmarking [\m_page_layouts_element_content ][\v!first ]}{#1}
\fi
<macro> \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
...

Am 13.03.2025 um 18:27 schrieb roberto.bianchi@pominirollingmills.com:
Dear All,
I need some help, because I cannot figure out what is happening. A file that used to work has stopped to work properly.
I have a main.tex file that uploads, through \input{} command, configuration.tex and chapter.tex files.
main.tex file was working, but now sometimes it works and sometimes it doesn't.
You can find the main.tex structure here below, where I already have commented all \input commands in order to find where the error can be positioned. Consider that all chapter.tex file can change their content depending from which document I am writing, this is why I started commenting those line, because the error could be related with some change made in them recently. I have found the surprising result that the error arise from a configuration file, that never change and never was changed. I'll send you the error message from TEX too, because the position it marks seems not being related with the line generating the error.
Ok, hoping I could get your curiosity.
Let's start.
[...] \def\myline{\hskip0.2em - \hskip0.2em}
\def\myline{\hskip0.2em\relax - \hskip.2em\relax} Put \relax at the end of the \hskip argument to stop the scanner to look for additional keywords. Wolfgang

Great! You've solved my issue! Thank you very much! I'm just wondering why sometime the code without the "\relax" command works. The scanner is a program, it should process the input file always in the same way, so what I have experienced sounds strange to me. Can be that the explanation? If \footerdate is starting with m (i.e. March 2025) the scanner reads the M as an input for \hskip0.2em (the "minus" is looking for), if \footerdate is starting with a different letter (i.e. J of June) the scanner is not confused and the process goes to the end. Have I got the point? Thanks Have a nice weekend Best regards Roberto

Am 14.03.25 um 19:37 schrieb roberto.bianchi@pominirollingmills.com:
I'm just wondering why sometime the code without the "\relax" command works. The scanner is a program, it should process the input file always in the same way, so what I have experienced sounds strange to me.
Can be that the explanation? If \footerdate is starting with m (i.e. March 2025) the scanner reads the M as an input for \hskip0.2em (the "minus" is looking for), if \footerdate is starting with a different letter (i.e. J of June) the scanner is not confused and the process goes to the end.
Have I got the point?
Sounds like it, we discussed the same problem already a few times. Glue in unsafe without a limiter. Hraban

Am 14.03.25 um 19:37 schrieb roberto.bianchi@pominirollingmills.com:
I'm just wondering why sometime the code without the "\relax" command works. The scanner is a program, it should process the input file always in the same way, so what I have experienced sounds strange to me.
Can be that the explanation? If \footerdate is starting with m (i.e. March 2025) the scanner reads the M as an input for \hskip0.2em (the "minus" is looking for), if \footerdate is starting with a different letter (i.e. J of June) the scanner is not confused and the process goes to the end.
Have I got the point?
Sounds like it, we discussed the same problem already a few times (p or m after a first value for glue). Glue is unsafe without a limiter. Hraban
participants (3)
-
Henning Hraban Ramm
-
roberto.bianchi@pominirollingmills.com
-
Wolfgang Schuster