ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: [Layout] Problem with ConTeXt mkII
@ 2011-09-29 10:19 Pierre-François Bonnefoi
  2011-09-29 10:44 ` luigi scarso
  0 siblings, 1 reply; 17+ messages in thread
From: Pierre-François Bonnefoi @ 2011-09-29 10:19 UTC (permalink / raw)
  To: schuster.wolfgang; +Cc: mailing list for ConTeXt users


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

Hello Luigi, Wolfgang,

neither the first proposition, nor the second solves my problem, the size of the text area (textheight) is modified on the first page, but not well computed from the second page (it's stuck to the same value).

thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois                |    E-mail : bonnefoi@unilim.fr
Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
83, rue d'Isle                          |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE                  |                 The Avengers.


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4802 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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-29 10:19 [Layout] Problem with ConTeXt mkII Pierre-François Bonnefoi
@ 2011-09-29 10:44 ` luigi scarso
  0 siblings, 0 replies; 17+ messages in thread
From: luigi scarso @ 2011-09-29 10:44 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/9/29 Pierre-François Bonnefoi <bonnefoi@unilim.fr>:
> Hello Luigi, Wolfgang,
>
> neither the first proposition, nor the second solves my problem, the size of the text area (textheight) is modified on the first page, but not well computed from the second page (it's stuck to the same value).
Hm not here; this code looks ok

%%%%%%%%%%%%%%%%%%%%%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]


\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]

\definelayout[1][
topspace=5.2cm,
height=fit,
]

\dorecurse{10000}{\definelayout[\the\numexpr 1+\recurselevel][]}

\starttext
\showframe
\dorecurse{100}
{\input knuth}
\stoptext

I can send the pdf offlist
-- 
luigi
___________________________________________________________________________________
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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
  2011-10-02 17:51 ` Wolfgang Schuster
@ 2011-10-05 11:36   ` luigi scarso
  0 siblings, 0 replies; 17+ messages in thread
From: luigi scarso @ 2011-10-05 11:36 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Sun, Oct 2, 2011 at 7:51 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
>
> Am 02.10.2011 um 16:39 schrieb Pierre-François Bonnefoi:
>
>> Hello Aditya,
>>
>> You're the witness !
>>
>> I obtain the same document that you've obtained : look at the third page : the size of the document is smaller, the text doesn't flow correctly on this page.
>> I've tried it on my document : no success.
>
>
> Set the global layout with “\definelayout[current][..,.=.,..]”, when this layout is defined context will use it after it has used a layout for a certain page (in your case for the first page).
>
> % engine=pdftex
>
> \setuppapersize[A4][A4]
>
> \definelayout
>  [current]
>  [backspace=3cm,
>   topspace=1.5cm,
>   leftmargin=1.3cm,
>   rightmargin=0cm,
>   width=15cm,
>   leftmargindistance=0.2cm,
>   height=middle,
>   header=0cm,
>   footer=1cm]
>
> \definelayout
>  [1]
>  [topspace=5.2cm,
>   height=middle]
>
> \showframe[text][text]
>
> \setuptolerance[verytolerant,stretch]
>
> \starttext
> \dorecurse{100}{\input knuth\par}
> \stoptext
>
> Wolfgang
it seems ok .

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

* Re: [Layout] Problem with ConTeXt mkII
  2011-10-02 14:39 Pierre-François Bonnefoi
@ 2011-10-02 17:51 ` Wolfgang Schuster
  2011-10-05 11:36   ` luigi scarso
  0 siblings, 1 reply; 17+ messages in thread
From: Wolfgang Schuster @ 2011-10-02 17:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 02.10.2011 um 16:39 schrieb Pierre-François Bonnefoi:

> Hello Aditya,
> 
> You're the witness !
> 
> I obtain the same document that you've obtained : look at the third page : the size of the document is smaller, the text doesn't flow correctly on this page.
> I've tried it on my document : no success.


Set the global layout with “\definelayout[current][..,.=.,..]”, when this layout is defined context will use it after it has used a layout for a certain page (in your case for the first page).

