Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-10-05 Thread luigi scarso
On Sun, Oct 2, 2011 at 7:51 PM, Wolfgang Schuster
schuster.wolfg...@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
___

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread Hans Hagen

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
___


Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread 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.

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 : bonne...@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.



smime.p7s
Description: S/MIME cryptographic signature
___
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] [Layout] Problem with ConTeXt mkII

2011-10-02 Thread Wolfgang Schuster

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
___


Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-10-01 Thread Pierre-François Bonnefoi
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 : bonne...@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.



smime.p7s
Description: S/MIME cryptographic signature
___
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] [Layout] Problem with ConTeXt mkII

2011-10-01 Thread Aditya Mahajan

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

test.pdf
Description: Adobe PDF document
___
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] [Layout] Problem with ConTeXt mkII

2011-09-29 Thread Pierre-François Bonnefoi
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 : bonne...@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.



smime.p7s
Description: S/MIME cryptographic signature
___
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] [Layout] Problem with ConTeXt mkII

2011-09-29 Thread luigi scarso
2011/9/29 Pierre-François Bonnefoi bonne...@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{1}{\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
___

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread Pierre-François Bonnefoi
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 : bonne...@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.



smime.p7s
Description: S/MIME cryptographic signature
___
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] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread luigi scarso
2011/9/28 Pierre-François Bonnefoi bonne...@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
___

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread Wolfgang Schuster

Am 28.09.2011 um 13:38 schrieb luigi scarso:

 2011/9/28 Pierre-François Bonnefoi bonne...@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
___


Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread luigi scarso
On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
schuster.wolfg...@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{1}{\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
___


Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-28 Thread Wolfgang Schuster

Am 28.09.2011 um 14:03 schrieb luigi scarso:

 On Wed, Sep 28, 2011 at 1:54 PM, Wolfgang Schuster
 schuster.wolfg...@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{1}{\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
___


Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-26 Thread luigi scarso
2011/9/25 Pierre-François Bonnefoi bonne...@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 n1
» 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
___

Re: [NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-26 Thread Pierre-François Bonnefoi
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) :

topspace1.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):
topspace5.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 :
topspace1.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 : bonne...@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.



smime.p7s
Description: S/MIME cryptographic signature
___
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] [Layout] Problem with ConTeXt mkII

2011-09-26 Thread Wolfgang Schuster

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
___


[NTG-context] [Layout] Problem with ConTeXt mkII

2011-09-25 Thread Pierre-François Bonnefoi
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 : bonne...@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.



smime.p7s
Description: S/MIME cryptographic signature
___
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
___