From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83263 Path: news.gmane.org!not-for-mail From: Christian Prim Newsgroups: gmane.comp.tex.context Subject: Re: Cloze Text (text with gaps) Date: Fri, 28 Jun 2013 09:06:32 +0200 Message-ID: References: <47459C5E-209A-451D-9F32-2C04BFAF50F2@gmail.com> <51CC8A37.5080102@gyza.cz> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1477350929==" X-Trace: ger.gmane.org 1372403208 18246 80.91.229.3 (28 Jun 2013 07:06:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 07:06:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 28 09:06:50 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UsSle-0000Ji-46 for gctc-ntg-context-518@m.gmane.org; Fri, 28 Jun 2013 09:06:50 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 69032101FA; Fri, 28 Jun 2013 09:06:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id oo+8m1YvgNin; Fri, 28 Jun 2013 09:06:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 613FB101E6; Fri, 28 Jun 2013 09:06:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E3A22101E6 for ; Fri, 28 Jun 2013 09:06:45 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id y0xojI6S1aB3 for ; Fri, 28 Jun 2013 09:06:44 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id AC588101E5 for ; Fri, 28 Jun 2013 09:06:44 +0200 (CEST) Original-Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5S76XqN002068 for ; Fri, 28 Jun 2013 09:06:43 +0200 Original-Received: by mail-la0-f52.google.com with SMTP id fo12so1794961lab.11 for ; Fri, 28 Jun 2013 00:06:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=DOATs29d5qH5PuKKePkMQ+fkYZbZkhRBMoMtSiiIJLk=; b=O9GyHMpO5U4OTKmhziCxlBIGg98D8c1HNUUhPAB3OE6mo9p7fmz7lz8cLvwMRW7DQv 2PIz6URABRvy5ju2BJDQ+jNwFczutV74cGzF0co6AddaTUPOfZGwnMC/0DotWh352Am5 y4HgtZNm+HdMKgpX+fU1LfVzhs9/yb92OSEOS+K6i7nkG0O0nqnc0FHBMdL95boTix0N 4zTYGF5t9jglJbqazUXAloIDaRC7KMiz0HXxIUckLCmncf1MPgCKy9+H2yIFZDyYXfwv PxvcFL/OzmI+nJe8fhDyz4uO5mRHXXnTqQetQeUdxsijboJcEh2/CZh23yYz4CQTiYgL ymSg== X-Received: by 10.112.4.164 with SMTP id l4mr5796488lbl.94.1372403192793; Fri, 28 Jun 2013 00:06:32 -0700 (PDT) Original-Received: by 10.112.28.38 with HTTP; Fri, 28 Jun 2013 00:06:32 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: XYqEEsOfYys1qpVAz2cQur5dMAA X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4010:c03::234; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJRH6x4w - 3653231f532b - 20130628 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 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-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:83263 Archived-At: --===============1477350929== Content-Type: multipart/alternative; boundary=14dae94ed96fcb937504e031844f --14dae94ed96fcb937504e031844f Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello Wolfgang thanks for both \TextGap and \WordGap. That is exactly what I needed! Christian 2013/6/27 Wolfgang Schuster > > Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar : > > > Hello Wolfgang. > > Here is example of other using of your TextGap. > > There is a problem in some lines? Why linewidth is change? > > Add =93width 0pt=94 to the \vrule arguments. See also my definition of > \WordGap. > > \def\TextGap[#1]% > {\scratchdimen#1\relax > \divide\scratchdimen\plusten > \dorecurse\plusten > {\vrule width \scratchdimen height \linewidth depth \zeropoint\relax > \ifnum\recurselevel<10 \hskip\zeropoint\relax \fi}} > > \def\WordGap > {\dowithnextbox{\TextGap[\nextboxwd]}\hbox} > > \starttext > > a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e > > My words: \WordGap{My words}. Why is line very thick here? > > Here is an sentence: \WordGap{Here is an sentence} -- linewidth is OK her= e. > > Here is an sentence: \WordGap{Here is an sentence}. And why is problem > here again? > > \stoptext > > Wolfgang > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --14dae94ed96fcb937504e031844f Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable
Hello Wolfgang

thanks for both \T= extGap and \WordGap. That is exactly what I needed!

Christian


2013/6/27 Wolfgang Schuster <schuster.wolfgang@gmail.com>=

Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar <hajtmar@gyza.cz>:

> Hello Wolfgang.
> Here is example of other using of your TextGap.
> There is a problem in some lines? Why linewidth is change?

Add =93width 0pt=94 to the \vrule arguments. See also my definition o= f \WordGap.

\def\TextGap[#1]%
=A0{\scratchdimen#1\relax
=A0 \divide\scratchdimen\plusten
=A0 \dorecurse\plusten
=A0 =A0 {\vrule width \scratchdimen height \linewidth depth \zeropoin= t\relax
=A0 =A0 =A0\ifnum\recurselevel<10 \hskip\zeropoint\rel= ax \fi}}

\def\WordGap
=A0 {\dowithnextbox{\TextGap[\nextboxwd]}\hbox}

\starttext

a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e

My words: \WordGap{My words}. Why is line very thick here?

Here is an sentence: \WordGap{Here is an sentence} -- linewidth is OK here.=

Here is an sentence: \WordGap{Here is an sentence}. And why is problem here= again?

\stoptext

Wolfgang
_____________________= ______________________________________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________

--14dae94ed96fcb937504e031844f-- --===============1477350929== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1477350929==--