% engine=pdftex

\setuppapersize[A4][A4]

\definelayout
  [current]
  [backspace=3cm,
   topspace=1.5cm,
   leftmargin=1.3cm,
   rightmargin=0cm,
   width=15cm,
   leftmargindistance=0.2cm,
   height=middle,
   header=0cm,
   footer=1cm]

\definelayout
  [1]
  [topspace=5.2cm,
   height=middle]

\showframe[text][text]

\setuptolerance[verytolerant,stretch]

\starttext
\dorecurse{100}{\input knuth\par}
\stoptext

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

* Re: [Layout] Problem with ConTeXt mkII
@ 2011-10-02 14:39 Pierre-François Bonnefoi
  2011-10-02 17:51 ` Wolfgang Schuster
  0 siblings, 1 reply; 17+ messages in thread
From: Pierre-François Bonnefoi @ 2011-10-02 14:39 UTC (permalink / raw)
  To: adityam; +Cc: mailing list for ConTeXt users


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

Hello Aditya,

You're the witness !

I obtain the same document that you've obtained : look at the third page : the size of the document is smaller, the text doesn't flow correctly on this page.
I've tried it on my document : no success.

For Hans, the \page make me jump ton a new page but doesn't correct the problem.

Thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois                |    E-mail : bonnefoi@unilim.fr
Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
83, rue d'Isle                          |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE                  |                 The Avengers.


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4802 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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
  2011-10-01 16:59 Pierre-François Bonnefoi
  2011-10-01 17:25 ` Aditya Mahajan
@ 2011-10-02 11:25 ` Hans Hagen
  1 sibling, 0 replies; 17+ messages in thread
From: Hans Hagen @ 2011-10-02 11:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pierre-François Bonnefoi

On 1-10-2011 18:59, Pierre-François Bonnefoi wrote:
> Hello Luigi,
>
> your solution is better...but doesn't work completely : the first page is correct, the second is not, and after this one, the end of the document is correctly formatted...
>
> hum...
> Very strange and annoying...

I haven't followed this thread but when switching layouts, make sure to 
finish the current page (\page)

Hans



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

* Re: [Layout] Problem with ConTeXt mkII
  2011-10-01 16:59 Pierre-François Bonnefoi
@ 2011-10-01 17:25 ` Aditya Mahajan
  2011-10-02 11:25 ` Hans Hagen
  1 sibling, 0 replies; 17+ messages in thread
From: Aditya Mahajan @ 2011-10-01 17:25 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: TEXT/PLAIN, Size: 853 bytes --]

On Sat, 1 Oct 2011, Pierre-François Bonnefoi wrote:

> Hello Luigi,
>
> your solution is better...but doesn't work completely : the first page is correct, the second is not, and after this one, the end of the document is correctly formatted...
>
> hum...
> Very strange and annoying...

Which version of ConTeXt you are using (see the log file)? I am using

ConTeXt  ver: 2011.09.18 22:35 MKII  fmt: 2011.9.18  int: english/english

and the following test file

\setuplayout[
   backspace=3cm, topspace=1.5cm,
   rightmargin=0cm,leftmargin=1.3cm,
   width=15cm,
   leftmargindistance=0.2cm,
   height=fit,
   header=0cm, footer=1cm,
]

\definelayout[1][topspace=5.2cm, height=fit]
\definelayout[2][]

\starttext
\showframe
\dorecurse{10}
{\input knuth
  \input ward
}
\stoptext

gives me the attached output.

Aditya

[-- Attachment #2: Type: APPLICATION/PDF, Size: 33729 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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
@ 2011-10-01 16:59 Pierre-François Bonnefoi
  2011-10-01 17:25 ` Aditya Mahajan
  2011-10-02 11:25 ` Hans Hagen
  0 siblings, 2 replies; 17+ messages in thread
From: Pierre-François Bonnefoi @ 2011-10-01 16:59 UTC (permalink / raw)
  To: luigi.scarso; +Cc: mailing list for ConTeXt users


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

Hello Luigi,

your solution is better...but doesn't work completely : the first page is correct, the second is not, and after this one, the end of the document is correctly formatted...

hum...
Very strange and annoying...

Pierre-François.

-- 
Bonnefoi Pierre-Francois                |    E-mail : bonnefoi@unilim.fr
Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
83, rue d'Isle                          |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE                  |                 The Avengers.


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4802 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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-28 12:03     ` luigi scarso
@ 2011-09-28 12:12       ` Wolfgang Schuster
  0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Schuster @ 2011-09-28 12:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users, luigi scarso


Am 28.09.2011 um 14:03 schrieb luigi scarso:

> On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
> <schuster.wolfgang@googlemail.com> wrote:
>> \definelayout expects a assignment as argument.
>> 
>> \definelayout[1][topspace=5.2cm,height=fit]
>> \definelayout[2][]
>> 
>> \setuplayout[2][reset]
>> 
>> \starttext
>> \dorecurse{10}{\input knuth\par}
>> \stoptext
>> 
>> or
>> 
>> \definelayout[current][width=12cm]
>> 
>> \definelayout[1][width=12cm,topspace=5.2cm,height=fit]
>> 
>> \starttext
>> \dorecurse{10}{\input knuth\par}
>> \stoptext
>> 
>> Wolfgang
> hm
> http://wiki.contextgarden.net/Layout
> seems to be different.
> Btw, this  works without warnings
> 
> %%%%%%%%%%%%%%%%%%%%%
> \setuptolerance[verytolerant,stretch]
> \setuppapersize[A4][A4]
> 
> 
> \setuplayout[
> backspace=3cm, topspace=1.5cm,
> rightmargin=0cm,leftmargin=1.3cm,
> width=15cm,
> leftmargindistance=0.2cm,
> height=fit,
> header=0cm, footer=1cm,
> ]
> 
> \definelayout[1][
> topspace=5.2cm,
> height=fit,
> ]
> 
> 
> \dorecurse{10000}{\definelayout[\the\numexpr 1+\recurselevel][]}
> 
> \starttext
> \dorecurse{100}{\input knuth}
> \stoptext

Why so many \definelayout calls?

\definelayout[1][topspace=5.2cm,height=fit]
\definelayout[2][]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

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

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-28 11:54   ` Wolfgang Schuster
@ 2011-09-28 12:03     ` luigi scarso
  2011-09-28 12:12       ` Wolfgang Schuster
  0 siblings, 1 reply; 17+ messages in thread
