ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* different page sizes on one sheet
@ 2014-02-24  7:14 Artur Merke
  2014-02-24 19:55 ` amerke
  0 siblings, 1 reply; 12+ messages in thread
From: Artur Merke @ 2014-02-24  7:14 UTC (permalink / raw)
  To: ntg-context

[-- Attachment #1: Type: text/plain, Size: 1355 bytes --]

hi,

i'm new to the list and also pretty new to ConTeXt (but I used LaTeX for 
a lot of years), but need a quite complicated
page setup right in the beginning:

i have a combination of two A5 pages and four A6 pages and i'd like to 
put them on one double
sided A4 paper sheet (please use monotyped font to see the scheme correctly)

+----------+----------+
|          |          |
|   A6     |          |
|          |          |
+----------+    A5    +
|          |          |
|   A6     |          |
|          |          |
+----------+----------+

the same for the back page.

in the end cutting the A4 sheet should let the A5 pages and A6 pages 
undestroyed :-)

i have tried combining

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]

but didn't get a satisfying result because of different page sizes 
involved ...

any ideas?

cheers

artur

ps. here my starting point:

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A5][A4,landscape]
\starttext
Page 1. A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. A5 Portrait \page
Page 3. A6 Portrait \page
\setuppapersize[A5][A4,landscape]
Page 1. backside A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. backside A5 Portrait \page
Page 3. backside A6 Portrait \page
\stoptext




[-- Attachment #2: untitled-[2].html --]
[-- Type: text/html, Size: 2590 bytes --]

[-- Attachment #3: 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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-24  7:14 different page sizes on one sheet Artur Merke
@ 2014-02-24 19:55 ` amerke
  2014-02-24 21:42   ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: amerke @ 2014-02-24 19:55 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 2474 bytes --]

hi again,

a simplified setup with two A6 and one A5 page on one sheet of A4 paper 
(no back page in this case) would also be a great starting point ...

+----------+----------+
|          |          |
|   A6     |          |
|          |          |
+----------+    A5    +
|          |          |
|   A6     |          |
|          |          |
+----------+----------+



please also answer if it's not possible with ConTeXt at all, so i can 
start looking for other options as soon as possible.

any help is appreciated

artur


On 02/24/2014 08:14 AM, Artur Merke wrote:
> hi,
>
> i'm new to the list and also pretty new to ConTeXt (but I used LaTeX for
> a lot of years), but need a quite complicated
> page setup right in the beginning:
>
> i have a combination of two A5 pages and four A6 pages and i'd like to
> put them on one double
> sided A4 paper sheet (please use monotyped font to see the scheme correctly)
>
> +----------+----------+
> |          |          |
> |   A6     |          |
> |          |          |
> +----------+    A5    +
> |          |          |
> |   A6     |          |
> |          |          |
> +----------+----------+
>
> the same for the back page.
>
> in the end cutting the A4 sheet should let the A5 pages and A6 pages
> undestroyed :-)
>
> i have tried combining
>
> \setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
> \setuparranging[XY]
>
> but didn't get a satisfying result because of different page sizes
> involved ...
>
> any ideas?
>
> cheers
>
> artur
>
> ps. here my starting point:
>
> \setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
> \setuparranging[XY]
> \showframe[cut=true]
>
> \setuppapersize[A5][A4,landscape]
> \starttext
> Page 1. A5 Portrait \page
> \setuppapersize[A6][A4]
> Page 2. A5 Portrait \page
> Page 3. A6 Portrait \page
> \setuppapersize[A5][A4,landscape]
> Page 1. backside A5 Portrait \page
> \setuppapersize[A6][A4]
> Page 2. backside A5 Portrait \page
> Page 3. backside A6 Portrait \page
> \stoptext
>
>
>
>
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3469 bytes --]

