Re: [NTG-context] different page sizes on one sheet

2014-02-27 Thread amerke

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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-27 Thread Aditya Mahajan

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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-26 Thread amerke

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.me...@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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-26 Thread Rudolf Bahr
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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-26 Thread Rudolf Bahr
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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-25 Thread amerke

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 amerkeartur.me...@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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-25 Thread Wolfgang Schuster

Am 25.02.2014 um 15:32 schrieb amerke artur.me...@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
___


Re: [NTG-context] different page sizes on one sheet

2014-02-24 Thread amerke

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
___


___
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
___

Re: [NTG-context] different page sizes on one sheet

2014-02-24 Thread Wolfgang Schuster

Am 24.02.2014 um 20:55 schrieb amerke artur.me...@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
___