ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: crazy answer to: Stupid question of the (next?) month
Date: Wed, 24 Oct 2001 21:05:09 +0200	[thread overview]
Message-ID: <5.1.0.14.1.20011024210248.030c6818@server-1> (raw)
In-Reply-To: <1412906089.20011023231209@bigfoot.com>

At 11:12 PM 10/23/2001 +0200, Giuseppe Bilotta wrote:
>Hello,
>
>here I am, with my usual absurd requests ... today I'd like to
>know how to do the following.
>
>I'd like each page to have an 'indefinite' length, clipped each
>time at a certain sectionlevel. For example, each page would be a
>chapter long (yes, not the other way round). TeX can do things
>like this, but there's the usual 5.7 meters limit (about 25 A4
>pages). Of course such a thing only makes sense in PDF production
>mode, because DVI viewers are not friendly with multiple page
>sizes per document.

you're lucky that i can watch the news and write macros at the same time so 
here's the answer to your absurd request:

% output=pdftex

% a rather pervert and idiot style for g.b.

\definepapersize [idiot] [width=20cm,height=400cm]

\startsetups main

   \setuppapersize
     [idiot] [idiot]

   \setuplayout
     [height=middle,topspace=2cm,header=2cm,footer=2cm,
      width=middle]

\stopsetups

\startsetups page

   \setbox\normalpagebox=\vbox{\unvbox\normalpagebox}

   \adddimenmacro
     \ht\normalpagebox
     2\topspace
     \headerheight
     \footerheight
   \to \CrazyHeight

   \definepapersize
     [crazy] [width=20cm,height=\CrazyHeight]

   \setuppapersize
     [crazy] [crazy]

\stopsetups

\setups [main]

\prependtoks \setups [page] \to \mainoutput
\appendtoks  \setups [main] \to \mainoutput

\starttext

% hm, i would like to use the not yet public fake
% text macros here -)

\dorecurse {6}
    {\getrandomnumber \pervert {3} {5}
     \dorecurse {\pervert}
       {\input tufte
        \placefigure {} {}
        \getrandomnumber \evenmorepervert {1} {3}
        \dorecurse {\evenmorepervert}
          {\input tufte \par}}
     \page }

\stoptext

Hans

-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


  parent reply	other threads:[~2001-10-24 19:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-23 21:12 Giuseppe Bilotta
2001-10-24 16:54 ` Hans Hagen
2001-10-24 18:10   ` Re[2]: " Giuseppe Bilotta
2001-10-24 19:05 ` Hans Hagen [this message]
2001-10-25  9:35   ` crazy answer to: " Giuseppe Bilotta

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=5.1.0.14.1.20011024210248.030c6818@server-1 \
    --to=pragma@wxs.nl \
    --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).