Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-02-03 Thread Peter Park Nelson
Yeah! Woo!

On Thu, Jan 26, 2012 at 2:40 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 Is MkIV a option for you? The problem had been there for a while as well but 
 now it’s fixed
 you can decide what ConTeXt should do after the first page.

 With the “state” you can control whether the layout at the second page 
 should be switched
 back to the global layout with \definelayout[…][state=start] (this is the 
 default setting) or
 it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 You have to set only what’s different from the global layout.

 \definelayout
  [first]
  [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

 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
 ___

 Wolfgang and Wagner, thank you for taking the time to respond to this.

 I am using MkIV. I just updated to the latest beta (I had been running
 one beta behind). I was intentionally not using layout inheritance in
 my \definelayout commands to eliminate the possibility of a problem in
 the inheritance mechanism.

 Interaction with columnsets also seems to be part of the problem, as I
 will try to explain.

 1.  In a layout with no columnset: \definelayout[first] creates a
 unique layout for the first page and returns to the default layout on
 page 2. BUT from page 3 onwards, the text does not go all the way to
 the bottom of the text area (although \showframe indicates that the
 text area is correct). A workaround is to add
 \definelayout[current][...parameters that undo the first-page
 parameters...].

 2.  In a layout with a columnset
 (\definecolumnset[body][n=2,balancing=yes]): use of
 \definelayout[first] causes failure with the error message below.
 Ignoring warnings and forcing Context to continue results in a pdf
 with \showframe lines drawn correctly, but text not filling the whole
 column height, as described previously.

 #

 ERROR MESSAGE:

 system           tex  error on line 70 in file J2-pagearea.tex:
 Emergency stop ...

 60       [footer]
 61       [footer]
 62
 63     \starttext
 64     \showframe
 65     \showgrid
 66
 67
 68     \startcolumnset[body]
 69
 70   \dorecurse{40}{\input tufte \par }
 71
 72     %\input tufte \par
 73
 74     \stopcolumnset
 75
 76     \stoptext
 77


 \OTRSETdoifcellelse ...er #1:\number #2\endcsname
                                                  \@EA \secondoftwoarguments...
 \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
                                                  {\global \advance \columnl...
 \redoloop -\expandrecursecontent
                                  \endofloop
 to be read again
                   {
 inserted text
                44
 \endofloop ...expr \recurselevel +\plusone \relax
                                                  }
 ...
 l.70 \dorecurse{40}{\input tufte \par }

 End of file on the terminal!

 !  == Fatal error occurred, no output PDF file produced!

 --
 Peter Park Nelson
 peter.park.nel...@gmail.com



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wagner Macedo
According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
do this by using the commands \setuplayout[yourcustomlayout] and
\setuplayout[reset] at the location you want to change the layout.

--
Wagner Macedo


On 25 January 2012 23:41, Peter Park Nelson peter.park.nel...@gmail.comwrote:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread:
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
 .

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 %%---

 setuppapersize[letter][letter]
 \setupindenting[yes, medium]

 \setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,  % no header
  headerdistance=0mm,
  footer=25mm,  % big footer
  footerdistance=5mm,
  grid=yes]

 \definecolumnset[body][n=2,balancing=yes]

 \setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

 \setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

 \starttext

 \startcolumnset[body]

 \dorecurse{20}{\input tufte\par}

 \stopcolumnset

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

Re: [NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
Wagner,

Thanks for pointing this out, it works:

\definelayout
  [1]
  [first page layout...]

\definelayout
  [2]
  [reset] % call for a reset when the second page is reached

\setuplayout
  [default layout...]

But the question of why \definelayout[first] does not work correctly
remains. Perhaps the developers will look into it.

PPN

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo wagnerluis1...@gmail.com wrote:
 According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
 do this by using the commands \setuplayout[yourcustomlayout] and
 \setuplayout[reset] at the location you want to change the layout.

 --
 Wagner Macedo


 On 25 January 2012 23:41, Peter Park Nelson peter.park.nel...@gmail.com
 wrote:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread:
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
 .

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 %%---

 setuppapersize[letter][letter]
 \setupindenting[yes, medium]

 \setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 \definecolumnset[body][n=2,balancing=yes]

 \setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

 \setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

 \starttext

 \startcolumnset[body]

 \dorecurse{20}{\input tufte\par}

 \stopcolumnset

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



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
Oh crap, I thought Wagner's solution worked but it doesn't -- quite.

\showframe indicates that the page areas are defined correctly, and
the footer frame on page 2 and later is the correct size. But Context
is not filling the text columns all the way to the bottom; The body
text is still stopping short as though the larger footer was still in
effect.

Frustrating.

On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo wagnerluis1...@gmail.com wrote:
 According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you can
 do this by using the commands \setuplayout[yourcustomlayout] and
 \setuplayout[reset] at the location you want to change the layout.

 --
 Wagner Macedo


 On 25 January 2012 23:41, Peter Park Nelson peter.park.nel...@gmail.com
 wrote:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread:
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
 .

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 %%---

 setuppapersize[letter][letter]
 \setupindenting[yes, medium]

 \setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 \definecolumnset[body][n=2,balancing=yes]

 \setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

 \setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

 \starttext

 \startcolumnset[body]

 \dorecurse{20}{\input tufte\par}

 \stopcolumnset

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



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wagner Macedo
Well, I never need this, so I thought that information was correct.

I will do some tests when I'll have time to see if works for me.

--
Wagner Macedo


On 26 January 2012 14:40, Peter Park Nelson peter.park.nel...@gmail.comwrote:

 Oh crap, I thought Wagner's solution worked but it doesn't -- quite.

 \showframe indicates that the page areas are defined correctly, and
 the footer frame on page 2 and later is the correct size. But Context
 is not filling the text columns all the way to the bottom; The body
 text is still stopping short as though the larger footer was still in
 effect.

 Frustrating.

 On Thu, Jan 26, 2012 at 8:18 AM, Wagner Macedo wagnerluis1...@gmail.com
 wrote:
  According to http://wiki.contextgarden.net/Layout#Multiple_layouts, you
 can
  do this by using the commands \setuplayout[yourcustomlayout] and
  \setuplayout[reset] at the location you want to change the layout.
 
  --
  Wagner Macedo
 
 
  On 25 January 2012 23:41, Peter Park Nelson peter.park.nel...@gmail.com
 
  wrote:
 
  First-page layout is an issue that I have asked about before, but
  maybe I am doing something wrong. Here is my question in an earlier
  thread:
 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
  .
 
  I want to define a layout for the first page of my document with
  different header and footer formatting -- specifically, no header and
  a large footer to hold publication information. Based on examples on
  Contextgarden and this list, I think my code below is correct.
  However, the first page formatting is continued on all pages of the
  document. The effect is the same when using \definelayout[first] and
  \definelayout[1].
 
  %%---
 
  setuppapersize[letter][letter]
  \setupindenting[yes, medium]
 
  \setuplayout
   [width=middle,
   backspace=15mm,
   topspace=10mm,
   height=254mm,
   header=10mm,  % normal header
   headerdistance=5mm,
   footer=5mm,
   footerdistance=5mm,
   grid=yes]
 
  \definelayout
   [first]
   [width=middle,
   backspace=15mm,
   topspace=10mm,
   height=254mm,
   header=0mm,  % no header
   headerdistance=0mm,
   footer=25mm,  % big footer
   footerdistance=5mm,
   grid=yes]
 
  \definecolumnset[body][n=2,balancing=yes]
 
  \setupheadertexts
   [This is a header]
   [pagenumber]
   [pagenumber]
   [Some text]
 
  \setupfootertexts
   [footer]
   [footer]
   [footer]
   [footer]
 
  \starttext
 
  \startcolumnset[body]
 
  \dorecurse{20}{\input tufte\par}
 
  \stopcolumnset
 
  \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
 
 ___



 --
 Peter Park Nelson
 peter.park.nel...@gmail.com

 ___
 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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Wolfgang Schuster

Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.
 
 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

Is MkIV a option for you? The problem had been there for a while as well but 
now it’s fixed
you can decide what ConTeXt should do after the first page.

With the “state” you can control whether the layout at the second page should 
be switched
back to the global layout with \definelayout[…][state=start] (this is the 
default setting) or
it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,  % no header
  headerdistance=0mm,
  footer=25mm,  % big footer
  footerdistance=5mm,
  grid=yes]

You have to set only what’s different from the global layout.

\definelayout
 [first]
 [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:

 Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 Is MkIV a option for you? The problem had been there for a while as well but 
 now it’s fixed
 you can decide what ConTeXt should do after the first page.

 With the “state” you can control whether the layout at the second page should 
 be switched
 back to the global layout with \definelayout[…][state=start] (this is the 
 default setting) or
 it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 You have to set only what’s different from the global layout.

 \definelayout
  [first]
  [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

 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
 ___

Wolfgang and Wagner, thank you for taking the time to respond to this.

I am using MkIV. I just updated to the latest beta (I had been running
one beta behind). I was intentionally not using layout inheritance in
my \definelayout commands to eliminate the possibility of a problem in
the inheritance mechanism.

Interaction with columnsets also seems to be part of the problem, as I
will try to explain.

1.  In a layout with no columnset: \definelayout[first] creates a
unique layout for the first page and returns to the default layout on
page 2. BUT from page 3 onwards, the text does not go all the way to
the bottom of the text area (although \showframe indicates that the
text area is correct). A workaround is to add
\definelayout[current][...parameters that undo the first-page
parameters...].

2.  In a layout with a columnset
(\definecolumnset[body][n=2,balancing=yes]): use of
\definelayout[first] causes failure with the error message below.
Ignoring warnings and forcing Context to continue results in a pdf
with \showframe lines drawn correctly, but text not filling the whole
column height, as described previously.

#

ERROR MESSAGE:

system   tex  error on line 70 in file J2-pagearea.tex:
Emergency stop ...

60   [footer]
61   [footer]
62
63 \starttext
64 \showframe
65 \showgrid
66
67
68 \startcolumnset[body]
69
70   \dorecurse{40}{\input tufte \par }
71
72 %\input tufte \par
73
74 \stopcolumnset
75
76 \stoptext
77


\OTRSETdoifcellelse ...er #1:\number #2\endcsname
  \@EA \secondoftwoarguments...
\@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
  {\global \advance \columnl...
\redoloop -\expandrecursecontent
  \endofloop
to be read again
   {
inserted text
44
\endofloop ...expr \recurselevel +\plusone \relax
  }
...
l.70 \dorecurse{40}{\input tufte \par }

End of file on the terminal!

!  == Fatal error occurred, no output PDF file produced!

-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout[first] does not yield to default layout on page 2

2012-01-26 Thread Peter Park Nelson
On Thu, Jan 26, 2012 at 2:40 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 On Thu, Jan 26, 2012 at 12:18 PM, Wolfgang Schuster
 schuster.wolfg...@googlemail.com wrote:

 Am 26.01.2012 um 03:41 schrieb Peter Park Nelson:

 First-page layout is an issue that I have asked about before, but
 maybe I am doing something wrong. Here is my question in an earlier
 thread: 
 http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html.

 I want to define a layout for the first page of my document with
 different header and footer formatting -- specifically, no header and
 a large footer to hold publication information. Based on examples on
 Contextgarden and this list, I think my code below is correct.
 However, the first page formatting is continued on all pages of the
 document. The effect is the same when using \definelayout[first] and
 \definelayout[1].

 Is MkIV a option for you? The problem had been there for a while as well but 
 now it’s fixed
 you can decide what ConTeXt should do after the first page.

 With the “state” you can control whether the layout at the second page 
 should be switched
 back to the global layout with \definelayout[…][state=start] (this is the 
 default setting) or
 it should remain with \definelayout[…][state=repeat].

 \definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,      % no header
  headerdistance=0mm,
  footer=25mm,      % big footer
  footerdistance=5mm,
  grid=yes]

 You have to set only what’s different from the global layout.

 \definelayout
  [first]
  [header=0mm,
  headerdistance=0mm,
  footer=25mm,
  footerdistance=5mm]

 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
 ___

 Wolfgang and Wagner, thank you for taking the time to respond to this.

 I am using MkIV. I just updated to the latest beta (I had been running
 one beta behind). I was intentionally not using layout inheritance in
 my \definelayout commands to eliminate the possibility of a problem in
 the inheritance mechanism.

 Interaction with columnsets also seems to be part of the problem, as I
 will try to explain.

 1.  In a layout with no columnset: \definelayout[first] creates a
 unique layout for the first page and returns to the default layout on
 page 2. BUT from page 3 onwards, the text does not go all the way to
 the bottom of the text area (although \showframe indicates that the
 text area is correct). A workaround is to add
 \definelayout[current][...parameters that undo the first-page
 parameters...].

 2.  In a layout with a columnset
 (\definecolumnset[body][n=2,balancing=yes]): use of
 \definelayout[first] causes failure with the error message below.
 Ignoring warnings and forcing Context to continue results in a pdf
 with \showframe lines drawn correctly, but text not filling the whole
 column height, as described previously.

 #

 ERROR MESSAGE:

 system           tex  error on line 70 in file J2-pagearea.tex:
 Emergency stop ...

 60       [footer]
 61       [footer]
 62
 63     \starttext
 64     \showframe
 65     \showgrid
 66
 67
 68     \startcolumnset[body]
 69
 70   \dorecurse{40}{\input tufte \par }
 71
 72     %\input tufte \par
 73
 74     \stopcolumnset
 75
 76     \stoptext
 77


 \OTRSETdoifcellelse ...er #1:\number #2\endcsname
                                                  \@EA \secondoftwoarguments...
 \@@ar@@3 ...ellelse {\mofcolumns }\columnlastcell
                                                  {\global \advance \columnl...
 \redoloop -\expandrecursecontent
                                  \endofloop
 to be read again
                   {
 inserted text
                44
 \endofloop ...expr \recurselevel +\plusone \relax
                                                  }
 ...
 l.70 \dorecurse{40}{\input tufte \par }

 End of file on the terminal!

 !  == Fatal error occurred, no output PDF file produced!

 --
 Peter Park Nelson
 peter.park.nel...@gmail.com

More testing with the old columns mechanism instead of columnset:

\startcolumns[n=2] produces roughly the same result as no columns, the
text stops short of the bottom of the page. However, the
\definelayout[current] workaround I mentioned does not solve the
problem in this case.

I'm quite willing to abandon the columnset mechanism if I can get a
working solution with columns.

-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
If your question is of interest to others as well, please 

[NTG-context] \definelayout[first] does not yield to default layout on page 2

2012-01-25 Thread Peter Park Nelson
First-page layout is an issue that I have asked about before, but
maybe I am doing something wrong. Here is my question in an earlier
thread: 
http://archive.contextgarden.net/message/20111228.041922.c60f9cd5.en.html
.

I want to define a layout for the first page of my document with
different header and footer formatting -- specifically, no header and
a large footer to hold publication information. Based on examples on
Contextgarden and this list, I think my code below is correct.
However, the first page formatting is continued on all pages of the
document. The effect is the same when using \definelayout[first] and
\definelayout[1].

%%---

setuppapersize[letter][letter]
\setupindenting[yes, medium]

\setuplayout
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=10mm,  % normal header
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=yes]

\definelayout
  [first]
  [width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=0mm,  % no header
  headerdistance=0mm,
  footer=25mm,  % big footer
  footerdistance=5mm,
  grid=yes]

\definecolumnset[body][n=2,balancing=yes]

\setupheadertexts
  [This is a header]
  [pagenumber]
  [pagenumber]
  [Some text]

\setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

\starttext

\startcolumnset[body]

\dorecurse{20}{\input tufte\par}

\stopcolumnset

\stoptext

%%---

Thanks,
-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout

2011-12-28 Thread Peter Park Nelson
Update with a minimal working example.

If a layout is specified for the first page
(\definelayout[first][...=...], that specification is carried on
through all subsequent pages; the layout does not return to the
default specified with \setuplayout[...=...] on the second page.

If a layout is specified for a single later page
(\definelayout[3][...=...]), that specification is carried on too. In
the case of header/footer size, the body text overruns the footer area
on subsequent pages. In the case of backspace (text width), the first
paragraph on the page with the new layout is the default layout width
but the rest are OK. (I have seen this width issue mentioned before
and it may not be possible to change this behavior, but the
header/footer size is a problem for me.)

Thanks.

%%-snip-%%

\setuppapersize[letter][letter]
\setupindenting[yes, medium]

\setuplayout[% Default page layout
  width=middle,
  backspace=20mm,
  topspace=10mm,
  header=5mm,
  headerdistance=5mm,
  footer=5mm,
  footerdistance=5mm,
  grid=tolerant]

%% First page layout does not return to default on page 2
\definelayout[first][%
  footer=25mm,
  header=25mm]

%% Text after page 3 runs over footer area:
% \definelayout[3][% Layout for page 3
%   footer=25mm,
%   header=25mm]

%% Testing a change in text width:
%\definelayout[3][%
% backspace=50mm]

%%
 HEADERS AND FOOTERS:
%%

\setuppagenumbering
  [alternative=doublesided,
   location=]

\setupheader[text]
  [state=empty,
   style=\ss]


\setupheadertexts
  [Header]
  [pagenumber]
  [pagenumber]
  [Header]

\setupfooter[text]
  [state=empty,style=bold]

\setupfootertexts
  [footer]
  [footer]
  [footer]
  [footer]

%
 TEXT STARTS HERE:
%

\showframe

\starttext

\title{Title}

\dorecurse{30}{\input tufte\par}

\stoptext

%%-snip-%%

On Tue, Dec 27, 2011 at 10:19 PM, Peter Park Nelson
peter.park.nel...@gmail.com wrote:
 The example is not working correctly for me with the 23 Dec. beta. If
 I set a larger footer size for the first page, that larger size is
 carried over to all the rest of the document.

 Here's my code:

 \setuplayout[%
  width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=5mm,
  headerdistance=5mm,
  footer=5mm, % Normal footer size
  footerdistance=5mm,
  grid=tolerant]

 \definelayout[first][% Larger footer on first page
  footer=15mm,
  footerdistance=5mm]


 On Tue, Dec 13, 2011 at 12:20 PM, Andreas Harder ahar...@uni-koblenz.de 
 wrote:

 On 13.12.2011, at 16:44, Wolfgang Schuster wrote:


 Am 13.12.2011 um 16:26 schrieb Andreas Harder:

 Hi all,

 would someone please enlighten me. What is the correct usage of 
 \definelayout?

 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]      [default]%[reset]
 \definelayout[last]   [default][footer=2cm]

 \starttext  \showframe % \checkcurrentlayout
 %% Variant A: fails with \default[unknown]
 first\page unknown=(2)\page \page unknown=(3)\page last

 %% Variant B: fails with \definelayout[2]
 % first\page unknown=(2)=last
 \stoptext

 By the way the output differs with the latest beta in comparison with the 
 latest experimental.

 Hans changed part of the \setuplayout code in the last betas (there are 
 more than you can see in the ctx suite).

 When context checks the layout (happens with \starttext and when it starts 
 a new page) it test for the following defined layouts:

 • “pagenumber”
 • “-pagenumber”
 • “last” (is only used for the last page of the document)
 • “first” (is only used for the first page of the document)
 • “unknown”
 • “current”
 • “odd” and “even” (used for left and right pages)

 All entries in this list are reserved names but you can also define your 
 own layout but in this case
 you have to enable it with \setuplayout[name].

 One of the new features in MkIV is that layout parameters can be inherited, 
 e.g. when
 you define a layout with the name “one” {\definelayout[one][..,..=..,..]) 
 and another one with
 the name two (\definelayout[two][one][..,..=..,..]) this will take the 
 values from one of there
 are nothing set for a value from one and when there is also nothing set for 
 one the global
 values are used (\setuplayout[..,..=..,..]).

 Hi Wolfgang,

 I modified the example (hopefully in a meaningful manner). I get the desired 
 output with the old beta, but it still fails with todays beta.

 \setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
 \definelayout[first]  [header=2cm]
 \definelayout[last]   [footer=2cm]
 \definelayout[current]

 \starttext  \showframe % \checkcurrentlayout
  % 

Re: [NTG-context] \definelayout

2011-12-27 Thread Peter Park Nelson
The example is not working correctly for me with the 23 Dec. beta. If
I set a larger footer size for the first page, that larger size is
carried over to all the rest of the document.

Here's my code:

\setuplayout[%
  width=middle,
  backspace=15mm,
  topspace=10mm,
  height=254mm,
  header=5mm,
  headerdistance=5mm,
  footer=5mm, % Normal footer size
  footerdistance=5mm,
  grid=tolerant]

\definelayout[first][% Larger footer on first page
  footer=15mm,
  footerdistance=5mm]


On Tue, Dec 13, 2011 at 12:20 PM, Andreas Harder ahar...@uni-koblenz.de wrote:

 On 13.12.2011, at 16:44, Wolfgang Schuster wrote:


 Am 13.12.2011 um 16:26 schrieb Andreas Harder:

 Hi all,

 would someone please enlighten me. What is the correct usage of 
 \definelayout?

 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]      [default]%[reset]
 \definelayout[last]   [default][footer=2cm]

 \starttext  \showframe % \checkcurrentlayout
 %% Variant A: fails with \default[unknown]
 first\page unknown=(2)\page \page unknown=(3)\page last

 %% Variant B: fails with \definelayout[2]
 % first\page unknown=(2)=last
 \stoptext

 By the way the output differs with the latest beta in comparison with the 
 latest experimental.

 Hans changed part of the \setuplayout code in the last betas (there are more 
 than you can see in the ctx suite).

 When context checks the layout (happens with \starttext and when it starts a 
 new page) it test for the following defined layouts:

 • “pagenumber”
 • “-pagenumber”
 • “last” (is only used for the last page of the document)
 • “first” (is only used for the first page of the document)
 • “unknown”
 • “current”
 • “odd” and “even” (used for left and right pages)

 All entries in this list are reserved names but you can also define your own 
 layout but in this case
 you have to enable it with \setuplayout[name].

 One of the new features in MkIV is that layout parameters can be inherited, 
 e.g. when
 you define a layout with the name “one” {\definelayout[one][..,..=..,..]) 
 and another one with
 the name two (\definelayout[two][one][..,..=..,..]) this will take the 
 values from one of there
 are nothing set for a value from one and when there is also nothing set for 
 one the global
 values are used (\setuplayout[..,..=..,..]).

 Hi Wolfgang,

 I modified the example (hopefully in a meaningful manner). I get the desired 
 output with the old beta, but it still fails with todays beta.

 \setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
 \definelayout[first]  [header=2cm]
 \definelayout[last]   [footer=2cm]
 \definelayout[current]

 \starttext  \showframe % \checkcurrentlayout
  % \dorecurse{2}{test\page} % last is wrong
  \dorecurse{5}{test\page} % page 2 and „last“ are wrong
 \stoptext


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



-- 
Peter Park Nelson
peter.park.nel...@gmail.com
___
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] \definelayout

2011-12-13 Thread Andreas Harder
Hi all,

would someone please enlighten me. What is the correct usage of \definelayout?

\definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
% \setuplayout[default] % needed?
\definelayout[first]  [default][header=2cm]
\definelayout[unknown][default]%[reset]
% \definelayout[2]  [default]%[reset]
\definelayout[last]   [default][footer=2cm]

\starttext  \showframe % \checkcurrentlayout
  %% Variant A: fails with \default[unknown]
  first\page unknown=(2)\page \page unknown=(3)\page last
  
  %% Variant B: fails with \definelayout[2]
  % first\page unknown=(2)=last
\stoptext

By the way the output differs with the latest beta in comparison with the 
latest experimental.


Regards
Andreas
___
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] \definelayout

