From: Jos van Gisbergen <trychius@yahoo.com>
To: ntg-context@ntg.nl
Subject: framed text question
Date: Tue, 21 Apr 2009 03:46:49 -0700 (PDT) [thread overview]
Message-ID: <82459.44879.qm@web30008.mail.mud.yahoo.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 8527 bytes --]
Hi,
I have a question regarding framed text.
To obtain framed verbatim text that breaks over pages, I use the macro
\definetextbackground. I have encountered a slight problem, however:
sometimes the upper part of the frame appears on the bottom of the
page with no text in it (because there's not enough room). The strange
thing is that if I comment out the setupcolors macro the problem
disappears (in the example that is).
I have included an example of this below. Run with texexec --pdf test.tex
The version of texexec I'm using is:
TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
texexec : TeXExec 5.2.4 - ConTeXt / PRAGMA ADE 1997-2005
texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
tex : pdfeTeX, 3.141592-1.21a-2.2 (Web2C 7.5.4)
context : ver: 2005.01.31
cont-en : ver: 2005.01.31 fmt: 2009.1.26 mes: english
Thanks in advance
Trychius
---------------------------------- test.tex ----------------------------------
\installlanguage[en]
\setuppapersize[A4]
\definelayout[myCustomLayout][
header=10mm, % height of header
footer=10mm, % height of footer
topspace=8mm, % space above header
bottomspace=\topspace, % space below footer
backspace=25mm,
cutspace=20mm,
width=middle,
height=middle,
marking=on, % enable the marking of text
grid=yes,
]
\setuplayout[myCustomLayout]
\setuptyping[margin=10mm,
space=off, % Do not show space characters explicitely
color=black, % Color of verbatim text
]
\setupcolors[state=start]
\definetextbackground[FramedText][
location=paragraph,
rulethickness=0.5pt,
framecolor=red,
background=color,backgroundcolor=yellow,
leftoffset=1.0\bodyfontsize,rightoffset=1.0\bodyfontsize,
topoffset=1.0\bodyfontsize,bottomoffset=1.0\bodyfontsize,
frame=on]
\starttext
in this story took place, some of the most
important mines of the Scottish coal beds
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
Now, at the time when the events related
in this story took place, some of the most
important mines of the Scottish coal beds
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
Now, at the time when the events related
in this story took place, some of the most
important mines of the Scottish coal beds
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
Now, at the time when the events related
in this story took place, some of the most
important mines of the Scottish coal beds
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
had been exhausted by too rapid working. In
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten
\startFramedText
\starttyping
in this story took place, some of the most
important mines of the Scottish coal beds
had been exhausted by too rapid working. In
the region which extends between Edinburgh
and Glasgow, for a distance of ten or twelve
miles, lay the Aberfoyle colliery, of which
the engineer, James Starr, had so long directed
the works. For ten years these mines had been
abandoned. No new seams had been discovered,
although the soundings had been carried
to a depth of fifteen hundred or even of
two thousand feet, and when James Starr had
retired, it was with the full conviction that
even the smallest vein had been completely
exhausted.
\stoptyping
\stopFramedText
\stoptext
[-- Attachment #1.2: Type: text/html, Size: 17142 bytes --]
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next reply other threads:[~2009-04-21 10:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-21 10:46 Jos van Gisbergen [this message]
2009-04-21 13:10 ` Aditya Mahajan
-- strict thread matches above, loose matches on Subject: below --
2005-01-19 17:19 Framed " Brian Kahne
2005-01-19 17:35 ` Hans Hagen
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=82459.44879.qm@web30008.mail.mud.yahoo.com \
--to=trychius@yahoo.com \
--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).