From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61345 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Re: Filling boxes Date: Mon, 30 Aug 2010 17:02:21 +0200 Message-ID: <87occknnya.fsf@linux-lqcw.site> References: <877hjbqavw.fsf@linux-lqcw.site> <4C791B37.60606@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1283180547 24992 80.91.229.12 (30 Aug 2010 15:02:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 30 Aug 2010 15:02:27 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Aug 30 17:02:24 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oq5sM-0007dz-OL for gctc-ntg-context-518@m.gmane.org; Mon, 30 Aug 2010 17:02:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 00EA8CA624; Mon, 30 Aug 2010 17:02:21 +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 VMNR5INqmr9u; Mon, 30 Aug 2010 17:02:09 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1610DCA60D; Mon, 30 Aug 2010 17:02:09 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 81FB4CA60D for ; Mon, 30 Aug 2010 17:02:07 +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 pdS3y4EHUZ9W for ; Mon, 30 Aug 2010 17:02:04 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 245D2CA5A3 for ; Mon, 30 Aug 2010 17:02:04 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7UF23xH020217 for ; Mon, 30 Aug 2010 17:02:03 +0200 Original-Received: by eyh5 with SMTP id 5so3835703eyh.14 for ; Mon, 30 Aug 2010 08:02:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:references :date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=AgPwPLppztuzrZbde//RKElc+9ZIdSqqsZtOOgsV1rg=; b=Wt7Zlt71suetmw0xRxB3Obd9Ia0Z4krKBPGnmGytmTejhl7pDvmm/kZYaTiCNzdLsd q/PbKkjpS3nxNx+/dJGLGkTI4/PVQR9gphYXyy6oh0f8RhQQ+wbE5lgK16co2VPqir3S CYzfsFxZy4NCFMLQ9LFjGz7XzwUuYZUDF78a8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; b=mAGH6AwInz0JcLv7mbrQHqJ3IZ6hN/9U+vRB+5Q2bL5ewIQOeCl/BQOsMTHyRaFNr8 MCu2j2LPSVldXEb/PBWaCbQBBp+Zm7cKF81LkBug+qiyg0BrWkftoe0ZmjMJoh++d6dv 6iV2eYLVuwH9gzMY+GfU6FTZXEplB2tPWFLK4= Original-Received: by 10.213.7.7 with SMTP id b7mr8225636ebb.30.1283180522533; Mon, 30 Aug 2010 08:02:02 -0700 (PDT) Original-Received: from linux-lqcw.site (84-53-123-169.wxdsl.nl [84.53.123.169]) by mx.google.com with ESMTPS id u9sm12193524eeh.5.2010.08.30.08.02.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 30 Aug 2010 08:02:01 -0700 (PDT) In-Reply-To: <4C791B37.60606@googlemail.com> (Wolfgang Schuster's message of "Sat, 28 Aug 2010 16:20:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.169; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 08D0D23Ip - 008aee37eb54 - 20100830 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:61345 Archived-At: Op zaterdag 28 aug 2010 16:20 CEST schreef Wolfgang Schuster: > \setuplayout[header=0cm,footer=0.25cm] > > \defineframed > [action] > [width=5cm,height=3cm,offset=none,frameoffset=.5\linewidth] > > \defineframed > [base] > [width=3cm,height=2cm,offset=none,frameoffset=.5\linewidth] > > \setupfooter[style={\switchtobodyfont[6pt]}] > > \newcounter\treecounter > > \setvariables > [tree] > [1=One, > 2=Two, > 3=Three, > 4=Four, > 4={\switchtobodyfont[9pt]\input ward }, > 5=Five, > 6=Six, > 7=Seven] Changed this to: \setvariables [tree] [1='Some very long text to try to get to much text for the box to fit in. There is a lot of room. Just some other text to finish it of. With this line added, there is to much text.', 2=Two, 3=Three, 4=Four, 5=Five, 6=Six, 7=Seven, 8=Eight, 9=Nine, 10=Ten, 11=Eleven, 12=Twelf, 13=Thirtheen ] That comes quit a bit to what I want. When I use this and then I execute: texexec --batchmode --purge --silent testTree.tex an error is signalled. When I remove the last sentence from the first parameter, it signals success. My only remaining problem is that I want to use parameters to input the values for the boxes. How would I do that? > > \def\CheckBoxContent > {\begingroup > \setbox\scratchbox\vbox{\getvariable{tree}{\treecounter}}% > \ifdim\ht\scratchbox>\vsize > \forcequitjob{tree}% > \else > \box\scratchbox > \fi > \endgroup} > > \starttext > > \setupfootertexts[\copyright Decebal Computing, http://www.decebal.nl] > > \setupalign[middle]\offinterlineskip > > {\definedfont[Bold at 32pt]De taken kerstboom} > > \blank > > \dorecurse{3} > {\noindent\dorecurse\recurselevel > {\increment\treecounter > \action{\CheckBoxContent}}\par} > > \dorecurse{7} > {\increment\treecounter\noindent\base{\CheckBoxContent}\par} > > \stoptext -- Cecil Westerhof M CLDWesterhof@gmail.com O< ascii ribbon campaign - stop html mail - www.asciiribbon.org Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument/ ___________________________________________________________________________________ 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 ___________________________________________________________________________________