ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Filling boxes
@ 2010-08-28 10:39 Cecil Westerhof
  2010-08-28 14:20 ` Wolfgang Schuster
  0 siblings, 1 reply; 4+ messages in thread
From: Cecil Westerhof @ 2010-08-28 10:39 UTC (permalink / raw)
  To: NTG ConTeXt mailing list

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-31  7:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-28 10:39 Filling boxes Cecil Westerhof
2010-08-28 14:20 ` Wolfgang Schuster
2010-08-30 15:02   ` Cecil Westerhof
2010-08-31  7:34   ` Cecil Westerhof

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).