![](https://secure.gravatar.com/avatar/46562c7d27388490d62e8d7a5bc960dd.jpg?s=120&d=mm&r=g)
On 5/27/2021 10:43 PM, Hans van der Meer wrote:
Why is there not implemented in \subsection a \leavevmode at the end of it? Here a minimal example showing that starting with the first word in an \hbox encounters vertical mode. Thus requiring a \leavevmode to put it on line with the following text. Whereas not starting with an \hbox does an implicite switch to horizontal mode. I can imagine that this behaviour could be confusing for users not well versed in the different behaviour of the horizontal and vertical modes. Therefore my question: Wouldn't it be wise to implement that \leavevmode?
\startsubsection[title=TEST] \hbox{abc} def\crlf ghi jkl xyz \stopsubsection first of all, context never uses (and used) \leavevmode and that is for a good reason
anyway, adding any mode change command automatically will somehow interfere, \starttext \def\MyTitle#1{\blank{\bf#1}\blank} \MyTitle{xxx} \MyTitle{xxx} \MyTitle{xxx} \MyTitle{xxx} \def\MyTitle#1{\blank{\bf#1}\blank\leavevmode} \MyTitle{xxx} \MyTitle{xxx} \MyTitle{xxx} \MyTitle{xxx} \stoptext so, when we'd add that you would ask: why is there not implemented that unwanted \leavevmode's get cleaned up Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------