[-- 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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-24 19:55 ` amerke
@ 2014-02-24 21:42   ` Wolfgang Schuster
  2014-02-25 14:32     ` amerke
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2014-02-24 21:42 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 24.02.2014 um 20:55 schrieb amerke <artur.merke@udo.edu>:

> hi again,
> 
> a simplified setup with two A6 and one A5 page on one sheet of A4 paper (no back page in this case) would also be a great starting point ...
> 
> +----------+----------+
> |          |          |
> |   A6     |          |
> |          |          |
> +----------+    A5    +
> |          |          |
> |   A6     |          |
> |          |          |
> +----------+----------+
> 
> 
> please also answer if it's not possible with ConTeXt at all, so i can start looking for other options as soon as possible.

I won’t say it’s impossible but you have to write your own imposition alternative because
the predefined alternatives expect pages of the same size.

Wolfgang

___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-24 21:42   ` Wolfgang Schuster
@ 2014-02-25 14:32     ` amerke
  2014-02-25 22:28       ` Wolfgang Schuster
  0 siblings, 1 reply; 12+ messages in thread
From: amerke @ 2014-02-25 14:32 UTC (permalink / raw)
  To: ntg-context

hi wolfgang & list,

what/where would be a good starting point of implementing such a feature 
... ?
do i have to hack ConTeXt source code for this or can it be done with a 
user defined macro?

my plan for now will be: to produce the pages with ConTeXt and produce 
then directly
a PDF file, which will include the generated pages at the right position.

but a pure ConTeXt solution would be nice in the end ...

cheers

artur


On 02/24/2014 10:42 PM, Wolfgang Schuster wrote:
> Am 24.02.2014 um 20:55 schrieb amerke<artur.merke@udo.edu>:
>
>> hi again,
>>
>> a simplified setup with two A6 and one A5 page on one sheet of A4 paper (no back page in this case) would also be a great starting point ...
>>
>> +----------+----------+
>> |          |          |
>> |   A6     |          |
>> |          |          |
>> +----------+    A5    +
>> |          |          |
>> |   A6     |          |
>> |          |          |
>> +----------+----------+
>>
>>
>> please also answer if it's not possible with ConTeXt at all, so i can start looking for other options as soon as possible.
> I won’t say it’s impossible but you have to write your own imposition alternative because
> the predefined alternatives expect pages of the same size.
>
> Wolfgang
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-25 14:32     ` amerke
@ 2014-02-25 22:28       ` Wolfgang Schuster
  2014-02-26 14:37         ` amerke
  0 siblings, 1 reply; 12+ messages in thread
From: Wolfgang Schuster @ 2014-02-25 22:28 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 25.02.2014 um 15:32 schrieb amerke <artur.merke@udo.edu>:

> hi wolfgang & list,
> 
> what/where would be a good starting point of implementing such a feature ... ?
> do i have to hack ConTeXt source code for this or can it be done with a user defined macro?
> 
> my plan for now will be: to produce the pages with ConTeXt and produce then directly
> a PDF file, which will include the generated pages at the right position.
> 
> but a pure ConTeXt solution would be nice in the end …

Context has a interface which can be used to save finished pages before the page
is put in the pdf file but what you want can only be done with low level tex code.

The difficulty depends on your requirements and your own tex skills to write it.

Wolfgang
___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-25 22:28       ` Wolfgang Schuster
@ 2014-02-26 14:37         ` amerke
  2014-02-26 14:58           ` Rudolf Bahr
  2014-02-26 16:46           ` Rudolf Bahr
  0 siblings, 2 replies; 12+ messages in thread
From: amerke @ 2014-02-26 14:37 UTC (permalink / raw)
  To: ntg-context

hi all,

using

\setuppaper[nx=2, ny=2]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A4]
\starttext
\setuppapersize[A6][A4]
Page 1. A6 Portrait \input knuth \page
Page 2. A6 Portrait \input knuth \page
\setuppapersize[A5,landscape][A4]
Page 3. A5
\input knuth
\stoptext

i ALMOST get the wished layout. the only problem is, that the A5 page is 
in landscape mode.

is there a kind of quick hack to change the orientation of the A5 page 
to protrait, by leaving
\setuppapersize[A5,landscape][A4]
as it stands (othewise the layout doesn't function)?

artur



On 02/25/2014 11:28 PM, Wolfgang Schuster wrote:
> Am 25.02.2014 um 15:32 schrieb amerke <artur.merke@udo.edu>:
>
>> hi wolfgang & list,
>>
>> what/where would be a good starting point of implementing such a feature ... ?
>> do i have to hack ConTeXt source code for this or can it be done with a user defined macro?
>>
>> my plan for now will be: to produce the pages with ConTeXt and produce then directly
>> a PDF file, which will include the generated pages at the right position.
>>
>> but a pure ConTeXt solution would be nice in the end …
> Context has a interface which can be used to save finished pages before the page
> is put in the pdf file but what you want can only be done with low level tex code.
>
> The difficulty depends on your requirements and your own tex skills to write it.
>
> Wolfgang
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-26 14:37         ` amerke
@ 2014-02-26 14:58           ` Rudolf Bahr
  2014-02-26 16:46           ` Rudolf Bahr
  1 sibling, 0 replies; 12+ messages in thread
From: Rudolf Bahr @ 2014-02-26 14:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Feb 26, 2014 at 03:37:48PM +0100, amerke wrote:
> hi all,
> 
> using
> 
> \setuppaper[nx=2, ny=2]
> \setuparranging[XY]
> \showframe[cut=true]
> 
> \setuppapersize[A4]
> \starttext
> \setuppapersize[A6][A4]
> Page 1. A6 Portrait \input knuth \page
> Page 2. A6 Portrait \input knuth \page
> \setuppapersize[A5,landscape][A4]
> Page 3. A5
> \input knuth
> \stoptext
> 
> i ALMOST get the wished layout. the only problem is, that the A5
> page is in landscape mode.
> 
> is there a kind of quick hack to change the orientation of the A5
> page to protrait, by leaving
> \setuppapersize[A5,landscape][A4]
> as it stands (othewise the layout doesn't function)?
> 
> artur
> 

Hello Artur,

Wonderful!
Would rotating the A5-text by 90° solve your problem? Not tested and  I fear, the pagenumber
will remain on the side.

Rudolf

___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-26 14:37         ` amerke
  2014-02-26 14:58           ` Rudolf Bahr
@ 2014-02-26 16:46           ` Rudolf Bahr
  2014-02-27  8:10             ` amerke
  1 sibling, 1 reply; 12+ messages in thread
From: Rudolf Bahr @ 2014-02-26 16:46 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Feb 26, 2014 at 03:37:48PM +0100, amerke wrote:
> hi all,
> 
> using
> 
> \setuppaper[nx=2, ny=2]
> \setuparranging[XY]
> \showframe[cut=true]
> 
> \setuppapersize[A4]
> \starttext
> \setuppapersize[A6][A4]
> Page 1. A6 Portrait \input knuth \page
> Page 2. A6 Portrait \input knuth \page
> \setuppapersize[A5,landscape][A4]
> Page 3. A5
> \input knuth
> \stoptext
> 
> i ALMOST get the wished layout. the only problem is, that the A5
> page is in landscape mode.
> 
> is there a kind of quick hack to change the orientation of the A5
> page to protrait, by leaving
> \setuppapersize[A5,landscape][A4]
> as it stands (othewise the layout doesn't function)?
> 
> artur


Hello Artur,

meanwhile I played a bit and got:

% ------------------------------------------------
\setuppaper[nx=2, ny=2]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A4]
\starttext
\setuppapersize[A6][A4]
Page 1. A6 Portrait \input knuth \page
Page 2. A6 Portrait \input knuth \page
\setuppapersize[A5,landscape][A4]
\rotate[rotation=90]
        {
        \vbox to 100mm
                {
                \hsize=80mm
                Page 3. A5
                \input knuth
                }
        }
\stoptext
% ------------------------------------------------

Ofcourse, the pagenumber remains, where it has been before.

Greetings,
Rudolf

___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-26 16:46           ` Rudolf Bahr
@ 2014-02-27  8:10             ` amerke
  2014-02-27 15:43               ` Aditya Mahajan
  0 siblings, 1 reply; 12+ messages in thread
From: amerke @ 2014-02-27  8:10 UTC (permalink / raw)
  To: ntg-context

hi rudolf (& list),

thank you for your 'quick hack', it's ok for my current solution. page 
number, margins and background and stuff like grid alignment are still a 
problem ...

but, i suppose, there must be :-) a tiny piece of code in ConTeXt, where 
the rotation of the whole page can be achieved (but still treating the 
page as a landscape page for the above setup arranging layer)

maybe someone knows how to do it and can share his knowledge ... ?

cheers

artur


On 02/26/2014 05:46 PM, Rudolf Bahr wrote:
> On Wed, Feb 26, 2014 at 03:37:48PM +0100, amerke wrote:
>> hi all,
>>
>> using
>>
>> \setuppaper[nx=2, ny=2]
>> \setuparranging[XY]
>> \showframe[cut=true]
>>
>> \setuppapersize[A4]
>> \starttext
>> \setuppapersize[A6][A4]
>> Page 1. A6 Portrait \input knuth \page
>> Page 2. A6 Portrait \input knuth \page
>> \setuppapersize[A5,landscape][A4]
>> Page 3. A5
>> \input knuth
>> \stoptext
>>
>> i ALMOST get the wished layout. the only problem is, that the A5
>> page is in landscape mode.
>>
>> is there a kind of quick hack to change the orientation of the A5
>> page to protrait, by leaving
>> \setuppapersize[A5,landscape][A4]
>> as it stands (othewise the layout doesn't function)?
>>
>> artur
>
> Hello Artur,
>
> meanwhile I played a bit and got:
>
> % ------------------------------------------------
> \setuppaper[nx=2, ny=2]
> \setuparranging[XY]
> \showframe[cut=true]
>
> \setuppapersize[A4]
> \starttext
> \setuppapersize[A6][A4]
> Page 1. A6 Portrait \input knuth \page
> Page 2. A6 Portrait \input knuth \page
> \setuppapersize[A5,landscape][A4]
> \rotate[rotation=90]
>          {
>          \vbox to 100mm
>                  {
>                  \hsize=80mm
>                  Page 3. A5
>                  \input knuth
>                  }
>          }
> \stoptext
> % ------------------------------------------------
>
> Ofcourse, the pagenumber remains, where it has been before.
>
> Greetings,
> Rudolf
>
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________

___________________________________________________________________________________
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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-27  8:10             ` amerke
@ 2014-02-27 15:43               ` Aditya Mahajan
  2014-02-27 18:08                 ` amerke
  0 siblings, 1 reply; 12+ messages in thread
From: Aditya Mahajan @ 2014-02-27 15:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Thu, 27 Feb 2014, amerke wrote:

> hi rudolf (& list),
>
> thank you for your 'quick hack', it's ok for my current solution. page 
> number, margins and background and stuff like grid alignment are still a 
> problem ...
>
> but, i suppose, there must be :-) a tiny piece of code in ConTeXt, where the 
> rotation of the whole page can be achieved (but still treating the page as a 
> landscape page for the above setup arranging layer)
>
> maybe someone knows how to do it and can share his knowledge ... ?

Do you need interaction (hyperref in latex-speak) to work? If not, one 
possibility is the following.

You anyways have to do manual page-breaking because your sheets are of 
different size. Create a PDF with two A6 pages followed by an A5 page (and 
repeat).

Use a separate CLD (Context lua document) for arranging. Once you know the 
number of pages of the pdf (you can get this in lua as well as in tex), 
you can simple use something like (pseudo code)

for i = 1, no_of_page, 3 do
   context.setlayer( {"page"}, {x = "0", y = "0" }, { 
"\\externalfigure[file][page=i]" })
   context.setlayer( {"page"}, {x = "0", y = "0.5\\textheight" }, { 
"\\externalfigure[file][page=i+1]" })
     context.setlayer( {"page"}, {x = "0.5\\textwidth", y = "0" }, { 
"\\externalfigure[file][page=i+2]" })
end

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] 12+ messages in thread

