Re: [NTG-context] Problem with special first page of chapter setup

2005-11-01 Thread Gerben Wierda
 Hello Gerben,

 use your second try and *remove*

 \definebuffer[chapter:quote]

 from your environment. That's was all :)

Indeed! I have no idea why this worked, but it did. Thank you very much.

G

PS. Now I only need to know how I can use \placefigure in an endnote (and
not get the figure in the main text but in the end notes chapter) and how
to get rid of the extra whitespace around a \textline


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


Re: [NTG-context] Problem with special first page of chapter setup

2005-11-01 Thread Hans Hagen

Gerben Wierda wrote:


Hello Gerben,

use your second try and *remove*

\definebuffer[chapter:quote]

from your environment. That's was all :)
   



Indeed! I have no idea why this worked, but it did. Thank you very much.

G

PS. Now I only need to know how I can use \placefigure in an endnote (and
not get the figure in the main text but in the end notes chapter) and how
to get rid of the extra whitespace around a \textline
 

unspecified behaviour but it seems to work for normal notes (fixed 
directive):


\starttext

test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test
test \footnote {test \placefigure[fixed]{}{}} test

\stoptext



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


Re: [NTG-context] Problem with special first page of chapter setup

2005-10-31 Thread Gerben Wierda
Thanks for the tip but I am having trouble getting this to work. I  
now have in my main text:


===
\startbuffer [chapter:quote]
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no  
one can

say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  
no place.

You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopbuffer
\chapter[h:foo]{Foo}
===

and in my environment file:

===
\definebuffer[chapter:quote]

\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before

\page[left]

\noheaderandfooterlines

\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \getbuffer [chapter:quote]
\stopnarrower
\stopalignment

\resetsetups[quote:text]

\page[right]

\noheaderandfooterlines

\blank[force,2*big]

\stopsetups

\startsetups chapter:after

\blank[3*big]

\stopsetups
===

But now I get *nothing* on the page facing the chapter start. I  
changed it to


===
\startbuffer [chapter:quote]
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no  
one can

say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  
no place.

You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopbuffer
\startsetups [chapter:quote]
\getbuffer [chapter:quote]
\stopsetups

\chapter[h:foo]{Foo}
===

and in my environment file:

===
\definebuffer[chapter:quote]

\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

\startsetups chapter:before

\page[left]

\noheaderandfooterlines

\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \setups [chapter:quote]
\stopnarrower
\stopalignment

\resetsetups[quote:text]

\page[right]

\noheaderandfooterlines

\blank[force,2*big]

\stopsetups

\startsetups chapter:after

\blank[3*big]

\stopsetups
===

But that doesn't help either. Still nothing.

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


Re: [NTG-context] Problem with special first page of chapter setup

2005-10-31 Thread Peter Rolf
Hello Gerben,

use your second try and *remove*

\definebuffer[chapter:quote]

from your environment. That's was all :)

Greetings,

Peter