2011-12-13 Thread Wolfgang Schuster

Am 13.12.2011 um 16:26 schrieb Andreas Harder:

 Hi all,
 
 would someone please enlighten me. What is the correct usage of \definelayout?
 
 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]  [default]%[reset]
 \definelayout[last]   [default][footer=2cm]
 
 \starttext  \showframe % \checkcurrentlayout
  %% Variant A: fails with \default[unknown]
  first\page unknown=(2)\page \page unknown=(3)\page last
 
  %% Variant B: fails with \definelayout[2]
  % first\page unknown=(2)=last
 \stoptext
 
 By the way the output differs with the latest beta in comparison with the 
 latest experimental.

Hans changed part of the \setuplayout code in the last betas (there are more 
than you can see in the ctx suite).

When context checks the layout (happens with \starttext and when it starts a 
new page) it test for the following defined layouts:

• “pagenumber”
• “-pagenumber”
• “last” (is only used for the last page of the document)
• “first” (is only used for the first page of the document)
• “unknown”
• “current”
• “odd” and “even” (used for left and right pages)

All entries in this list are reserved names but you can also define your own 
layout but in this case
you have to enable it with \setuplayout[name].

One of the new features in MkIV is that layout parameters can be inherited, 
e.g. when
you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and 
another one with
the name two (\definelayout[two][one][..,..=..,..]) this will take the values 
from one of there
are nothing set for a value from one and when there is also nothing set for one 
the global
values are used (\setuplayout[..,..=..,..]).

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] \definelayout

