From: Cecil Westerhof <cldwesterhof@gmail.com>
To: NTG ConTeXt mailing list <ntg-context@ntg.nl>
Subject: Filling boxes
Date: Sat, 28 Aug 2010 12:39:31 +0200 [thread overview]
Message-ID: <877hjbqavw.fsf@linux-lqcw.site> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2010-08-28 10:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-28 10:39 Cecil Westerhof [this message]
2010-08-28 14:20 ` Wolfgang Schuster
2010-08-30 15:02 ` Cecil Westerhof
2010-08-31 7:34 ` Cecil Westerhof
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877hjbqavw.fsf@linux-lqcw.site \
--to=cldwesterhof@gmail.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).