ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matthias Weber <matweber@indiana.edu>
Subject: Re: Columns and backgrounds problem
Date: Fri, 10 Nov 2006 15:37:46 -0500	[thread overview]
Message-ID: <4EBDD13D-41B1-4FEF-AB4A-E9AABC8F9B31@indiana.edu> (raw)
In-Reply-To: <10672EFD-4494-4BD7-BFF1-652F1FA20C7D@indiana.edu>

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

      reply	other threads:[~2006-11-10 20:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-07 14:39 Matthias Weber
2006-11-10 20:37 ` Matthias Weber [this message]

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=4EBDD13D-41B1-4FEF-AB4A-E9AABC8F9B31@indiana.edu \
    --to=matweber@indiana.edu \
    --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).