2011-12-13 Thread Andreas Harder

On 13.12.2011, at 16:44, Wolfgang Schuster wrote:

 
 Am 13.12.2011 um 16:26 schrieb Andreas Harder:
 
 Hi all,
 
 would someone please enlighten me. What is the correct usage of 
 \definelayout?
 
 \definelayout[default][width=middle,height=middle,header=0pt,footer=0pt]
 % \setuplayout[default] % needed?
 \definelayout[first]  [default][header=2cm]
 \definelayout[unknown][default]%[reset]
 % \definelayout[2]  [default]%[reset]
 \definelayout[last]   [default][footer=2cm]
 
 \starttext  \showframe % \checkcurrentlayout
 %% Variant A: fails with \default[unknown]
 first\page unknown=(2)\page \page unknown=(3)\page last
 
 %% Variant B: fails with \definelayout[2]
 % first\page unknown=(2)=last
 \stoptext
 
 By the way the output differs with the latest beta in comparison with the 
 latest experimental.
 
 Hans changed part of the \setuplayout code in the last betas (there are more 
 than you can see in the ctx suite).
 
 When context checks the layout (happens with \starttext and when it starts a 
 new page) it test for the following defined layouts:
 
 • “pagenumber”
 • “-pagenumber”
 • “last” (is only used for the last page of the document)
 • “first” (is only used for the first page of the document)
 • “unknown”
 • “current”
 • “odd” and “even” (used for left and right pages)
 
 All entries in this list are reserved names but you can also define your own 
 layout but in this case
 you have to enable it with \setuplayout[name].
 
 One of the new features in MkIV is that layout parameters can be inherited, 
 e.g. when
 you define a layout with the name “one” {\definelayout[one][..,..=..,..]) and 
 another one with
 the name two (\definelayout[two][one][..,..=..,..]) this will take the values 
 from one of there
 are nothing set for a value from one and when there is also nothing set for 
 one the global
 values are used (\setuplayout[..,..=..,..]).

