ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* layout problem
@ 2009-02-09 13:51 Antoine Junod
  2009-02-09 14:02 ` Wolfgang Schuster
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Antoine Junod @ 2009-02-09 13:51 UTC (permalink / raw)
  To: ntg-context

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

Dear list,

I've got two layout problems I can't resolve by myself:

* On the left pages, in the left margin, there is a white stripe. I
  don't really understand why. I've read on the wiki that when we
  describe a layout for a double page layout, the left pages layout is
  a mirror of the right ones. And on the right ones, there are no
  white stripes...

* My 'printer' (the company that will print the booklet for me, not
  sure that the good word) asks me to provide him with a document that
  is 2mm larger and 2mm higher that the final one to be sure he can
  print precisely to the exact border of the paper. I don't want to
  magnify the whole document as it will maybe cut some
  information. Any idea on how I could achive that?

Linked is the pdf output. Below is the minimal example used to create
the pdf output.

Thanks a lot for your reply,
-AJ


Here is my setup:

\setuppapersize[A5][A4]
\setuparranging[2UP,rotated]
\setuppagenumbering
 [alternative=doublesided]
\definelayout
        [default]
        [leftmargin=0mm,rightmargin=24mm,
         topspace=0mm,backspace=10mm,
         width=115mm, height=middle]
\setuplayout[default]
\setupbodyfont[sansserif,10pt]
\enableregime[utf]
\setupcolors[state=start]
\definecolor
        [marginblue]
        [c=.71,m=.58,y=0,k=.43]
\setupbackgrounds
        [text,header,footer]
        [rightmargin]
        [background=color,backgroundcolor=marginblue]
\starttext
page de titre
\page[yes]
colophon
\page[yes]
\section{Le mot du président}
pouet
\page[yes]
toujours les bêtises d'Alain
\page[yes]
\section{Votre comité}
\stoptext


[-- Attachment #2: bad_layout.pdf --]
[-- Type: application/pdf, Size: 22361 bytes --]

[-- Attachment #3: Type: text/plain, Size: 487 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: layout problem
  2009-02-09 13:51 layout problem Antoine Junod
@ 2009-02-09 14:02 ` Wolfgang Schuster
  2009-02-09 14:20   ` Antoine Junod
  2009-02-09 18:52   ` Antoine Junod
  2009-02-10 11:05 ` Wolfgang Schuster
  2009-02-11 14:30 ` Antoine Junod
  2 siblings, 2 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2009-02-09 14:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Antoine Junod schrieb:
> Dear list,
> 
> I've got two layout problems I can't resolve by myself:
> 
> * On the left pages, in the left margin, there is a white stripe. I
>   don't really understand why. I've read on the wiki that when we
>   describe a layout for a double page layout, the left pages layout is
>   a mirror of the right ones. And on the right ones, there are no
>   white stripes...


A5 paper has not the exactly the half size as A4 paper.

A4 has a height of 297mm and A5 a width of 148mm.

297 - 2 * 148 = 1mm (the gap on the left side).

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 14:02 ` Wolfgang Schuster
@ 2009-02-09 14:20   ` Antoine Junod
  2009-02-09 16:40     ` Martin Schröder
  2009-02-09 18:52   ` Antoine Junod
  1 sibling, 1 reply; 10+ messages in thread
From: Antoine Junod @ 2009-02-09 14:20 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Wolfgang :)

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> Antoine Junod schrieb:
>> Dear list,
>> I've got two layout problems I can't resolve by myself:
>> * On the left pages, in the left margin, there is a white stripe. I
>>   don't really understand why. I've read on the wiki that when we
>>   describe a layout for a double page layout, the left pages layout is
>>   a mirror of the right ones. And on the right ones, there are no
>>   white stripes...
>
>
> A5 paper has not the exactly the half size as A4 paper.
>
> A4 has a height of 297mm and A5 a width of 148mm.
>
> 297 - 2 * 148 = 1mm (the gap on the left side).

God. I always thought it was exactly one half of A4. Thanks for the
info.

A+
-AJ
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 14:20   ` Antoine Junod
@ 2009-02-09 16:40     ` Martin Schröder
  0 siblings, 0 replies; 10+ messages in thread
From: Martin Schröder @ 2009-02-09 16:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2009/2/9 Antoine Junod <toto@tots-ns.net>:
>> A5 paper has not the exactly the half size as A4 paper.
>>
>> A4 has a height of 297mm and A5 a width of 148mm.
>>
>> 297 - 2 * 148 = 1mm (the gap on the left side).
>
> God. I always thought it was exactly one half of A4. Thanks for the
> info.