From: luigi scarso @ 2011-09-28 12:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
<schuster.wolfgang@googlemail.com> wrote:
> \definelayout expects a assignment as argument.
>
> \definelayout[1][topspace=5.2cm,height=fit]
> \definelayout[2][]
>
> \setuplayout[2][reset]
>
> \starttext
> \dorecurse{10}{\input knuth\par}
> \stoptext
>
> or
>
> \definelayout[current][width=12cm]
>
> \definelayout[1][width=12cm,topspace=5.2cm,height=fit]
>
> \starttext
> \dorecurse{10}{\input knuth\par}
> \stoptext
>
> Wolfgang
hm
http://wiki.contextgarden.net/Layout
seems to be different.
Btw, this  works without warnings

%%%%%%%%%%%%%%%%%%%%%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]


\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]

\definelayout[1][
topspace=5.2cm,
height=fit,
]


\dorecurse{10000}{\definelayout[\the\numexpr 1+\recurselevel][]}

\starttext
\dorecurse{100}{\input knuth}
\stoptext


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

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-28 11:38 ` luigi scarso
@ 2011-09-28 11:54   ` Wolfgang Schuster
  2011-09-28 12:03     ` luigi scarso
  0 siblings, 1 reply; 17+ messages in thread
From: Wolfgang Schuster @ 2011-09-28 11:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 28.09.2011 um 13:38 schrieb luigi scarso:

> 2011/9/28 Pierre-François Bonnefoi <bonnefoi@unilim.fr>:
>> Hello Wolfgang,
>> 
>> Thank you for your help, but your solution required ConTeXt mkIV, and I'm stuck to ConTeXt mkII.
>> Sorry to learn that this bug make its path to the mkIV version.
>> 
>> Could a new version of mkII could solve this bug ?
> mkii is frozen.
> Another patch is to force reset to all the pages of document, as for example
> \dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}
> or, if you are sure that your document has less than 500 pages
> \dorecurse{500}{\definelayout[\the\numexpr 1+\recurselevel][reset]}
> 
> 
> There are lots of warning, btw.

\definelayout expects a assignment as argument.

\definelayout[1][topspace=5.2cm,height=fit]
\definelayout[2][]

\setuplayout[2][reset]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

or

\definelayout[current][width=12cm]

\definelayout[1][width=12cm,topspace=5.2cm,height=fit]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

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

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-28 10:41 Pierre-François Bonnefoi
@ 2011-09-28 11:38 ` luigi scarso
  2011-09-28 11:54   ` Wolfgang Schuster
  0 siblings, 1 reply; 17+ messages in thread
From: luigi scarso @ 2011-09-28 11:38 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/9/28 Pierre-François Bonnefoi <bonnefoi@unilim.fr>:
> Hello Wolfgang,
>
> Thank you for your help, but your solution required ConTeXt mkIV, and I'm stuck to ConTeXt mkII.
> Sorry to learn that this bug make its path to the mkIV version.
>
> Could a new version of mkII could solve this bug ?
mkii is frozen.
Another patch is to force reset to all the pages of document, as for example
\dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}
or, if you are sure that your document has less than 500 pages
\dorecurse{500}{\definelayout[\the\numexpr 1+\recurselevel][reset]}


There are lots of warning, btw.


%%%%%%%%%%%%%%%%%%%%%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]


\setuplayout[
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit,
header=0cm, footer=1cm,
]

\definelayout[1][
topspace=5.2cm,
height=fit,
]

\dorecurse{1000}{\definelayout[\the\numexpr 1+\recurselevel][reset]}

\starttext
\dorecurse{100}{\input knuth}
\stoptext


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

* Re: [Layout] Problem with ConTeXt mkII
@ 2011-09-28 10:41 Pierre-François Bonnefoi
  2011-09-28 11:38 ` luigi scarso
  0 siblings, 1 reply; 17+ messages in thread