Hi Wolfgang,

I modified the example (hopefully in a meaningful manner). I get the desired 
output with the old beta, but it still fails with todays beta.

\setuplayout [width=middle,height=middle,header=0pt,footer=0pt]
\definelayout[first]  [header=2cm]
\definelayout[last]   [footer=2cm]
\definelayout[current]

\starttext  \showframe % \checkcurrentlayout
  % \dorecurse{2}{test\page} % last is wrong
  \dorecurse{5}{test\page} % page 2 and „last“ are wrong
\stoptext


Andreas
___
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] definelayout and setuplayout not possible in current beta?

2009-11-11 Thread Andreas Schneider
Hi,

as it seems, setuplayout fails with a predefined layout in both MkIV and 
MkII. The attached example produces the following error:

! Missing number, treated as zero.  
 
to be read again  
 
   f
 
\@@lyindexheight -f
 
it  
 
argument ...upheight \layoutparameter \c!height
  \relax \ifdim 
\bottomspace...
\secondoftwoarguments #1#2-#2

\dorecalculatelayout ...pspace \relax \else \fi }}
  \else \global 
\makeupheigh...
\dosetuplayout ...#1}}}\fi \fi \recalculatelayout
  \checkcurrentlayout 
\prese...
...
l.9   \completecontent