* Re: different page sizes on one sheet
  2014-02-27 15:43               ` Aditya Mahajan
@ 2014-02-27 18:08                 ` amerke
  0 siblings, 0 replies; 12+ messages in thread
From: amerke @ 2014-02-27 18:08 UTC (permalink / raw)
  To: ntg-context

hi,

i ended up using a very flexible (open source, LUA scriptable by option) 
imposition tool:

podofoimpose (http://podofo.sourceforge.net/tools.html)

it's just an additional step to get my output done (as my ConTeXt files 
are generated by a ruby script) ...

cheers

artur

On 02/27/2014 04:43 PM, Aditya Mahajan wrote:
> On Thu, 27 Feb 2014, amerke wrote:
>
>> hi rudolf (& list),
>>
>> thank you for your 'quick hack', it's ok for my current solution. 
>> page number, margins and background and stuff like grid alignment are 
>> still a problem ...
>>
>> but, i suppose, there must be :-) a tiny piece of code in ConTeXt, 
>> where the rotation of the whole page can be achieved (but still 
>> treating the page as a landscape page for the above setup arranging 
>> layer)
>>
>> maybe someone knows how to do it and can share his knowledge ... ?
>
> Do you need interaction (hyperref in latex-speak) to work? If not, one 
> possibility is the following.
>
> You anyways have to do manual page-breaking because your sheets are of 
> different size. Create a PDF with two A6 pages followed by an A5 page 
> (and repeat).
>
> Use a separate CLD (Context lua document) for arranging. Once you know 
> the number of pages of the pdf (you can get this in lua as well as in 
> tex), you can simple use something like (pseudo code)
>
> for i = 1, no_of_page, 3 do
>   context.setlayer( {"page"}, {x = "0", y = "0" }, { 
> "\\externalfigure[file][page=i]" })
>   context.setlayer( {"page"}, {x = "0", y = "0.5\\textheight" }, { 
> "\\externalfigure[file][page=i+1]" })
>     context.setlayer( {"page"}, {x = "0.5\\textwidth", y = "0" }, { 
> "\\externalfigure[file][page=i+2]" })
> end
>
> 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
> ___________________________________________________________________________________ 
>