From: Pierre-François Bonnefoi @ 2011-09-28 10:41 UTC (permalink / raw)
  To: schuster.wolfgang; +Cc: mailing list for ConTeXt users


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

Hello Wolfgang,

Thank you for your help, but your solution required ConTeXt mkIV, and I'm stuck to ConTeXt mkII.
Sorry to learn that this bug make its path to the mkIV version.

Could a new version of mkII could solve this bug ?

Pierre-François.
-- 
Bonnefoi Pierre-Francois                |    E-mail : bonnefoi@unilim.fr
Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
83, rue d'Isle                          |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE                  |                 The Avengers.


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4802 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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-26 18:18 Pierre-François Bonnefoi
@ 2011-09-26 19:09 ` Wolfgang Schuster
  0 siblings, 0 replies; 17+ messages in thread
From: Wolfgang Schuster @ 2011-09-26 19:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Hans Hagen


Am 26.09.2011 um 20:18 schrieb Pierre-François Bonnefoi:

> Hello Luigi,
> 
> Thanks for the footer ;-)
> But, currently, I've some difficulties to commit to the "Don't panic !"


This is caused by a bug in the core (page-lay.mkiv), part of the code wasn’t
adapted to recent changes in the parameterhandler.

\unprotect

\def\checkcurrentoddlayout
  {\ifcsname\namedlayouthash\v!odd\c!state\endcsname
     \doif{\namedlayoutparameter\v!odd\c!state}\v!start{\changetolayout\v!odd}%
   \fi}

\def\checkcurrentevenlayout
  {\ifcsname\namedlayouthash\v!even\c!state\endcsname
     \doif{\namedlayoutparameter\v!even\c!state}\v!start{\changetolayout\v!even}%
   \fi}

\def\checkcurrentlayout % public and used in naw, so keep this name
  {\ifcsname\namedlayouthash\realfolio\c!state\endcsname
     \doif{\namedlayoutparameter\realfolio\c!state}\v!start{\changetolayout\realfolio}%
   \else\ifcsname\namedlayouthash\reverserealfolio\c!state\endcsname
     \doif{\namedlayoutparameter\reverserealfolio\c!state}\v!start{\changetolayout\reverserealfolio}%
   \else\ifcsname\namedlayouthash\v!current\c!state\endcsname
     \changetolayout\v!current % no start test ?
   \else
     \doifoddpageelse\checkcurrentoddlayout\checkcurrentevenlayout
   \fi\fi\fi}

\protect

\definelayout[current][topspace=2cm,height=middle]
\definelayout[1]      [topspace=8cm,height=14cm]

\starttext
\dorecurse{10}{\input knuth\par}
\stoptext

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

* Re: [Layout] Problem with ConTeXt mkII
@ 2011-09-26 18:18 Pierre-François Bonnefoi
  2011-09-26 19:09 ` Wolfgang Schuster
  0 siblings, 1 reply; 17+ messages in thread
