From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/83248 Path: news.gmane.org!not-for-mail From: Jaroslav Hajtmar Newsgroups: gmane.comp.tex.context Subject: Re: Cloze Text (text with gaps) Date: Thu, 27 Jun 2013 20:53:43 +0200 Message-ID: <51CC8A37.5080102@gyza.cz> References: <47459C5E-209A-451D-9F32-2C04BFAF50F2@gmail.com> 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="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1372359329 21957 80.91.229.3 (27 Jun 2013 18:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 18:55:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 27 20:55:29 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 1UsHLt-0007B1-8j for gctc-ntg-context-518@m.gmane.org; Thu, 27 Jun 2013 20:55:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EAE1B101EA; Thu, 27 Jun 2013 20:55:27 +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 4IyV+-SB-ife; Thu, 27 Jun 2013 20:55:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 16901101E5; Thu, 27 Jun 2013 20:55:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4AD5E101E5 for ; Thu, 27 Jun 2013 20:55:24 +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 j22eJch-z5MS for ; Thu, 27 Jun 2013 20:55:21 +0200 (CEST) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 6A4F8101E4 for ; Thu, 27 Jun 2013 20:55:11 +0200 (CEST) Original-Received: from h1.cmg1.smtp.forpsi.com (h1.cmg1.smtp.forpsi.com [81.2.195.162]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r5RIt78W003717 for ; Thu, 27 Jun 2013 20:55:10 +0200 Original-Received: from [192.168.20.101] ([88.103.230.14]) by cmg1.smtp.forpsi.com with bizsmtp id tWv61l0020KHK6001Wv78r; Thu, 27 Jun 2013 20:55:07 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 In-Reply-To: <47459C5E-209A-451D-9F32-2C04BFAF50F2@gmail.com> X-Bayes-Prob: 0.0002 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=81.2.195.162; 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: 08JRuT7pA - 2a34aa72cfb7 - 20130627 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 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:83248 Archived-At: Hello Wolfgang. Here is example of other using of your TextGap. There is a problem in some lines? Why linewidth is change? Thanx Jaroslav Hajtmar \def\TextGap[#1]% {\scratchdimen#1\relax \divide\scratchdimen\plusten \dorecurse\plusten {\vrule width \scratchdimen height \linewidth\relax \ifnum\recurselevel<10 \hskip\zeropoint\relax \fi}} \def\textgap#1{\setbox0=\hbox{#1}% \TextGap[\the\wd0]% } \starttext a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e My words: \textgap{My words}. Why is line very thick here? Here is an sentence: \textgap{Here is an sentence} -- linewidth is OK here. Here is an sentence: \textgap{Here is an sentence}. And why is problem here again? \stoptext Dne 27.6.2013 20:23, Wolfgang Schuster napsal(a): > \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 ___________________________________________________________________________________ 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 ___________________________________________________________________________________