Joseph Canedo
3. August 2016 um 21:48

Thanks Wolfgang, out of curiosity what does \GotoPar macro ? Is this similar to \ignorespaces ?

The \GotoPar removes the following \par or empty line to ensure the previous and the following text stay on the same line.

%%%% begin example
\define\RuleOne{\dontleavehmode\blackrule[width=4cm,color=orange]}
\define\RuleTwo{\dontleavehmode\blackrule[width=4cm,color=yellow]\GotoPar}

\starttext

\RuleOne

\input ward

\RuleTwo

\input ward

\stoptext
%%%% end example

Wolfgang