From: Pierre-François Bonnefoi @ 2011-09-26 18:18 UTC (permalink / raw)
  To: luigi.scarso; +Cc: mailing list for ConTeXt users


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

Hello Luigi,

Thanks for the footer ;-)
But, currently, I've some difficulties to commit to the "Don't panic !"

I've tried the following :

%%%%%%%%%%%%%%%%%%%%%%
\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]

\setuplayout[ 
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=fit, 
header=0cm, footer=1cm, textheight=25.7cm
]

And I obtain this (with \showlayout) :

topspace	1.49979cm
height		26.6962cm
header		0.0cm
headerdistance		0.0cm
textheight		25.69635cm
footer		0.99985cm
footerdistance		0.0cm
%%%%%%%%%%%%%%%%%%%%%%

BUT, when I add the following :
%%%%%%%%%%%%%%%%%%%%%%
\definelayout[1][
topspace=5.2cm,
height=fit,
textheight=23.7cm
]
\definelayout[2][reset]

For the page (1):
topspace	5.19925cm
height		19.29726cm
header		0.0cm
headerdistance		0.0cm
textheight		18.2974cm
footer		0.99985cm
footerdistance		0.0cm

For the page (2) and the following :
topspace	1.49979cm
height		26.6962cm
header		0.0cm
headerdistance		0.0cm
textheight		18.2974cm
footer		0.99985cm
footerdistance		0.0cm
%%%%%%%%%%%%%%%%%%%%%%

The textheight is blocked to an unexpected value : 18.3cm for the whole document.

I've read and re-read the manual, but I've not found my error...

Thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois                |    E-mail : bonnefoi@unilim.fr
Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
83, rue d'Isle                          |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE                  |                 The Avengers.


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4802 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] 17+ messages in thread

* Re: [Layout] Problem with ConTeXt mkII
  2011-09-25 18:54 Pierre-François Bonnefoi
