[NTG-context] How to typeset a line as if it had zero height

Wolfgang Schuster schuster.wolfgang at gmail.com
Thu Aug 4 06:56:10 CEST 2016


> Joseph Canedo <mailto:josephcanedo at gmail.com>
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20160804/8e57ad23/attachment.html>


More information about the ntg-context mailing list