* Framed text in paragraphs too wide
@ 2010-04-05 23:20 Matthias Weber
2010-04-05 23:50 ` Aditya Mahajan
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Weber @ 2010-04-05 23:20 UTC (permalink / raw)
To: mailing list for ConTeXt users
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.
Thanks,
Matthias
\setupcolors[state=start]
\setupcolor[rgb]
\definetextbackground [defbackground]
[backgroundcolor=lightgray,
background=color,
frame=on,
location=paragraph]
\defineparagraphs [TwoThird][n=2]
\setupparagraphs [TwoThird]
[1]
[width=.66\textwidth]
\starttext
\startTwoThird
\starttextbackground[defbackground]
The frame is too wide.
The frame is too wide.
The frame is too wide.
\stoptextbackground
%
\nextTwoThird
\placefigure
[here]
[figure:cow]
{Mooh}
{\externalfigure[cow][width=.3\textwidth]}
\stopTwoThird
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Framed text in paragraphs too wide
2010-04-05 23:20 Framed text in paragraphs too wide Matthias Weber
@ 2010-04-05 23:50 ` Aditya Mahajan
2010-04-06 3:11 ` Matthias Weber
0 siblings, 1 reply; 4+ messages in thread
From: Aditya Mahajan @ 2010-04-05 23:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Framed text in paragraphs too wide
2010-04-05 23:50 ` Aditya Mahajan
@ 2010-04-06 3:11 ` Matthias Weber
2010-04-06 7:06 ` Hans Hagen
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Weber @ 2010-04-06 3:11 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Framed text in paragraphs too wide
2010-04-06 3:11 ` Matthias Weber
@ 2010-04-06 7:06 ` Hans Hagen
0 siblings, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2010-04-06 7:06 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Matthias Weber
On 6-4-2010 5:11, Matthias Weber wrote:
> 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.
framedtext is the older mechanism, with some limitations but pure tex
textbackground is more advanced using metapost; it can nest backgrounds,
have inline backgrounds, etc
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-04-06 7:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05 23:20 Framed text in paragraphs too wide Matthias Weber
2010-04-05 23:50 ` Aditya Mahajan
2010-04-06 3:11 ` Matthias Weber
2010-04-06 7:06 ` Hans Hagen
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).