From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/275 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: \startbackground and verbatims Date: Tue, 22 Dec 1998 11:22:20 +0100 Sender: owner-ntg-context@let.uu.nl Message-ID: <367F72DC.10C04980@wxs.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 1035391139 22622 80.91.224.250 (23 Oct 2002 16:38:59 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 16:38:59 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: Gilbert van den Dobbelsteen Xref: main.gmane.org gmane.comp.tex.context:275 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:275 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. > The trouble is the backgrounds, they seem to go beyond the page > definition. Is there something I can do about that? Perhaps > with \startregelcorectie or something like that? How do you mean beyond? > I noticed that behaviour before, but on a A4 page it is usually not a > problem. But this is a interactive layou, where there is not much space > available on a page. And since the page has colors too, it is pretty > obvious that backgrounds go beyond the boundaries. You can set up a screen size. > So please, offend me, I am probably doing everything wrong here. Probably. > I also have another problem, with huge butons: I need to create a > button which is large and contains multiple lines of text (The > \startposter should do that). I am not very interested in high-lighting > each word, just highlighting the entire block of text will suffice. Can > any picture be the background of any macro where achtergrond=xxx is > available? 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} > % From TeX by Topic: > {\catcode`\^^M=13 % > \gdef\olines{\catcode`\^^M=13 \def^^M{\par\leavevmode}}% > } \obeylines will do. > \def\startposter#1{\startachtergrond\bgroup\olines} wat doet die #1 daar? > \def\stopposter{\egroup\stopachtergrond\blanko[2*groot} \def\startposter{\startachtergrond\startregels} \def\stopposter {\stopregels\stopachtergrond} > \starttekst > > \startposter{external} > Hi there, this is some poster-text > \stopposter > > ...etcetera (more start/stop poster stuff) Why the obeylines? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | mail: pragma@wxs.nl ConTeXt and PPCHTeX site: www.ntg.nl/context -----------------------------------------------------------------