ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Imposition and repeating pages
Date: Thu, 25 Aug 2011 18:59:32 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1108251846460.4688@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <20110826004041.0e16efe4@marcin-desktop>

On Fri, 26 Aug 2011, Marcin Borkowski wrote:

> Hi,
>
> imposition in ConTeXt is great, but...
>
> 1. When I last used it (MkII), I had to invoke texexec with the
> --arrange option or something like this.  Does it work in an easier way
> with MkIV?  (I mean, I just do context filename and don't care about
> multiple runs etc.)

In MkIV you don't need to pass --arrange. In one of my projects, I have

   \setuppapersize[halfletter][letter,landscape]
   \setuparranging[2SIDE]

(where halfletter is a user-defined page) and just calling context works.

> 2. I'd like to prepare a cheat sheet of size, say, A6, so I want *the
> same page* to be repeated 4 times on an A4 sheet.  Is there a
> "canonical" way to do it?  (I mean, other than copying-and-pasting, or
> equivalently, defining a macro and repeating it 4 times?)

You can write a macro that reads a pdf file and outputs each of its page 
four times. For example (untested):

\getfiguredimensions[file]%
\edef\NOfpages{\noffigurepages}%
\dorecurse{\NOfpages}
   {\dorecurse{4}
        {\startTEXpage
         \externalfigure[file][page=\recurselevel]%
         \stopTEXpage}}

and then do the arranging.

Aditya
___________________________________________________________________________________
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
___________________________________________________________________________________


  reply	other threads:[~2011-08-25 22:59 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-25 22:40 Marcin Borkowski
2011-08-25 22:59 ` Aditya Mahajan [this message]
2011-08-25 23:11   ` Marcin Borkowski
2011-08-25 23:19     ` Aditya Mahajan
2011-08-26  4:55       ` Marcin Borkowski
2011-08-26  7:00         ` Aditya Mahajan
2011-08-26 11:20           ` Marcin Borkowski
2011-08-25 23:20 ` Hans Hagen

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=alpine.LNX.2.02.1108251846460.4688@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --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).