Best regards,
Andreas.\definelayout[index][
  header=0cm,
  footer=0cm,
  height=fit
]

\starttext
  \setuplayout[index]
  \completecontent
\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
___


Re: [NTG-context] definelayout and setuplayout not possible in current beta?

2009-11-11 Thread Wolfgang Schuster

Am 11.11.2009 um 17:29 schrieb Andreas Schneider:

 Hi,
 
 as it seems, setuplayout fails with a predefined layout in both MkIV and 
 MkII. The attached example produces the following error:

\definelayout[index][
  header=0cm,
  footer=0cm,
  height=fit,
]

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] definelayout and setuplayout not possible in current beta?

2009-11-11 Thread Andreas Schneider
Wolfgang Schuster wrote:

 
 Am 11.11.2009 um 17:29 schrieb Andreas Schneider:
 
 Hi,
 
 as it seems, setuplayout fails with a predefined layout in both MkIV and
 MkII. The attached example produces the following error:
 
 \definelayout[index][
   header=0cm,
   footer=0cm,
   height=fit,
 ]
 
 Wolfgang

Awesome, works like I hoped it would :)
Thank you!

Best regards,
Andreas.

___
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] \definelayout question

2005-03-03 Thread Hans Hagen
Paul Tremblay wrote:
Thanks Adam for the suggestions on the wiki page.
You point out that I can use \definelayout for odd and even pages.
I assume I can use this command in place of \setuplayout?
I had a problem using \definelayout. I found that I had to use a
\setuplayout before my text, or the first page would not get formatted.
Is the ConTeXt code right below?
Also, is there any way to change the layout for the first page?
\definelayout[first] [
\definelayout[1][...]
\definetext[partStart1][header][\vbox{Chapter 1 \vskip5pt Author}]
\setuphead[part][header=partStart1]
for consistency i'd go for
\definetext
  [partStart1]
  [header]
  [\vbox{\strut Chapter 1 \vskip.25\bodyfontsize Author}]
scales nicer with changes in font and other specs
Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \definelayout question

2005-03-03 Thread Adam Lindsay
Paul,

I can't really address the bulk of your question (I consider myself a
beginner in the art of the \layout, and am still working through some of
its invocation options), but I do notice a couple things:

