Hello all,

The example in the wiki for nomarking is (when rounded out with \starttext
and \stoptext):

\starttext
\chapter{This title is long \nomarking{enough to cause problems in the headers
and footers}}

Here the whole title will be displayed as normal, but if the chapter title is 
used as a header or footer it will be displayed as:

This title is long ...
\stoptext


Disappointingly, when I run this example, I get

---------------------------------------------------------------------

tex error       > tex error on line 1 in file ./stuff_run-tex.5addq4kPxq.tex: 
Control sequence expected instead of undefined
<lua input> 
<macro> \currentcolorparameter 
    \dostarttaggednodetail \t!sectiontitle \ifrelax \deepstructuretitlecommand 
\structuretitle 
    \else \expanded {\noexpand \deepstructuretitlecommand {\structuretitle 
}}\fi \dostoptagged 
<macro> \currentheadlabeltag 
    ...lax \ifcsname \currentheadhash \c!deeptextcommand \endcsname 
\expandafter \let \expandafter \deepstructuretitlecommand \lastnamedcs \fi 
\ifconditional \headisdisplay \headparameter \c!textcommand {\setstrut 
\begstrut \getheadtitle 
    \endstrut }\g ...
<macro> \18>:152>:normal 
    ...er \plusone \noindent \box \scratchbox \kern \headnumberdistance \else 
\ifzeropt \headtextwidth \ifzeropt \headwidth \else \hsize \headwidth \fi \else 
\hsize \headtextwidth \fi \noindent \fakeheadnumbercontent \fi \headtextcontent 
    }
<macro> \somefontspec 
    \edef \p_command {\headparameter \c!command }\ifempty \p_command 
\directsetup \currentheadrenderingsetup 
    \else \p_command \headnumbercontent \headtextcontent \fi 
<macro> \currentstructuresynchronize 
    ...enceattributes \bgroup \strc_rendering_initialize_interaction 
\spac_grids_set_local_snapping {\headparameter \c!internalgrid 
}\useheadstyleparameter \c!style \setinlineheadreferenceattributes 
\strc_rendering_inject_number_and_text 
    \egroup \fi \ ...
 ...
<line 3.3> 
    and footers}}
 1 >>  \starttext
 2     \chapter{This title is long \nomarking{enough to cause problems in the 
headers
 3     and footers}}
 4     
 5     Here the whole title will be displayed as normal, but if the chapter 
title is 
 6     used as a header or footer it will be displayed as:
 7     
 8     This title is long ...
 9     \stoptext
10     
You injected something that confused the parser, maybe by using some Lua call.
mtx-context     | fatal error: return code: 1

---------------------------------------------------------------------

If I remove \nomarking, the example successfully compiles.


Is someone able to tell me if I am doing something wrong, and, if so,
exactly what I need to do in order to get on the correct path?

Thanks.

                                Jim

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : [email protected] / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to