Thanks Aditya,
that is what I need. I don't really understand the difference between
framedtext and textbackground, but all my framing and coloring
desires seem to be realizable with framedtext.
Matthias
On Apr 5, 2010, at 7:50 PM, Aditya Mahajan wrote:
On Mon, 5 Apr 2010, Matthias Weber wrote:
Dear all,
my problem with framed text persists in paragraphs: The frame
extends over the entire page as soon as the
paragraph has more than one line. Problem exists in mkii and mkiv.
Minimal example below.
I have seen this before when trying to use textbacground to
highlight stuff in tables. I don't know a solution, but if want to
highlight whole paragrah, and do not want the ability to split
across pages, you can use framed texts.
\setupcolors[state=start]
\setupcolor[rgb]
\defineframedtext
[defbackground]
[backgroundcolor=lightgray,
background=color,
width=broad,
frame=on,
location=paragraph]
\defineparagraphs
[TwoThird][n=2]
\setupparagraphs
[TwoThird]
[1]
[width=.66\textwidth]
\starttext
\startTwoThird
\startdefbackground
The frame is too wide.
The frame is too wide.
The frame is too wide.
\stopdefbackground
%
\nextTwoThird
\placefigure
[here]
[figure:cow]
{Mooh}
{\externalfigure[cow][width=.3\textwidth]}
\stopTwoThird
\stoptext
Aditya
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
___________________________________________________________________________________
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 : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________