@ 2011-09-26  8:02 ` luigi scarso
  0 siblings, 0 replies; 17+ messages in thread
From: luigi scarso @ 2011-09-26  8:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

2011/9/25 Pierre-François Bonnefoi <bonnefoi@unilim.fr>:
> Hello,
>
> I use extensively ConTeXt for my work as a teacher.
>
> I run into this problem :
>
> I've defined the following layout for giving work for my students :
>
> \setuptolerance[verytolerant,stretch]
> \setuppapersize[A4][A4]
>
> \setuplayout[
> backspace=3cm, topspace=1.5cm,
> rightmargin=0cm,leftmargin=1.3cm,
> width=15cm,
> leftmargindistance=0.2cm,
> height=26.7cm,
> header=0cm, footer=1cm
> ]
>
> \definelayout[1][
> topspace=5.2cm,
> height=23cm, textheight=22cm]
>
> \definelayout[2][reset]
>
> The purpose is to give some space on the first page to put a layer with a big title (it's for a document full of exercices, an example could be found at http://ishtar.msi.unilim.fr/uploads/media/Reseaux_I_TD_1_2011_2012.pdf).
>
> But, after having the correct layout for the first page, the second page gives me a reduced textheight : the text don't flow on the lower part of the page.
>
> That could be explain as the textheight variable is not computed for the second page.
>
> This is very annoying.
>
> I've found a workaround by using the same layout for the whole document and put some blank lines on the first page.
>
> I use the following version "ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.8.31  int: english/english".
>
> Thank you for your help,

> Pierre-François.

Hm, usually it's better to say
height=fit
or
height=middle
(try \showlayout.)
Do you have a small complete example ?

PS
Resp. UE : P-F. Bonnefoi, http://ishtar.msi.unilim.fr/, « Fiche TD n\x0e1
» version du 12 septembre 2011, rédigé avec ConTEXt – Don’t Panic !
nice footer :-)



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

* [Layout] Problem with ConTeXt mkII
@ 2011-09-25 18:54 Pierre-François Bonnefoi
  2011-09-26  8:02 ` luigi scarso
  0 siblings, 1 reply; 17+ messages in thread
From: Pierre-François Bonnefoi @ 2011-09-25 18:54 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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

Hello,

I use extensively ConTeXt for my work as a teacher.

I run into this problem :

I've defined the following layout for giving work for my students :

\setuptolerance[verytolerant,stretch]
\setuppapersize[A4][A4]

\setuplayout[ 
backspace=3cm, topspace=1.5cm,
rightmargin=0cm,leftmargin=1.3cm,
width=15cm,
leftmargindistance=0.2cm,
height=26.7cm, 
header=0cm, footer=1cm
]

\definelayout[1][
topspace=5.2cm,
height=23cm, textheight=22cm]

\definelayout[2][reset]

The purpose is to give some space on the first page to put a layer with a big title (it's for a document full of exercices, an example could be found at http://ishtar.msi.unilim.fr/uploads/media/Reseaux_I_TD_1_2011_2012.pdf).

But, after having the correct layout for the first page, the second page gives me a reduced textheight : the text don't flow on the lower part of the page.

That could be explain as the textheight variable is not computed for the second page.

This is very annoying.

I've found a workaround by using the same layout for the whole document and put some blank lines on the first page.

I use the following version "ConTeXt  ver: 2011.05.18 18:04 MKII  fmt: 2011.8.31  int: english/english". 

Thank you for your help,
Pierre-François.

-- 
Bonnefoi Pierre-Francois                |    E-mail : bonnefoi@unilim.fr
Universite de Limoges, Laboratoire XLIM |       Tel : 06 28 18 03 38
83, rue d'Isle                          |  Mrs. Peel, we're needed...
87000 Limoges - FRANCE                  |                 The Avengers.


[-- Attachment #1.2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4802 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] 17+ messages in thread

end of thread, other threads:[~2011-10-05 11:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-29 10:19 [Layout] Problem with ConTeXt mkII Pierre-François Bonnefoi
2011-09-29 10:44 ` luigi scarso
  -- strict thread matches above, loose matches on Subject: below --
2011-10-02 14:39 Pierre-François Bonnefoi
2011-10-02 17:51 ` Wolfgang Schuster
2011-10-05 11:36   ` luigi scarso
2011-10-01 16:59 Pierre-François Bonnefoi
2011-10-01 17:25 ` Aditya Mahajan
2011-10-02 11:25 ` Hans Hagen
2011-09-28 10:41 Pierre-François Bonnefoi
2011-09-28 11:38 ` luigi scarso
2011-09-28 11:54   ` Wolfgang Schuster
2011-09-28 12:03     ` luigi scarso
2011-09-28 12:12       ` Wolfgang Schuster
2011-09-26 18:18 Pierre-François Bonnefoi
2011-09-26 19:09 ` Wolfgang Schuster
2011-09-25 18:54 Pierre-François Bonnefoi
2011-09-26  8:02 ` luigi scarso

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