Gerben Wierda wrote:
 Thanks for the tip but I am having trouble getting this to work. I  now
 have in my main text:
 
 ===
 \startbuffer [chapter:quote]
 Lee Chong's is to the right of the vacant lot (although why
 it is called vacant when it is piled high with old boilers, with rusting
 pipes, with great square timbers, and stacks of five-gallon cans, no 
 one can
 say).\crlf
 {\tf John Steinbeck} --- Cannery Row\crlf
 \crlf
 Doc explained patiently, ``Both players know exactly the same
 things. The game is played in the mind.''\crlf
 ``I don't get it.''\crlf
 ``Well, look! You can't cheat in mathematics or poetry or music because
 they're based on truth. Untruth or cheating is just foreign, it has  no
 place.
 You can't cheat in arithmetic.\crlf
 {\tf John Steinbeck} --- Sweet Thursday
 \stopbuffer
 \chapter[h:foo]{Foo}
 ===
 
 and in my environment file:
 
 ===
 \definebuffer[chapter:quote]
 
 \setuphead
   [chapter]
   [page=,
before={\setups[chapter:before]},
after={\setups[chapter:after]}]
 
 \startsetups chapter:before
 
 \page[left]
 
 \noheaderandfooterlines
 
 \startalignment[left,nothyphenated]
 \startnarrower[4*left]
 \noindent \em \getbuffer [chapter:quote]
 \stopnarrower
 \stopalignment
 
 \resetsetups[quote:text]
 
 \page[right]
 
 \noheaderandfooterlines
 
 \blank[force,2*big]
 
 \stopsetups
 
 \startsetups chapter:after
 
 \blank[3*big]
 
 \stopsetups
 ===
 
 But now I get *nothing* on the page facing the chapter start. I  changed
 it to
 
 ===
 \startbuffer [chapter:quote]
 Lee Chong's is to the right of the vacant lot (although why
 it is called vacant when it is piled high with old boilers, with rusting
 pipes, with great square timbers, and stacks of five-gallon cans, no 
 one can
 say).\crlf
 {\tf John Steinbeck} --- Cannery Row\crlf
 \crlf
 Doc explained patiently, ``Both players know exactly the same
 things. The game is played in the mind.''\crlf
 ``I don't get it.''\crlf
 ``Well, look! You can't cheat in mathematics or poetry or music because
 they're based on truth. Untruth or cheating is just foreign, it has  no
 place.
 You can't cheat in arithmetic.\crlf
 {\tf John Steinbeck} --- Sweet Thursday
 \stopbuffer
 \startsetups [chapter:quote]
 \getbuffer [chapter:quote]
 \stopsetups
 
 \chapter[h:foo]{Foo}
 ===
 
 and in my environment file:
 
 ===
 \definebuffer[chapter:quote]
 
 \setuphead
   [chapter]
   [page=,
before={\setups[chapter:before]},
after={\setups[chapter:after]}]
 
 \startsetups chapter:before
 
 \page[left]
 
 \noheaderandfooterlines
 
 \startalignment[left,nothyphenated]
 \startnarrower[4*left]
 \noindent \em \setups [chapter:quote]
 \stopnarrower
 \stopalignment
 
 \resetsetups[quote:text]
 
 \page[right]
 
 \noheaderandfooterlines
 
 \blank[force,2*big]
 
 \stopsetups
 
 \startsetups chapter:after
 
 \blank[3*big]
 
 \stopsetups
 ===
 
 But that doesn't help either. Still nothing.
 
 G
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

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


Re: [NTG-context] Problem with special first page of chapter setup

2005-10-28 Thread Peter Rolf
Gerben Wierda wrote:
 I have this setup in my environment file:
 
 =
 \setuphead
   [chapter]
   [page=,
before=\setups{chapter:before},
after=\setups{chapter:after}]
 
 \startsetups chapter:before
 
 \page[left]
 
 \noheaderandfooterlines
 
 \startalignment[left,nothyphenated]
 \startnarrower[4*left]
 \noindent \em \setups[chapter:quote]
 \stopnarrower
 \stopalignment
 
 \resetsetups[quote:text]
 
 \page[right]
 
 \noheaderandfooterlines
 
 \blank[force,2*big]
 
 \stopsetups
 
 \startsetups [chapter:after]
 
 \blank[3*big]
 
 \stopsetups
 ===
 
 But when I call it
 
 ===
 \starttext
 \startsetups [chapter:quote]
 Lee Chong's is to the right of the vacant lot (although why
 it is called vacant when it is piled high with old boilers, with rusting
 pipes, with great square timbers, and stacks of five-gallon cans, no 
 one can
 say).\crlf
 {\tf John Steinbeck} --- Cannery Row\crlf
 \crlf
 Doc explained patiently, ``Both players know exactly the same
 things. The game is played in the mind.''\crlf
 ``I don't get it.''\crlf
 ``Well, look! You can't cheat in mathematics or poetry or music because
 they're based on truth. Untruth or cheating is just foreign, it has  no
 place.
 You can't cheat in arithmetic.\crlf
 {\tf John Steinbeck} --- Sweet Thursday
 \stopsetups

\startbuffer
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no
one can
say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  no
place.
You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopbuffer

\startsetups chapter:quote
  \getbuffer
\stopsetups


This works for me. But you better give the buffer a name :)

Gretings,

Peter

 \chapter[h:foo]{Foo}
 ===
 
 I get that every word that is in the input file at th eend of a line  is
 glued (no whitespace) to the word that is on the next line of the  input
 line.
 
 How can I solve this?
 
 Thanks
 
 G
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

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


[NTG-context] Problem with special first page of chapter setup

2005-10-27 Thread Gerben Wierda

I have this setup in my environment file:

