From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/95667 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to typeset a line as if it had zero height Date: Thu, 04 Aug 2016 06:56:10 +0200 Message-ID: <57A2CAEA.9090901@gmail.com> References: <57a0ff86.c310c20a.42ec2.6f7d@mx.google.com> <51980bcd-b44a-a821-4c54-ca4277e2add5@gmail.com> <57A1FB77.2020302@gmail.com> <57a24a76.47cbc20a.13c7.3dde@mx.google.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7655925008722966118==" X-Trace: blaine.gmane.org 1470286606 20571 195.159.176.226 (4 Aug 2016 04:56:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 4 Aug 2016 04:56:46 +0000 (UTC) User-Agent: Postbox 4.0.8 (Macintosh/20151105) Cc: mailing list for ConTeXt users To: Joseph Canedo Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 04 06:56:39 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bVAhu-00040k-1h for gctc-ntg-context-518@m.gmane.org; Thu, 04 Aug 2016 06:56:34 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 886761431B; Thu, 4 Aug 2016 06:56:24 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8ni-70j3pVl4; Thu, 4 Aug 2016 06:56:23 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id CD7C41431C; Thu, 4 Aug 2016 06:56:23 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 69C8013EDD for ; Thu, 4 Aug 2016 06:56:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g9XT4GrOBvfR for ; Thu, 4 Aug 2016 06:56:21 +0200 (CEST) Original-Received: from mail-wm0-f45.google.com (mail-wm0-f45.google.com [74.125.82.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id E843313D3B for ; Thu, 4 Aug 2016 06:56:11 +0200 (CEST) Original-Received: by mail-wm0-f45.google.com with SMTP id q128so471033466wma.1 for ; Wed, 03 Aug 2016 21:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to; bh=TrhpNzoaVsQHNcbSsa+0b/4UclIO5FV0S8OIk1O9xd0=; b=xDqWQLGLY5DaMzxUfaHKEkuuOVvhxjJeocMgnHMh+nGkFaLdTfR0J3e9ImCHwTTezf bo5pHC6TMWrvA7fbnrV3M8x7iGgpDVoZk3GQMO+bB78inze+AGNO04wHuAdZ+HDp3cTA 9eV9OCY1/9jYg09nxf0H2jeb+wYjGiepQ4m2+4XwQiGCR8OlMVZ4Va8m2QdLN5FL5/em km65UX3POPezAjJirHj1cABeaxpLzDKD+eIDMzl6Z1cExXfgxe5jq0Hj6/uUjWbRUbVe 4dZ6dEmPlX2cgY7J5JThO/rcXKBw/iUMshSI0WS6brxWe8HpNn+Y8w6jgvzwFuRYn6M5 BJFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to; bh=TrhpNzoaVsQHNcbSsa+0b/4UclIO5FV0S8OIk1O9xd0=; b=RiudDeFGobUjjER2jVHDnLJD1CK3BN4CBnoDdzQjCM3I6Oum3XGEaBa6PBKGL0WQ/B Ja3LTsLmjQzafklcua3siYkIoUTYplZlloy00l9zWf0ADWD1PJ3HrhlPrueWUXiSplPv hDrYHojsXV9tMx3hdyimBbV5RBhk0YA2Q4U1EvKynoSoD/0kAwgr07520hIWmvIE56yy K+nrjW7wu7MvvQ2LqkM+Q9JUeLBayKOjg5icEWr9nh/xXcxOG+6CL9vcNn9GXYNDcji+ HqXaCqsPkwxpqv1QEZidH7R37sp2Xc79WxBkMWcAbCxoaxhidYc34VCsd2f+h4uFnJM9 UQvg== X-Gm-Message-State: AEkoousXKyR+GQKFBO0zhvd6hGcKYOcfEap+SkFWeTpkfGIaNM7GEzHDiL4QfTy9I9Iw9g== X-Received: by 10.28.131.199 with SMTP id f190mr27876967wmd.30.1470286571543; Wed, 03 Aug 2016 21:56:11 -0700 (PDT) Original-Received: from keima.localdomain (x2f238db.dyn.telefonica.de. [2.242.56.219]) by smtp.gmail.com with ESMTPSA id m81sm1630912wmf.1.2016.08.03.21.56.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 21:56:10 -0700 (PDT) In-Reply-To: <57a24a76.47cbc20a.13c7.3dde@mx.google.com> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:95667 Archived-At: This is a multi-part message in MIME format. --===============7655925008722966118== Content-Type: multipart/alternative; boundary="------------020802010406050605040705" This is a multi-part message in MIME format. --------------020802010406050605040705 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit > 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 --------------020802010406050605040705 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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
--------------020802010406050605040705-- --===============7655925008722966118== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============7655925008722966118==--