ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: \combinepages with negative distance
Date: Tue, 18 Nov 2003 23:06:26 +0100	[thread overview]
Message-ID: <6.0.0.22.2.20031118230420.02823c50@server-1> (raw)
In-Reply-To: <20031118151821.GA27792@physik.fu-berlin.de>

At 16:18 18/11/2003, you wrote:
>Hi,
>
>I have a A5 document (as PDF file) which should be nx=2,ny=1 placed on a
>landscape A4 paper.
>The problem is that I want to have more whitespace on the left side for
>stapleing/punching which can easiest be done by letting the included
>pages overlap. I tried distance=-4cm but it didn't work as expected.
>
>Desired result:
>
>+---+-------------+------------+
>|   |  first a5 . | second a5  |
>|   |           . |            |
>|   |           . |            |
>|   |           . |            |
>+---+-------------+------------+
>  |              ^^^ - included pages overlap
>  | extra wide margin
>
>I tried:
>   \setuppapersize[a5,landscape][a4,landscape]
>   \combinepages[main.pdf][nx=2,ny=1,frame=on,distance=-4cm]

How about ...

\setuppapersize
   [A4,landscape]
   [A4,landscape]

\setuplayout
   [height=middle,width=middle,
    header=0pt,footer=0pt,
    topspace=1cm,
    cutspace=1cm,backspace=3cm]

\newcounter\DirtyTrickCounter

\startsetups[verydirtytrick]

   \doglobal\increment\DirtyTrickCounter

   \ifodd\DirtyTrickCounter
      \hbox to \overlaywidth{\hskip1cm\foregroundbox}
   \fi

\stopsetups

\defineoverlay
   [verydirtytrick]
   [\setups{verydirtytrick}]

\starttext

\combinepages
   [mag-0004-000.pdf]
   [nx=2,ny=1,
    background=verydirtytrick,
    frame=on]

\stoptext

Dirty eh?

Hans  

      parent reply	other threads:[~2003-11-18 22:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-18 15:18 Tobias Burnus
2003-11-18 20:15 ` Willi Egger
2003-11-18 21:38   ` Tobias Burnus
2003-11-18 22:06 ` Hans Hagen [this message]

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=6.0.0.22.2.20031118230420.02823c50@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).