Sorry, as I said it was untested, but it certainly used to work on older versions of ConTeXt. I guess \nomarking has been deprecated and this should be noted on the wiki? Or is there still an equivalent command (as opposed to requiring the shift to \startsection / \stopsection)?___________________________________________________________________________________On Fri, 14 Mar 2025 at 15:09, Mohammad Hossein Bateni <bateni@gmail.com> wrote:I get an undefined command error. Does it work on your machine?___________________________________________________________________________________On Fri, Mar 14, 2025 at 10:43 AM Duncan Hothersall <dh@capdm.com> wrote:___________________________________________________________________________________Untested but this should work:\section{This title is long \nomarking{enough to cause problems in the headers and footers}}Everything inside \nomarking{} will not be shown in the headers or footers.DuncanOn Fri, 14 Mar 2025 at 14:33, Mohammad Hossein Bateni <bateni@gmail.com> wrote:Hello,___________________________________________________________________________________How can I clip long markings in the header?See this MNWE, where the two copies of section title collide on page 3.---------------\starttext
\setupbodyfont[20pt]
\setupheadertexts[section][section]
\section{One}
\section{Two}
\page
\section{Three}
\page
\section{Long Title for Section Four}
\page
\section{Five}
\stoptext------------How can I clip the title to a fixed length (5cm?) and perhaps add "..." at the end for longer titles?Is it possible to provide an alternative shorter section title within \section?Thanks,Mohammad
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________