Paul Tremblay said this at Thu, 3 Mar 2005 02:45:01 -0500:

\definelayout[odd][
 header=2in, % the space for headers
 footer=2in, % the space for footers
 height=7in % the height of the body text
]

This (nominally, without use of page=high or some such) leaves three
inches for the body text. Unlike the right/left margin, header/footer
space is considered part of the textblock's height. I don't know the
historical reasons for this, but it makes a kind of sense.

\definelayout[even][
 header=2in, % the space for headers
 footer=2in, % the space for footers
 height=4in % the height of the body text
]

This, then, leaves zero height for the main body text, which is why I see
only a single line typeset on even pages.

\showframe is your esteemed friend in debugging these matters.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept. [EMAIL PROTECTED]
 Lancaster University, InfoLab21+44(0)1524/510.514
 Lancaster, LA1 4WA, UK Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \definelayout question

2005-03-03 Thread Hans Hagen
Adam Lindsay wrote:
\definelayout[odd][
header=2in, % the space for headers
footer=2in, % the space for footers
height=7in % the height of the body text
]

This (nominally, without use of page=high or some such) leaves three
inches for the body text. Unlike the right/left margin, header/footer
space is considered part of the textblock's height. I don't know the
historical reasons for this, but it makes a kind of sense.
just keep in mind that header and footer lines can be empty, not-present, high, 
etc, so in a sense they are part of the flow