ISO 216 paper sizes are always rounded to full millimeters.

http://en.wikipedia.org/wiki/ISO_A4

Best
   Martin
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 14:02 ` Wolfgang Schuster
  2009-02-09 14:20   ` Antoine Junod
@ 2009-02-09 18:52   ` Antoine Junod
  2009-02-09 18:58     ` Wolfgang Schuster
  1 sibling, 1 reply; 10+ messages in thread
From: Antoine Junod @ 2009-02-09 18:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> Antoine Junod schrieb:
>> Dear list,
>> I've got two layout problems I can't resolve by myself:
>> * On the left pages, in the left margin, there is a white stripe. I
>>   don't really understand why. I've read on the wiki that when we
>>   describe a layout for a double page layout, the left pages layout is
>>   a mirror of the right ones. And on the right ones, there are no
>>   white stripes...
>
> A5 paper has not the exactly the half size as A4 paper.
>
> A4 has a height of 297mm and A5 a width of 148mm.
>
> 297 - 2 * 148 = 1mm (the gap on the left side).

So, for the record, the only solution I found to center my two A5
pages on the A4 one is to add veroffset=.5mm (ie, half of Wolfgang's
milimeter) to the layout definition.

If anybody has something better, feel free to complete the thread :)

All the best,
-AJ
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 18:52   ` Antoine Junod
@ 2009-02-09 18:58     ` Wolfgang Schuster
  2009-02-09 19:41       ` Antoine Junod
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2009-02-09 18:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Antoine Junod schrieb:
> Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:
> 
>> Antoine Junod schrieb:
>>> Dear list,
>>> I've got two layout problems I can't resolve by myself:
>>> * On the left pages, in the left margin, there is a white stripe. I
>>>   don't really understand why. I've read on the wiki that when we
>>>   describe a layout for a double page layout, the left pages layout is
>>>   a mirror of the right ones. And on the right ones, there are no
>>>   white stripes...
>> A5 paper has not the exactly the half size as A4 paper.
>>
>> A4 has a height of 297mm and A5 a width of 148mm.
>>
>> 297 - 2 * 148 = 1mm (the gap on the left side).
> 
> So, for the record, the only solution I found to center my two A5
> pages on the A4 one is to add veroffset=.5mm (ie, half of Wolfgang's
> milimeter) to the layout definition.
> 
> If anybody has something better, feel free to complete the thread :)

\setuplayout[location=middle]
\setuplayout[default]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 18:58     ` Wolfgang Schuster
@ 2009-02-09 19:41       ` Antoine Junod
  2009-02-09 19:51         ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Antoine Junod @ 2009-02-09 19:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:

> Antoine Junod schrieb:
>> Wolfgang Schuster <schuster.wolfgang@googlemail.com> writes:
>> 
>>> Antoine Junod schrieb:
>>>> Dear list,
>>>> I've got two layout problems I can't resolve by myself:
>>>> * On the left pages, in the left margin, there is a white stripe. I
>>>>   don't really understand why. I've read on the wiki that when we
>>>>   describe a layout for a double page layout, the left pages layout is
>>>>   a mirror of the right ones. And on the right ones, there are no
>>>>   white stripes...
>>> A5 paper has not the exactly the half size as A4 paper.
>>>
>>> A4 has a height of 297mm and A5 a width of 148mm.
>>>
>>> 297 - 2 * 148 = 1mm (the gap on the left side).
>> So, for the record, the only solution I found to center my two A5
>> pages on the A4 one is to add veroffset=.5mm (ie, half of Wolfgang's
>> milimeter) to the layout definition.
>> If anybody has something better, feel free to complete the thread :)
>
> \setuplayout[location=middle]
> \setuplayout[default]

It works... but if I put location=middle in \definelayout, as I tried,
it does not works. I'm a bit lost, right now :)

A+
-AJ
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 19:41       ` Antoine Junod
@ 2009-02-09 19:51         ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2009-02-09 19:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Antoine Junod schrieb:

>>> So, for the record, the only solution I found to center my two A5
>>> pages on the A4 one is to add veroffset=.5mm (ie, half of Wolfgang's
>>> milimeter) to the layout definition.
>>> If anybody has something better, feel free to complete the thread :)

>> \setuplayout[location=middle]
>> \setuplayout[default]
> 
> It works... but if I put location=middle in \definelayout, as I tried,
> it does not works. I'm a bit lost, right now :)

