From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49676 Path: news.gmane.org!not-for-mail From: Jos van Gisbergen Newsgroups: gmane.comp.tex.context Subject: framed text question Date: Tue, 21 Apr 2009 03:46:49 -0700 (PDT) Message-ID: <82459.44879.qm@web30008.mail.mud.yahoo.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1749256002==" X-Trace: ger.gmane.org 1240311373 26570 80.91.229.12 (21 Apr 2009 10:56:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Apr 2009 10:56:13 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue Apr 21 12:57:32 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1LwDfO-00017a-SH for gctc-ntg-context-518@m.gmane.org; Tue, 21 Apr 2009 12:57:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F3AB71FB38; Tue, 21 Apr 2009 12:56:03 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 25474-07; Tue, 21 Apr 2009 12:54:07 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2056D1FB30; Tue, 21 Apr 2009 12:54:07 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6427D1FB30 for ; Tue, 21 Apr 2009 12:54:04 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03475-04-2 for ; Tue, 21 Apr 2009 12:53:47 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by ronja.ntg.nl (Postfix) with ESMTP id CC9AB1FB1D for ; Tue, 21 Apr 2009 12:53:47 +0200 (CEST) Original-Received: from web30008.mail.mud.yahoo.com (web30008.mail.mud.yahoo.com [209.191.69.25]) by filter2-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with SMTP id n3LArUZK026624 for ; Tue, 21 Apr 2009 12:53:38 +0200 Original-Received: (qmail 46465 invoked by uid 60001); 21 Apr 2009 10:46:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1240310810; bh=WNeOdfQJ6y2RgzHi0kdR/X9uQPApzYXWBMGL9i/TTd0=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=SSpC4zgZym5cecpR8gEEJ4JnFMjPFGkF4Lf/BrQIIx8FAIDdFCwpX5l77Gw1R8SOYRefrhy4wUfUxJbplsY7MYQYI1+jQK3wQesJfvlE5P1YnJLOP95Ibliu+E7/x+Q0kylfp/uwzAkYn2ku5cJgxVtAWb5Yq+OOx1pLfmzjd+c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=uMsW+CsGQ4c1ejhMnetpxela4Gl6F5LlHgziUFSJcq22nfnmjnUP6/+gyet9e6BJpPGVD5wWBN2Veo9cu/UwpBW/Bdg4qUVU8CaE1nsha+w10DTGS3QkADVR065idw90r1U4QP5VrfTy2kajQC+q96lw9J6IjsYLdTqMR+LhGFE=; X-YMail-OSG: 3XZgbcMVM1lw1t6aUHG4GNDkrafJdytsxt2sZcGFQPEHcZRsrWjA4PCLG4uEGOnq7znw3tnluGDQ3attwnVYaYlTIbR4fHWY8naH0UXQX4AT2EQLpXR6btei5X5sOMIlQYdu0V_oyZEE6Yv8MyNwUXV8WUsvV0BpI3PuEEg6ybdVi.5sE_aJmd.Prm2gnNj2Ab.l61mOuuHD2o2Wh_8wTpLlfUINTbgcJXo7v6H7oQtVPCPxdiS5vPmJSPkpNMlAWbrAFO.V1ahcKMrgHGc6eqsdwelJH9454fRlNj8ZteLA0smYJFg- Original-Received: from [212.61.45.18] by web30008.mail.mud.yahoo.com via HTTP; Tue, 21 Apr 2009 03:46:49 PDT X-Mailer: YahooMailRC/1277.35 YahooMailWebService/0.7.289.10 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.191.69.25; country=US; region=CA; city=Sunnyvale; postalcode=94089; latitude=37.4249; longitude=-122.0074; metrocode=807; areacode=408; http://maps.google.com/maps?q=37.4249,-122.0074&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 211826573 - 654e9e2053ff - 20090421 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:49676 Archived-At: --===============1749256002== Content-Type: multipart/alternative; boundary="0-699601970-1240310809=:44879" --0-699601970-1240310809=:44879 Content-Type: text/plain; charset=us-ascii 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 --0-699601970-1240310809=:44879 Content-Type: text/html; charset=us-ascii
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[m yCustomLayout][
 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,
  &nbs p;          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,
        topof fset=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 whic h
            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 whic h
            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 whic h
            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. I n
            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. I n
            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 wo rking. 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 wo rking. 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 wo rking. 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 wo rking. 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
            impor tant 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 car ried
            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


--0-699601970-1240310809=:44879-- --===============1749256002== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1749256002==--