ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problem with \setuparranging
@ 2020-02-13  9:38 context
  2020-02-13 14:13 ` context
  0 siblings, 1 reply; 4+ messages in thread
From: context @ 2020-02-13  9:38 UTC (permalink / raw)
  To: ConTeXt

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

Hello,

I need to create a document where page arranging is mixed somhow - so 
that some pages are to be typeset "normally", some other placed "2 pages 
onto 1 page". All pages should appear as A3 size.

A simplified code follows; its goal is:

- page 1: to be one external figure of size A3 (red),
- page 2: to be composed of one page of size A4 (green) on the left 
half, some text on the right half,
- page 3: to be one external figure of size A3 (the same as on page 1)
- page 4: to be composed of one page of size A4 on the left half, some 
text on the right half (as on page 2).

The (unwanted) result is:

- page 1: as expected,
- page 2: as expected,
- page 3: surprisignly A4 (red) (whilst the figure is of A3),
- page 4: surprisingly A3, but some text on the left half, and no green 
A4.

Is \setuparranging limited somehow or intended for another use?

How to generate "Goal.pdf" instead of "t.pdf"?

Best regards,

Lukas

[-- Attachment #2: A3.pdf --]
[-- Type: application/pdf, Size: 3597 bytes --]

[-- Attachment #3: A4.pdf --]
[-- Type: application/pdf, Size: 3597 bytes --]

[-- Attachment #4: t.mkiv --]
[-- Type: text/plain, Size: 359 bytes --]

\starttext
  \pagefigure[A3.pdf]

  \start
    \setuppapersize[A4,portrait][A3,landscape]
    \setuparranging[2SIDE]
      \pagefigure[A4.pdf]
      \input knuth
  \stop

  \pagefigure[A3.pdf]

  \start
    \setuppapersize[A4,portrait][A3,landscape]
    \setuparranging[2SIDE]
      \pagefigure[A4.pdf]
      \input knuth
  \stop
\stoptext

[-- Attachment #5: t.pdf --]
[-- Type: application/pdf, Size: 14885 bytes --]

[-- Attachment #6: Goal.pdf --]
[-- Type: application/pdf, Size: 23074 bytes --]

[-- Attachment #7: Type: text/plain, Size: 493 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with \setuparranging
  2020-02-13  9:38 Problem with \setuparranging context
@ 2020-02-13 14:13 ` context
  2020-02-26 21:36   ` Willi Egger
  0 siblings, 1 reply; 4+ messages in thread
From: context @ 2020-02-13 14:13 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

I missed to write my code:

\starttext
   \pagefigure[A3.pdf]

   \start
     \setuppapersize[A4,portrait][A3,landscape]
     \setuparranging[2SIDE]
       \pagefigure[A4.pdf]
       \input knuth
   \stop

   \pagefigure[A3.pdf]

   \start
     \setuppapersize[A4,portrait][A3,landscape]
     \setuparranging[2SIDE]
       \pagefigure[A4.pdf]
       \input knuth
   \stop
\stoptext

Any idea what I am doing wrong?

Best regards,

Lukas

On 2020-02-13 10:38, context@vivaldi.net wrote:
> Hello,
> 
> I need to create a document where page arranging is mixed somhow - so
> that some pages are to be typeset "normally", some other placed "2
> pages onto 1 page". All pages should appear as A3 size.
> 
> A simplified code follows; its goal is:
> 
> - page 1: to be one external figure of size A3 (red),
> - page 2: to be composed of one page of size A4 (green) on the left
> half, some text on the right half,
> - page 3: to be one external figure of size A3 (the same as on page 1)
> - page 4: to be composed of one page of size A4 on the left half, some
> text on the right half (as on page 2).
> 
> The (unwanted) result is:
> 
> - page 1: as expected,
> - page 2: as expected,
> - page 3: surprisignly A4 (red) (whilst the figure is of A3),
> - page 4: surprisingly A3, but some text on the left half, and no green 
> A4.
> 
> Is \setuparranging limited somehow or intended for another use?
> 
> How to generate "Goal.pdf" instead of "t.pdf"?
> 
> Best regards,
> 
> Lukas
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with \setuparranging
  2020-02-13 14:13 ` context
