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


[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