From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/276 Path: main.gmane.org!not-for-mail From: Gilbert van den Dobbelsteen Newsgroups: gmane.comp.tex.context Subject: Re: \startbackground and verbatims Date: Wed, 23 Oct 2002 16:39:00 +0000 (UTC) Sender: owner-ntg-context@let.uu.nl Message-ID: <367faf70.login@login.iaf.nl> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1035391140 22624 80.91.224.250 (23 Oct 2002 16:39:00 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:39:00 +0000 (UTC) Original-To: ntg-context@ntg.nl Xref: main.gmane.org gmane.comp.tex.context:276 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:276 > Gilbert van den Dobbelsteen wrote: > > > I am having some difficulties with colored backgrounds and verbatim > > like stuff. > > There are two kinds of backgrounds. When you want a background to a page > are specific area of the page, use \setupbackgrounds. This has nothing > to do with the running text. You can put a background behind text, using > \startbackground etc. This will cross the page boder ok, takes care of > some offsets etc. Yep, well, I am using \startbackground Some stuff \stopbackground > > How do you mean beyond? The backgound crosses the page-size: +-----------------+ --> text boundary | | | +---------+ | --> Backgound edges | |Some text| | | |Some text| | |---+_________+---+ The background box is a bit deeper then the page-boundary (Sorry, I mean the \zethoogte). If you need more info, I can send you the resulting .pdf file which shows these difficulties (I will not post it on the list). I can also send you the style file I use, but it is **very* similar to s-pre-01 > Yes. Even multiples and mixed with color: > > \defineoverlay[one][this is one] > \defineoverlay[two][this is the second one] > \defineoverlay[three][this is the last one] > > \setupcolors[state=start] > > \framed[background={color,one,two,three},backgroundcolor=red]{Hi there} This is *very* cool (I don't need it right now, but I'll keep it in mind. > > % From TeX by Topic: > > {\catcode`\^^M=13 % > > \gdef\olines{\catcode`\^^M=13 \def^^M{\par\leavevmode}}% > > } > > \obeylines will do. The \leavevmode was necessary to make consecutive empty lines show up too (normally they are handled like multiple \par, e.g. they are changed into a single \par. > > > \def\startposter#1{\startachtergrond\bgroup\olines} > > wat doet die #1 daar? Dat komt later. Die #1 wordt later: \naar[#1::]{Echter poster} where #1.pdf --> poster file of the destination > Why the obeylines? Because the people who wrote the input file needed some basic formatting control (simply some newlines will suffice for them). Gilbert.