margins are virtual things and their width influence line breaking, backgrounds 
etc, since there can be multiple margins it does not make sense to define 
back-of-page - text as being the margin, because then we would need other 
variables to set the real ones; backspace (in dutch 'rugwit' is a better name i 
think) is more convenient

Hans
-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] \definelayout question

2005-03-02 Thread Paul Tremblay
Thanks Adam for the suggestions on the wiki page.

You point out that I can use \definelayout for odd and even pages.
I assume I can use this command in place of \setuplayout?

I had a problem using \definelayout. I found that I had to use a
\setuplayout before my text, or the first page would not get formatted.
Is the ConTeXt code right below?

Also, is there any way to change the layout for the first page?

\definelayout[first] [

Thanks

Paul



\part{}

\definelayout[odd][
 topspace=.5in, % the space at the very top of the page
 backspace=3in,  % the space in the gutter 
 header=2in, % the space for headers
 footer=2in, % the space for footers
 leftmargin=1in, % the space for margin notes
 rightmargin=1.5in, % the space for right margin notes
 width=3in, % the width of the body text
 height=7in % the height of the body text
]

\definelayout[even][
 topspace=.5in, % the space at the very top of the page
 backspace=3in,  % the space in the gutter 
 header=2in, % the space for headers
 footer=2in, % the space for footers
 leftmargin=1in, % the space for margin notes
 rightmargin=1.5in, % the space for right margin notes
 width=3in, % the width of the body text
 height=4in % the height of the body text
]

\setuplayout
% the header for the first page of part 1
\definetext[partStart1][header][\vbox{Chapter 1 \vskip5pt Author}]
\setuphead[part][header=partStart1]

-- 


*Paul Tremblay *
[EMAIL PROTECTED]*

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context