=
\setuphead
  [chapter]
  [page=,
   before=\setups{chapter:before},
   after=\setups{chapter:after}]

\startsetups chapter:before

\page[left]

\noheaderandfooterlines

\startalignment[left,nothyphenated]
\startnarrower[4*left]
\noindent \em \setups[chapter:quote]
\stopnarrower
\stopalignment

\resetsetups[quote:text]

\page[right]

\noheaderandfooterlines

\blank[force,2*big]

\stopsetups

\startsetups [chapter:after]

\blank[3*big]

\stopsetups
===

But when I call it

===
\starttext
\startsetups [chapter:quote]
Lee Chong's is to the right of the vacant lot (although why
it is called vacant when it is piled high with old boilers, with rusting
pipes, with great square timbers, and stacks of five-gallon cans, no  
one can

say).\crlf
{\tf John Steinbeck} --- Cannery Row\crlf
\crlf
Doc explained patiently, ``Both players know exactly the same
things. The game is played in the mind.''\crlf
``I don't get it.''\crlf
``Well, look! You can't cheat in mathematics or poetry or music because
they're based on truth. Untruth or cheating is just foreign, it has  
no place.

You can't cheat in arithmetic.\crlf
{\tf John Steinbeck} --- Sweet Thursday
\stopsetups
\chapter[h:foo]{Foo}
===

I get that every word that is in the input file at th eend of a line  
is glued (no whitespace) to the word that is on the next line of the  
input line.


How can I solve this?

Thanks

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


Re: [NTG-context] Problem with special first page of chapter setup

2005-10-27 Thread Peter Rolf
Gerben Wierda wrote:
 I have this setup in my environment file:
 
 =
 \setuphead
   [chapter]
   [page=,
before=\setups{chapter:before},
after=\setups{chapter:after}]
 ^^^
   \setups[...]

 
 \startsetups chapter:before
 
 \page[left]
 
 \noheaderandfooterlines
 
 \startalignment[left,nothyphenated]
 \startnarrower[4*left]
 \noindent \em \setups[chapter:quote]
 \stopnarrower
 \stopalignment
 
 \resetsetups[quote:text]
 
 \page[right]
 
 \noheaderandfooterlines
 
 \blank[force,2*big]
 
 \stopsetups
 
 \startsetups [chapter:after]
 
 \blank[3*big]
 
 \stopsetups
 ===
 
 But when I call it
 
 ===
 \starttext
 \startsetups [chapter:quote]
  ^^^
maybe this is ok, but I don't use any brackets here


This works for me (..not tested your example):

  \startsetups chapter:quote
...
  \stopsetups

  \setups[chapter:quote]

Hope that helps,

Peter

 Lee Chong's is to the right of the vacant lot (although why
 it is called vacant when it is piled high with old boilers, with rusting
 pipes, with great square timbers, and stacks of five-gallon cans, no 
 one can
 say).\crlf
 {\tf John Steinbeck} --- Cannery Row\crlf
 \crlf
 Doc explained patiently, ``Both players know exactly the same
 things. The game is played in the mind.''\crlf
 ``I don't get it.''\crlf
 ``Well, look! You can't cheat in mathematics or poetry or music because
 they're based on truth. Untruth or cheating is just foreign, it has  no
 place.
 You can't cheat in arithmetic.\crlf
 {\tf John Steinbeck} --- Sweet Thursday
 \stopsetups
 \chapter[h:foo]{Foo}
 ===
 
 I get that every word that is in the input file at th eend of a line  is
 glued (no whitespace) to the word that is on the next line of the  input
 line.
 
 How can I solve this?
 
 Thanks
 
 G
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

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


Re: [NTG-context] Problem with special first page of chapter setup

2005-10-27 Thread Gerben Wierda

On Oct 27, 2005, at 21:48, Peter Rolf wrote:


Gerben Wierda wrote:

I have this setup in my environment file:

=
\setuphead
  [chapter]
  [page=,
   before=\setups{chapter:before},
   after=\setups{chapter:after}]

 ^^^
   \setups[...]


I changed it into

\setuphead
  [chapter]
  [page=,
   before={\setups[chapter:before]},
   after={\setups[chapter:after]}]

That did not help. Then I changed


\startsetups [chapter:quote]

  ^^^
maybe this is ok, but I don't use any brackets here


to something without [] but that did not help either,

G

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