From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context@ntg.nl
Subject: Re: \startbackground and verbatims
Date: Tue, 22 Dec 1998 11:22:20 +0100 [thread overview]
Message-ID: <367F72DC.10C04980@wxs.nl> (raw)
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
-----------------------------------------------------------------
next reply other threads:[~1998-12-22 10:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-12-22 10:22 Hans Hagen [this message]
1998-12-22 20:17 Hans Hagen
2002-10-23 16:38 Gilbert van den Dobbelsteen
2002-10-23 16:39 Gilbert van den Dobbelsteen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=367F72DC.10C04980@wxs.nl \
--to=pragma@wxs.nl \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).