On Thu, 04 Sep 2008 10:12:47 +0200, Hans Hagen [EMAIL PROTECTED] wrote:
Is there any other easy way of controlling the background
color on verbatim areas?
can you make a small example that shows where it goes wrong?
The example I used is shown below. Other observations are:
- The code works with mkIV but not mkII
- Removing the chapters in the test file also make it work with mkII
- I am using the latest win32 standalone ConTeXt
Best regards,
Tommy Jensen
% START EXAMPLE
\setupcolors[state=start]
% We use Palatino as the main body font
\usetypescript[palatino][ec]
\setupbodyfont[palatino,10pt]
\definetextbackground[verbatim]
[background=color,
backgroundcolor=yellow,
backgroundoffset=0cm,
offset=0.5cm,
frame=on,
framecolor=black,
location=paragraph,
color=black]
% Setup verbatim
\setuptyping[typing][margin=1cm,bodyfont=8.0pt,
before={\starttextbackground[verbatim]},
after={\stoptextbackground}]
\starttext
\chapter{One}
Chapter one.
\chapter{Two}
Chapter two.
\chapter{Three}
Chapter three.
\starttyping
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim section.
This is a long verbatim