From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/61281 Path: news.gmane.org!not-for-mail From: Cecil Westerhof Newsgroups: gmane.comp.tex.context Subject: Filling boxes Date: Sat, 28 Aug 2010 12:39:31 +0200 Message-ID: <877hjbqavw.fsf@linux-lqcw.site> 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 1282991968 32533 80.91.229.12 (28 Aug 2010 10:39:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2010 10:39:28 +0000 (UTC) To: NTG ConTeXt mailing list Original-X-From: ntg-context-bounces@ntg.nl Sat Aug 28 12:39:26 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 1OpIoj-00044D-Um for gctc-ntg-context-518@m.gmane.org; Sat, 28 Aug 2010 12:39:22 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 37AB2CA684; Sat, 28 Aug 2010 12:39: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 Q+1WG9mnZ6WE; Sat, 28 Aug 2010 12:39:18 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 86278CA67D; Sat, 28 Aug 2010 12:39:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 2F560CA67D for ; Sat, 28 Aug 2010 12:39:18 +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 Qn3IwxZUp8J8 for ; Sat, 28 Aug 2010 12:39:15 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id A4B0ACA5E4 for ; Sat, 28 Aug 2010 12:39:15 +0200 (CEST) Original-Received: from mail-ey0-f169.google.com (mail-ey0-f169.google.com [209.85.215.169]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id o7SAdFOO004074 for ; Sat, 28 Aug 2010 12:39:15 +0200 Original-Received: by eyh5 with SMTP id 5so2829874eyh.14 for ; Sat, 28 Aug 2010 03:39:14 -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:date :message-id:user-agent:mime-version:content-type; bh=nuZPNT1RfVb+fsUQzAajKbeFC9Oi55t9dZJL9IhB3Ak=; b=raO89eTE6RJUUwdYkZ785FO5B14BblLnezQchJ77qMhrdQnBexVrfIKQk646qj5uX/ lOHKbyd505Hewqly0LotxU0vl61ehfUUEs+Ps+mcnJ+Ybayg+D2k8AEY+afc2biNTZCd jjlloQB2TwWA4uGfB8A95jZp47Vp2uKfVOcNc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; b=G2XHHdgOoDl55GLyGd4oyNSgfcZxA5xHbpfv/I6SObS0r8LB89gWLEa4qmIumUr/qJ RUGlafKO9WY+TNiqK5yzjnKTEuS5zgrWbCj7GqXZgVqhgwIY3V/R3FfzZk8XRXuIG/VI Za9KAqqH7crbYInnLtJ9FjtdOsQxwVasP8ELY= Original-Received: by 10.213.114.5 with SMTP id c5mr4035550ebq.91.1282991954567; Sat, 28 Aug 2010 03:39:14 -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 a48sm7912041eei.7.2010.08.28.03.39.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 28 Aug 2010 03:39:13 -0700 (PDT) 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: 06CXKDftj - 671f5217585e - 20100828 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 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:61281 Archived-At: I have (a long time ago) made the following .tex file: % christmasTree.tex: creates a to-do Christmas tree % Copyright 2009 Cecil Westerhof, Decebal Computing % You are free to use this code when you keep my copyright % This file should be processed with ConTeXt (texexec file) \usemodule[defaults] \setupoutput[pdf] \setuplayout[header=0cm, footer=0.25cm] \defineframed [action][width=5cm, height=3cm, offset=none] \defineframed [base] [width=3cm, height=2cm, offset=none, topframe=off] \starttext \setupheader[state=high] \setupfootertexts[\hfill {\switchtobodyfont[6pt]\copyright Decebal Computing, http://www.decebal.nl} \hfill][] [][] \setupalign[middle]\offinterlineskip {\bold\switchtobodyfont[32pt]De taken kerstboom\switchtobodyfont[16pt]\blank} \noindent\action[bottomframe=off]{} \noindent\action[bottomframe=off, rightframe=off]{}% \action[bottomframe=off]{} \noindent\dorecurse{2}{% \action[rightframe=off]{}% }% \action{} \dorecurse{7}{ \noindent \base{} } \stoptext It makes a 'Christmas tree' made of boxes. What I would like is to put some text, which are given as parameters, into the 13 boxes. But when a text does not fit into it's box, I do not want the PDF to be generated and receive an error code. Is this possible? -- 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 ___________________________________________________________________________________