From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83247 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Cloze Text (text with gaps) Date: Thu, 27 Jun 2013 20:23:33 +0200 Message-ID: <47459C5E-209A-451D-9F32-2C04BFAF50F2@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372357428 1156 80.91.229.3 (27 Jun 2013 18:23:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 18:23:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 27 20:23:51 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 1UsGrE-0001cK-Ug for gctc-ntg-context-518@m.gmane.org; Thu, 27 Jun 2013 20:23:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2DC71101F8; Thu, 27 Jun 2013 20:23:48 +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 6kXOQMaSsYR4; Thu, 27 Jun 2013 20:23:46 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id D7EE9101E5; Thu, 27 Jun 2013 20:23:46 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A603E101E5 for ; Thu, 27 Jun 2013 20:23: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 QTJ7tab6mhqs for ; Thu, 27 Jun 2013 20:23: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 CAD04101E4 for ; Thu, 27 Jun 2013 20:23:34 +0200 (CEST) Original-Received: from mail-ea0-x22f.google.com (mail-ea0-x22f.google.com [IPv6:2a00:1450:4013:c01::22f]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5RINXjM023606 for ; Thu, 27 Jun 2013 20:23:34 +0200 Original-Received: by mail-ea0-f175.google.com with SMTP id z7so570496eaf.20 for ; Thu, 27 Jun 2013 11:23:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=icJuHNlELvnd1wZozGkQF5rYIW+Klc4eSC74GF7ZUgk=; b=sR/SNlQoWECWxuUbl6wxXpL5CT8RxQlGQJBEghp6XqMdxMW5dWthHwbvwSDGNHalKo op58d5N+3W4+17C/8bitJVgym+6Aq1KW3YrjTfADldDL9kIwpRtfeQDbIfOvQ7ojiTNa giVJ4W9SLS60WIQB3vc9oHr0ZLOFqRrSxnoD9mfyunXIPj+aszteqqXFBAIsWT9JdK61 AqmItr1bCvBW0PD/aKvLp5vIBe4/9NhhLqr2USOtcjE5zfaQaYfpPCd84VDunLoxOxUb QnljaPl5DHrZQeFuI/krZP76W50IGtUJj+CHZN2DTdL0K3DlYsXCz08mDF9TmvCBfoss +uig== X-Received: by 10.15.22.199 with SMTP id f47mr10295844eeu.47.1372357413910; Thu, 27 Jun 2013 11:23:33 -0700 (PDT) Original-Received: from keima.localdomain (nrbg-4dbe588d.pool.mediaWays.net. [77.190.88.141]) by mx.google.com with ESMTPSA id e44sm5381054eeh.11.2013.06.27.11.23.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 11:23:33 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.047 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c01::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TJRunyBl - 08ca0e3ebe55 - 20130627 (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:83247 Archived-At: Am 24.06.2013 um 16:36 schrieb Christian Prim : > Hi list > > I wonder if I can typeset a cloze text using context. The gaps (__________) must have a given length (say in cm or the length of a given word, given sentence) and must break at the end of a line. > > \hl[4] is nice but won't do the trick since it won't break. \fillinline and others fill the hole line, but I only want to fill a given size. > > Are there some ideas how to deal with it? \def\TextGap[#1]% {\scratchdimen#1\relax \divide\scratchdimen\plusten \dorecurse\plusten {\vrule width \scratchdimen height \linewidth\relax \ifnum\recurselevel<10 \hskip\zeropoint\relax \fi}} \starttext a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e \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 ___________________________________________________________________________________