Not all setting from \setuplayout work also with \definelayout,
e.g. the location keys or the grid option.

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 13:51 layout problem Antoine Junod
  2009-02-09 14:02 ` Wolfgang Schuster
@ 2009-02-10 11:05 ` Wolfgang Schuster
  2009-02-11 14:30 ` Antoine Junod
  2 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2009-02-10 11:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Antoine Junod schrieb:

> I've got two layout problems I can't resolve by myself:
> 
> * My 'printer' (the company that will print the booklet for me, not
>   sure that the good word) asks me to provide him with a document that
>   is 2mm larger and 2mm higher that the final one to be sure he can
>   print precisely to the exact border of the paper. I don't want to
>   magnify the whole document as it will maybe cut some
>   information. Any idea on how I could achive that?

Not so easy because you can't use backgrounds tricks but it can
be done with modified page dimension.

> Here is my setup:
> 
> \setuppapersize[A5][A4]

Make the resulting page 2mm larger on each side.

\definepapersize[A5plus][width=150mm,height=214mm]
\definepapersize[A4plus][width=214mm,height=300mm]

\setuppapersize[A5plus][A4plus]

> \setuparranging[2UP,rotated]
> \setuppagenumbering
>  [alternative=doublesided]
> \definelayout
>         [default]
>         [leftmargin=0mm,rightmargin=24mm,
>          topspace=0mm,backspace=10mm,
>          width=115mm, height=middle]

\definelayout
   [default]
   [leftmargin=0mm,
    rightmargin=24mm,
    top=2mm,
    bottom=2mm,
    topspace=2mm,
    backspace=10mm,
    width=115mm,
    height=middle]

%\setuplayout[location=middle] % not necessary

> \setuplayout[default]
> \setupbodyfont[sansserif,10pt]
> \enableregime[utf]
> \setupcolors[state=start]
> \definecolor
>         [marginblue]
>         [c=.71,m=.58,y=0,k=.43]
> \setupbackgrounds
>         [text,header,footer]
>         [rightmargin]
>         [background=color,backgroundcolor=marginblue]

\setupbackgrounds
   [top,header,text,footer,bottom]
   [rightmargin]
   [background=color,backgroundcolor=marginblue]

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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

* Re: layout problem
  2009-02-09 13:51 layout problem Antoine Junod
  2009-02-09 14:02 ` Wolfgang Schuster
  2009-02-10 11:05 ` Wolfgang Schuster
@ 2009-02-11 14:30 ` Antoine Junod
  2 siblings, 0 replies; 10+ messages in thread
From: Antoine Junod @ 2009-02-11 14:30 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear all,

I follow up my own post to answer my own question:

Antoine Junod <toto@tots-ns.net> writes:

[...]

> * My 'printer' (the company that will print the booklet for me, not
>   sure that the good word) asks me to provide him with a document that
>   is 2mm larger and 2mm higher that the final one to be sure he can
>   print precisely to the exact border of the paper. I don't want to
>   magnify the whole document as it will maybe cut some
>   information. Any idea on how I could achive that?

What I did first has been to define two new paper sizes. The first
one, pca4 is the format I have to send to the printer. The second one
is exactly half size of the first one:

\definepapersize[pca4][width=212mm,height=299mm]
\definepapersize[pca5][width=149.5mm, height=212mm]

Then, I put two pca5 on one pca5:

\setuppapersize[pca5][pca4]
\setuparranging[2UP,rotated]

The only thing I changed to my layout was the outside margin
(rightmargin), to which I added pca5.width minus a5.width (that is
1.5mm).

\definelayout
        [default]
        [leftmargin=0mm,rightmargin=25.5mm, % instead of 24mm
         topspace=0mm,backspace=10mm,
         width=115mm,height=middle]

\setuplayout[location=middle]
\setuplayout[default]

This is not a good solution because the 'security' milimeters are part
of the margin (ie, if you center something in the margin, it won't be
still centered after printing / cutting).

So, if anybody has a solution to even 'extend' the borders of a given
size or put graphics on the 'container' (here, pca4), I'm a buyer :)

Thanks to everybody,
-AJ
___________________________________________________________________________________
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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2009-02-11 14:30 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-09 13:51 layout problem Antoine Junod
2009-02-09 14:02 ` Wolfgang Schuster
2009-02-09 14:20   ` Antoine Junod
2009-02-09 16:40     ` Martin Schröder
2009-02-09 18:52   ` Antoine Junod
2009-02-09 18:58     ` Wolfgang Schuster
2009-02-09 19:41       ` Antoine Junod
2009-02-09 19:51         ` Wolfgang Schuster
2009-02-10 11:05 ` Wolfgang Schuster
2009-02-11 14:30 ` Antoine Junod

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