@ 2020-02-26 21:36   ` Willi Egger
  2020-02-27  8:01     ` context
  0 siblings, 1 reply; 4+ messages in thread
From: Willi Egger @ 2020-02-26 21:36 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

When looking at your setup, then it appears, that you start arranging two times. This is not how arranging works. — Context will first compile the whole document as single pages and only after all is ok, it will loop over the pages and arrange them. So it is not possible to mix e.g. A4 portrait pages with A3 landscape pages in an imposition run.

Willi

> On 13 Feb 2020, at 15:13, context@vivaldi.net wrote:
> 
> Hello,
> 
> I missed to write my code:
> 
> \starttext
> \pagefigure[A3.pdf]
> 
> \start
>  \setuppapersize[A4,portrait][A3,landscape]
>  \setuparranging[2SIDE]
>    \pagefigure[A4.pdf]
>    \input knuth
> \stop
> 
> \pagefigure[A3.pdf]
> 
> \start
>  \setuppapersize[A4,portrait][A3,landscape]
>  \setuparranging[2SIDE]
>    \pagefigure[A4.pdf]
>    \input knuth
> \stop
> \stoptext
> 
> Any idea what I am doing wrong?
> 
> Best regards,
> 
> Lukas
> 
> On 2020-02-13 10:38, context@vivaldi.net wrote:
>> Hello,
>> I need to create a document where page arranging is mixed somhow - so
>> that some pages are to be typeset "normally", some other placed "2
>> pages onto 1 page". All pages should appear as A3 size.
>> A simplified code follows; its goal is:
>> - page 1: to be one external figure of size A3 (red),
>> - page 2: to be composed of one page of size A4 (green) on the left
>> half, some text on the right half,
>> - page 3: to be one external figure of size A3 (the same as on page 1)
>> - page 4: to be composed of one page of size A4 on the left half, some
>> text on the right half (as on page 2).
>> The (unwanted) result is:
>> - page 1: as expected,
>> - page 2: as expected,
>> - page 3: surprisignly A4 (red) (whilst the figure is of A3),
>> - page 4: surprisingly A3, but some text on the left half, and no green A4.
>> Is \setuparranging limited somehow or intended for another use?
>> How to generate "Goal.pdf" instead of "t.pdf"?
>> Best regards,
>> Lukas
> ___________________________________________________________________________________
> 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://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Problem with \setuparranging
  2020-02-26 21:36   ` Willi Egger
@ 2020-02-27  8:01     ` context
  0 siblings, 0 replies; 4+ messages in thread
From: context @ 2020-02-27  8:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello,

thanks for explanation - so I'll look for another approach.

Best regards,

Lukas


On 2020-02-26 22:36, Willi Egger wrote:
> When looking at your setup, then it appears, that you start arranging
> two times. This is not how arranging works. — Context will first
> compile the whole document as single pages and only after all is ok,
> it will loop over the pages and arrange them. So it is not possible to
> mix e.g. A4 portrait pages with A3 landscape pages in an imposition
> run.
> 
> Willi
> 
>> On 13 Feb 2020, at 15:13, context@vivaldi.net wrote:
>> 
>> Hello,
>> 
>> I missed to write my code:
>> 
>> \starttext
>> \pagefigure[A3.pdf]
>> 
>> \start
>>  \setuppapersize[A4,portrait][A3,landscape]
>>  \setuparranging[2SIDE]
>>    \pagefigure[A4.pdf]
>>    \input knuth
>> \stop
>> 
>> \pagefigure[A3.pdf]
>> 
>> \start
>>  \setuppapersize[A4,portrait][A3,landscape]
>>  \setuparranging[2SIDE]
>>    \pagefigure[A4.pdf]
>>    \input knuth
>> \stop
>> \stoptext
>> 
>> Any idea what I am doing wrong?
>> 
>> Best regards,
>> 
>> Lukas
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-02-27  8:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-13  9:38 Problem with \setuparranging context
2020-02-13 14:13 ` context
2020-02-26 21:36   ` Willi Egger
2020-02-27  8:01     ` context

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