Am 07.04.2026 um 04:15 schrieb Emanuel Han:
I observed that there is a line break after hbox or framed, if these
elements are at the beginning of a paragraph (which is not the case when
they are not at the beginning of the paragraph). How can I circumvent
this, so that there is no line break?
\definehbox[fiveem][5em]
\starttext
\hboxfiveem{A} text \hboxfiveem{A} \hboxfiveem{A}.
\framed{B} text \framed{B} \framed{B}.
\stoptext
You need \dontleavehmode before the first box to switch to horizontal mode.
\definehbox[fiveem][5em]
\starttext
\dontleavehmode\hboxfiveem{A} text \hboxfiveem{A} \hboxfiveem{A}.
\dontleavehmode\framed{B} text \framed{B} \framed{B}.
%\dontleavehmode\horizontalbox[width=5em]{A} text
\horizontalbox[width=5em]{A} \horizontalbox[width=5em]{A}
\stoptext
Wolfgang
___________________________________________________________________________________
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
___________________________________________________________________________________