Re: [NTG-context] verbatim problem

2004-04-27 Thread John Culleton
On Thursday 22 April 2004 08:59 am, Severin Obertüfer wrote:
 hello

 i have a little verbatim problem

 i used the \startEIFFEL \stopEIFFEL verbatim environment
 in a verry simple way like this:

Similarly I needed to have the program obey line breaks as 
in \obeylines but interpet the lines (font changes etc.) in 
the usual way. I did not want space left between lines. 
Neither the plain TeX nor the Context solutions fit this 
purpose exactly, but plain was closer. So I cobbled up this 
code:
\def\startobey{\medskip\setupwhitespace[none]\obeylines}
\def\stopobey{\setupwhitespace[small] \medskip}

I start the section needing verbatim line endings with 
{\startobey
 and end it with
\stopobey}

I don't know if the braces are necessary but the TeXBook 
seems to imply such.

My solution tends to ignore blank lines so I have to put a 
\medskip instead of a blank line.

This is a terrible solution but the best I could come up 
with in a hurry. No doubt someone will suggest a better 
one. 

BTW whre is \startEIFFEL documented? I don't recall seeing 
it before.  
-- 
John Culleton
Able Typesetters and Indexers
http://wexfordpress.com

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Table of Contents spacing.

2004-04-27 Thread John Culleton
I want the Table of Contenst entries at normal (single) 
spacing but they are occurring with white space between the 
lines. Here is my code to date:

\setuplist[chapter][alternative=a,style=bold]
\definecombinedlist[content][chapter,section]
[level=chapter,criterium=all,before=,after=\null]
\setupcombinedlist[content][alternative=a]

Probably I have one statement too many, or one parameter too 
many. Often with Context I get lost in the variations and 
cannot see the simple solution. 




-- 
John Culleton
Able Typesetters and Indexers
http://wexfordpress.com

___
ntg-context mailing list
[EMAIL PROTECTED]
http://www.ntg.nl/mailman/listinfo/ntg-context