Re: \nomarking no working??

Jean-Pierre Delange via ntg-context <[email protected]>
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
Hi Jim,

You are not doing anything wrong. The example on the wiki appears to be 
obsolete (If you have a look through the mailing list archives, you’ll 
see that Aditya notes that this command is obsolete...).

|\nomarking{...}| belonged to an older interface. This was already 
discussed on the list in 2013, when Aditya explained that |\nomarking| 
and |\nolist| were no longer needed: the structured sectioning interface 
now lets us specify |title|, |marking|, |list|, and |bookmark| separately.

So the current equivalent would be something like:

\setupheadertexts[chapter]
\starttext
\startchapter
[title={This title is long enough to cause problems in the headers and 
footers},
marking={This title is long ...}]
Here the whole title is used in the document, while the shorter
`marking` is used for the header.
\stopchapter
\stoptext

The same issue actually came up again on the mailing list in March 2025, 
when |\nomarking| was found not to work with current ConTeXt.

So I think this is a documentation problem rather than a problem with 
your input. The |\nomarking| wiki page should probably be revised or 
marked as obsolete (mais qui va faire ce job ?).

Best,
JP



Le 18/08/2026 à 17:25, Jim Diamond via ntg-context a écrit :
> 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
___________________________________________________________________________________
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.