From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/96143 Path: news.gmane.org!.POSTED!not-for-mail From: Florian Leupold Newsgroups: gmane.comp.tex.context Subject: Nonbreaking, non-vanishing horizontal spaces above underbar Date: Wed, 14 Sep 2016 14:33:29 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: multipart/mixed; boundary="===============3866814077376645798==" X-Trace: blaine.gmane.org 1473856479 873 195.159.176.226 (14 Sep 2016 12:34:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 14 Sep 2016 12:34:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 14 14:34:34 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 1bk9OP-0006mB-O5 for gctc-ntg-context-518@m.gmane.org; Wed, 14 Sep 2016 14:34:21 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 891A718553; Wed, 14 Sep 2016 14:33:48 +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 ZdMJDw33AQaw; Wed, 14 Sep 2016 14:33:44 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5C8BF18554; Wed, 14 Sep 2016 14:33:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9D0E518552 for ; Wed, 14 Sep 2016 14:33:42 +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 RR505kidKE0F for ; Wed, 14 Sep 2016 14:33:41 +0200 (CEST) Original-Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id A25F518551 for ; Wed, 14 Sep 2016 14:33:31 +0200 (CEST) Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 4654720ABB for ; Wed, 14 Sep 2016 14:33:31 +0200 (CEST) Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3sZ1DV5wMWz105l for ; Wed, 14 Sep 2016 14:33:30 +0200 (CEST) X-Pgp-Agent: GPGMail X-Mailer: Apple Mail (2.3124) 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:96143 Archived-At: --===============3866814077376645798== Content-Type: multipart/signed; boundary="Apple-Mail=_F86D2089-B24A-435E-9630-782E4C739801"; protocol="application/pgp-signature"; micalg=pgp-sha512 --Apple-Mail=_F86D2089-B24A-435E-9630-782E4C739801 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Dear all, I would like to create cloze texts with solutions, but I have problems = with horizontal spaces above the underbar, namely: 1) After a linebreak, horizontal space is cut off despite the \zwj. 2) I cannot find a way of scaling the leading and trailing space to = equal 0.2 times the width of the text above the underbar. MNWE: \definebar[ClozedBar][underbar][continue=3Dyes, color=3Dblack, = offset=3D-0.5] \unexpanded\def\Clozed#1{\startbar[ClozedBar] = \zwj\hskip\widthofstring{#1}#1\hskip\widthofstring{#1}\zwj\stopbar} \starttext \Clozed{\color[red]{CLOZE 1}} text text text text text \Clozed{\color[red]{CLOZE 2}} <- This one is cut at the beginning. \stoptext Could someone help me? Thanks a lot in advance! Best regards, Florian --Apple-Mail=_F86D2089-B24A-435E-9630-782E4C739801 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJX2UOZAAoJECjJXJRicdfxttkP/0Rvofe1zkPUAI9yIaHcoxWN SUitpY5PCA2qRi4w99qKStvwKynUNHb7nHmvVEugUjdf/9oImL7R7D0XZnIRl/yW JFV6f5gbNO+Mrd/hNBFfCCEn4nxdlSRIl1/0ltptkhiX3r9OLiXwK/vHvQGxqN7G qm6NqO1d9XsYL3p9WkrjJNn1l3ItDGJif46n2CjfnQCtNslmYnHvLBpbeqK3hkuu WKgTFcDhrSrAcfXUjOGO/Sieq7lgVTnMN/FIyS/loErdfDGti8HOlTlvbcLTBafH uJS5Hf5hc4ovzvmFuD32HXUrW9oU7upO/tLRWSKnSJBt5LLG4Pol628+K6il321P D92us0VeYbkgEvUXSi//a6LcldWmlSN7YBXC2x0wuq9qEM4uHIdHLav5ShPsJWKx TvfmlCdjj/fo025zARNHnj+Z3oTWlUKKHmCYbLSp2D7npV0iqxwwOX8qtYudcShe 5XHDoZGEGuZ8oK2vy8cU5QytakrwumM+rmyvrQqtRg00RjpOrae61QEbillIjgvJ 5aO9RFBLCHazB3AZfMEbqpPp3MK4pXBhUNtI80DK/jQcapTMjxfTo/FWIedYG8v3 X4rbZXYLQoWdr18CIyOgepkP6N8YmOzaMQ3VpJyyUYKiHn+98RvEZCo3chD5pw3Q XRa1/hXXIliDkHD1OENi =QFiN -----END PGP SIGNATURE----- --Apple-Mail=_F86D2089-B24A-435E-9630-782E4C739801-- --===============3866814077376645798== 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= --===============3866814077376645798==--