___________________________________________________________________________________
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] 12+ messages in thread

* different page sizes on one sheet
@ 2014-02-21 14:31 amerke
  0 siblings, 0 replies; 12+ messages in thread
From: amerke @ 2014-02-21 14:31 UTC (permalink / raw)
  To: ntg-context


[-- Attachment #1.1: Type: text/plain, Size: 1294 bytes --]

hi,

i'm new to the list and also pretty new to ConTeXt (but I used LaTeX for 
a lot of years), but need a quite complicated
page setup right in the beginning:

i have a combination of two A5 pages and four A6 pages and i'd like to 
put them on one double
sided A4 paper sheet (please use monotyped font to see the scheme correctly)

+----------+----------+
|          |          |
|   A6     |          |
|          |          |
+----------+    A5    +
|          |          |
|   A6     |          |
|          |          |
+----------+----------+

the same for the back page.

in the end cutting the A4 sheet should let the A5 pages and A6 pages 
undestroyed :-)

i have tried combining

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]

but didn't get a satisfying result because of different page sizes 
involved ...

any ideas?

cheers

artur

ps. here my starting point:

\setuppaper[nx=2, ny=2, dx=0mm, dy=0mm]
\setuparranging[XY]
\showframe[cut=true]

\setuppapersize[A5][A4,landscape]
\starttext
Page 1. A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. A5 Portrait \page
Page 3. A6 Portrait \page
\setuppapersize[A5][A4,landscape]
Page 1. backside A5 Portrait \page
\setuppapersize[A6][A4]
Page 2. backside A5 Portrait \page
Page 3. backside A6 Portrait \page
\stoptext



[-- Attachment #1.2: Type: text/html, Size: 2524 bytes --]

[-- 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] 12+ messages in thread

end of thread, other threads:[~2014-02-27 18:08 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-24  7:14 different page sizes on one sheet Artur Merke
2014-02-24 19:55 ` amerke
2014-02-24 21:42   ` Wolfgang Schuster
2014-02-25 14:32     ` amerke
2014-02-25 22:28       ` Wolfgang Schuster
2014-02-26 14:37         ` amerke
2014-02-26 14:58           ` Rudolf Bahr
2014-02-26 16:46           ` Rudolf Bahr
2014-02-27  8:10             ` amerke
2014-02-27 15:43               ` Aditya Mahajan
2014-02-27 18:08                 ` amerke
  -- strict thread matches above, loose matches on Subject: below --
2014-02-21 14:31 amerke

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