* Imposition and repeating pages
@ 2011-08-25 22:40 Marcin Borkowski
2011-08-25 22:59 ` Aditya Mahajan
2011-08-25 23:20 ` Hans Hagen
0 siblings, 2 replies; 8+ messages in thread
From: Marcin Borkowski @ 2011-08-25 22:40 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.)
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?)
TIA
--
Marcin Borkowski
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-25 22:40 Imposition and repeating pages Marcin Borkowski
@ 2011-08-25 22:59 ` Aditya Mahajan
2011-08-25 23:11 ` Marcin Borkowski
2011-08-25 23:20 ` Hans Hagen
1 sibling, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-08-25 22:59 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-25 22:59 ` Aditya Mahajan
@ 2011-08-25 23:11 ` Marcin Borkowski
2011-08-25 23:19 ` Aditya Mahajan
0 siblings, 1 reply; 8+ messages in thread
From: Marcin Borkowski @ 2011-08-25 23:11 UTC (permalink / raw)
To: ntg-context
Dnia 2011-08-25, o godz. 18:59:32
Aditya Mahajan <adityam@umich.edu> napisał(a):
> 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.
I thought so; yet another great feature of MkIV!
>
> > 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.
Thanks - but this is exactly what I do *not* want to do. My first idea
was to do something like
\def\onepageworthofmaterial{<whatever>\page}
\dorecurse{4}{\onepageworthofmaterial}
which is similar, but simpler. I thought that maybe there's another,
"ConTeXt way"... but if not, I'm fine with that.
>
> Aditya
>
--
Marcin Borkowski
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-25 23:11 ` Marcin Borkowski
@ 2011-08-25 23:19 ` Aditya Mahajan
2011-08-26 4:55 ` Marcin Borkowski
0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-08-25 23:19 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, 26 Aug 2011, Marcin Borkowski wrote:
>>> 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.
>
> Thanks - but this is exactly what I do *not* want to do. My first idea
> was to do something like
>
> \def\onepageworthofmaterial{<whatever>\page}
> \dorecurse{4}{\onepageworthofmaterial}
>
> which is similar, but simpler.
You will need to tweak the output routine for that. See the definition of
\dofinaloutput and \dopagebody. But that can be tricky.
Aditya
Fools rush in where angels fear to tread.
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-25 22:40 Imposition and repeating pages Marcin Borkowski
2011-08-25 22:59 ` Aditya Mahajan
@ 2011-08-25 23:20 ` Hans Hagen
1 sibling, 0 replies; 8+ messages in thread
From: Hans Hagen @ 2011-08-25 23:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
On 26-8-2011 00:40, Marcin Borkowski wrote:
> 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?)
\setuppapersize[A7,landscape][A4]
\setuplayout[nx=3,ny=4]
\showframe
\starttext
\dorecurse{12}{test \page}
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-25 23:19 ` Aditya Mahajan
@ 2011-08-26 4:55 ` Marcin Borkowski
2011-08-26 7:00 ` Aditya Mahajan
0 siblings, 1 reply; 8+ messages in thread
From: Marcin Borkowski @ 2011-08-26 4:55 UTC (permalink / raw)
To: ntg-context
Dnia 2011-08-25, o godz. 19:19:13
Aditya Mahajan <adityam@umich.edu> napisał(a):
> On Fri, 26 Aug 2011, Marcin Borkowski wrote:
> >
> > Thanks - but this is exactly what I do *not* want to do. My first
> > idea was to do something like
> >
> > \def\onepageworthofmaterial{<whatever>\page}
> > \dorecurse{4}{\onepageworthofmaterial}
> >
> > which is similar, but simpler.
>
> You will need to tweak the output routine for that. See the
> definition of \dofinaloutput and \dopagebody. But that can be tricky.
Why? I thought this should Just Work™?
> Aditya
--
Marcin Borkowski
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-26 4:55 ` Marcin Borkowski
@ 2011-08-26 7:00 ` Aditya Mahajan
2011-08-26 11:20 ` Marcin Borkowski
0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-08-26 7:00 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 1143 bytes --]
On Fri, 26 Aug 2011, Marcin Borkowski wrote:
> Dnia 2011-08-25, o godz. 19:19:13
> Aditya Mahajan <adityam@umich.edu> napisał(a):
>
>> On Fri, 26 Aug 2011, Marcin Borkowski wrote:
>>>
>>> Thanks - but this is exactly what I do *not* want to do. My first
>>> idea was to do something like
>>>
>>> \def\onepageworthofmaterial{<whatever>\page}
>>> \dorecurse{4}{\onepageworthofmaterial}
>>>
>>> which is similar, but simpler.
>>
>> You will need to tweak the output routine for that. See the
>> definition of \dofinaloutput and \dopagebody. But that can be tricky.
>
> Why? I thought this should Just Work™?
As long as you don't have any auto-generated numbers (\section, etc) or
references. Typesetting them multiple times will increment the number each
time. You can prevent that by enclosing the material in a \box. Then you
need to handle floats and footnotes...multiple columns....and automatical
select one page worth of material. So, either you end up effective writing
your own output routine, or tweaking the existing one.
Fortunately, Hans already had implemented this feature :)
Aditya
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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] 8+ messages in thread
* Re: Imposition and repeating pages
2011-08-26 7:00 ` Aditya Mahajan
@ 2011-08-26 11:20 ` Marcin Borkowski
0 siblings, 0 replies; 8+ messages in thread
From: Marcin Borkowski @ 2011-08-26 11:20 UTC (permalink / raw)
To: ntg-context
Dnia 2011-08-26, pią o godzinie 03:00 -0400, Aditya Mahajan pisze:
> On Fri, 26 Aug 2011, Marcin Borkowski wrote:
>
> > Dnia 2011-08-25, o godz. 19:19:13
> > Aditya Mahajan <adityam@umich.edu> napisał(a):
> >
> >> On Fri, 26 Aug 2011, Marcin Borkowski wrote:
> >>>
> >>> Thanks - but this is exactly what I do *not* want to do. My first
> >>> idea was to do something like
> >>>
> >>> \def\onepageworthofmaterial{<whatever>\page}
> >>> \dorecurse{4}{\onepageworthofmaterial}
> >>>
> >>> which is similar, but simpler.
> >>
> >> You will need to tweak the output routine for that. See the
> >> definition of \dofinaloutput and \dopagebody. But that can be tricky.
> >
> > Why? I thought this should Just Work™?
>
> As long as you don't have any auto-generated numbers (\section, etc) or
> references. Typesetting them multiple times will increment the number each
> time. You can prevent that by enclosing the material in a \box. Then you
> need to handle floats and footnotes...multiple columns....and automatical
> select one page worth of material. So, either you end up effective writing
> your own output routine, or tweaking the existing one.
Aaaah, now I get it! You're right, of course - but I was right, too,
since I didn't want to include things like that (of course, I didn't
mention it in my first post). Thanks for your explanation!
>
> Fortunately, Hans already had implemented this feature :)
>
> Aditya
Regards,
--
Marcin Borkowski
http://mbork.pl
___________________________________________________________________________________
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] 8+ messages in thread
end of thread, other threads:[~2011-08-26 11:20 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-25 22:40 Imposition and repeating pages Marcin Borkowski
2011-08-25 22:59 ` Aditya Mahajan
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
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).