From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83267 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: Cloze Text (text with gaps) Date: Fri, 28 Jun 2013 09:36:59 +0200 Message-ID: <51CD3D1B.1020808@gyza.cz> References: <47459C5E-209A-451D-9F32-2C04BFAF50F2@gmail.com> <51CC8A37.5080102@gyza.cz> Reply-To: hajtmar@gyza.cz, mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1372405119 6233 80.91.229.3 (28 Jun 2013 07:38:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 28 Jun 2013 07:38:39 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Fri Jun 28 09:38:41 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 1UsTGS-0002bK-VD for gctc-ntg-context-518@m.gmane.org; Fri, 28 Jun 2013 09:38:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2B6C3101E5; Fri, 28 Jun 2013 09:38:40 +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 W9eS5Yu3QF9R; Fri, 28 Jun 2013 09:38:38 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 528D9101E6; Fri, 28 Jun 2013 09:38:38 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B9877101E6 for ; Fri, 28 Jun 2013 09:38:36 +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 zNLMEW9OwRGg for ; Fri, 28 Jun 2013 09:38:35 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 5C8BE101E5 for ; Fri, 28 Jun 2013 09:38:25 +0200 (CEST) Original-Received: from h1.cmg2.smtp.forpsi.com (h1.cmg2.smtp.forpsi.com [81.2.195.188]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5S7cNmM014686 for ; Fri, 28 Jun 2013 09:38:24 +0200 Original-Received: from [192.168.1.194] ([188.116.90.238]) by cmg2.smtp.forpsi.com with bizsmtp id tjeM1l00458ZT5Y01jeNai; Fri, 28 Jun 2013 09:38:22 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.188; country=CZ; latitude=49.7500; longitude=15.5000; http://maps.google.com/maps?q=49.7500,15.5000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WJRHCoc4 - 8c9eace96b37 - 20130628 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 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:83267 Archived-At: Hello Wolfgang. I thank you as well. These macros I will also definitely come in handy. = Sometimes I'm doing tests for my students. I solved it yet a little awkward, now it is OK. Thanx Jaroslav Dne 28.6.2013 9:06, Christian Prim napsal(a): > 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 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 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 > _____________________________________________________________________= ______________ > > > > > _________________________________________________________________________= __________ > 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-co= ntext > webpage : http://www.pragma-ade.nl / http://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > wiki : http://contextgarden.net > _________________________________________________________________________= __________ ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________