* Columns and backgrounds problem
@ 2006-11-07 14:39 Matthias Weber
2006-11-10 20:37 ` Matthias Weber
0 siblings, 1 reply; 2+ messages in thread
From: Matthias Weber @ 2006-11-07 14:39 UTC (permalink / raw)
Hello,
I am trying to use backgrounds in columns. Typically, the background
runs into the other column as the following example.
Is this a limitation, or am I doing something wrong?
Any help is appreciated.
Matthias
\setupcolors[state=start]
\setuppagenumbering[location=]
\setupbodyfont[12pt]
\definecolor[myframecolor][r=.0,g=.5,b=.6]
\definecolor[myheadcolor][r=.0,g=.5,b=.0]
\definecolor[myemcolor][r=.6,g=.1,b=.5]
\definecolor[textcolor][r=.2,g=.02,b=.3]
\definecolor[thmcolor]
[r=.94,g=.94,b=.9]
\definetextbackground
[thmbackground]
[backgroundcolor=thmcolor,
%corner=round,
before=\blank,
after=\blank,
leftoffset=5pt,
rightoffset=5pt,
topoffset=5pt,
bottomoffset=5pt,
frame=on,
framecolor=darkblue,
location=paragraph,
color=darkblue]
\defineenumeration
[theorem]
[before={\starttextbackground[thmbackground]},
after={\stoptextbackground},
text=Theorem,
way=bysection,
location=hanging,
letter=rm]
\setuppapersize[letter][letter]
\starttext
\startcolumns[n=2]
\input tufte
\starttheorem $1+1=2$
\stoptheorem
\input tufte
\starttheorem $1+1=2$
\stoptheorem
\input tufte
\stopcolumns
\stoptext
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Columns and backgrounds problem
2006-11-07 14:39 Columns and backgrounds problem Matthias Weber
@ 2006-11-10 20:37 ` Matthias Weber
0 siblings, 0 replies; 2+ messages in thread
From: Matthias Weber @ 2006-11-10 20:37 UTC (permalink / raw)
To provide a workaround for my own question: Using columnsets
instead of columns works.
Matthias
On Nov 7, 2006, at 9:39 AM, Matthias Weber wrote:
> Hello,
>
> I am trying to use backgrounds in columns. Typically, the background
> runs into the other column as the following example.
>
> Is this a limitation, or am I doing something wrong?
>
> Any help is appreciated.
>
> Matthias
>
>
>
>
> \setupcolors[state=start]
> \setuppagenumbering[location=]
> \setupbodyfont[12pt]
>
> \definecolor[myframecolor][r=.0,g=.5,b=.6]
> \definecolor[myheadcolor][r=.0,g=.5,b=.0]
> \definecolor[myemcolor][r=.6,g=.1,b=.5]
> \definecolor[textcolor][r=.2,g=.02,b=.3]
>
>
>
> \definecolor[thmcolor]
> [r=.94,g=.94,b=.9]
>
> \definetextbackground
> [thmbackground]
> [backgroundcolor=thmcolor,
> %corner=round,
> before=\blank,
> after=\blank,
> leftoffset=5pt,
> rightoffset=5pt,
> topoffset=5pt,
> bottomoffset=5pt,
> frame=on,
> framecolor=darkblue,
> location=paragraph,
> color=darkblue]
>
>
> \defineenumeration
> [theorem]
> [before={\starttextbackground[thmbackground]},
> after={\stoptextbackground},
> text=Theorem,
> way=bysection,
> location=hanging,
> letter=rm]
>
>
> \setuppapersize[letter][letter]
>
>
> \starttext
>
>
> \startcolumns[n=2]
>
> \input tufte
>
> \starttheorem $1+1=2$
> \stoptheorem
>
> \input tufte
>
> \starttheorem $1+1=2$
> \stoptheorem
>
> \input tufte
>
>
> \stopcolumns
>
> \stoptext
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-11-10 20:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-07 14:39 Columns and backgrounds problem Matthias Weber
2006-11-10 20:37 ` Matthias Weber
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).