ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Problems with columnsets and \startbackground \stopbackground
@ 2006-07-01 22:06 Olaf Mersmann
  2006-07-02 10:55 ` Taco Hoekwater
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Mersmann @ 2006-07-01 22:06 UTC (permalink / raw)


Hi list,

I have some wierd interactions between a columnset and \start- /
\stopbackground.

---- cut here ----
\setuppapersize      [A4, landscape]
                     [A4, landscape]
\setupcolors         [state=start]
\setupbackground     [background=screen, 
                      frame=on,
                      frameoffset=2pt,
                      backgroundoffset=2pt]
\setuphead           [section]
                     [style={\ss\bf},
                      before={\startbackground},
                      after={\stopbackground}]

\definecolumnset     [foo] [n=2]
\starttext
\startcolumnset[foo]
\subject{ABC} 
\input tufte
\input knuth

One more line and {\em BOOM} - it's broken.\crlf
Here we go. 3 2 1 -- page break!

\subject{DEF} 
\input knuth
\stopcolumnset
\stoptext
---- cut here ----

The second \subject{} causes a page break instead of wrapping into the
second column. Is this a bug, or am I missing something when using
\start- / \stopbackground?

Would this go away if I where to use a MP graphic for the background?

Thanks for any help.

-- Olaf

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems with columnsets and \startbackground \stopbackground
  2006-07-01 22:06 Problems with columnsets and \startbackground \stopbackground Olaf Mersmann
@ 2006-07-02 10:55 ` Taco Hoekwater
  0 siblings, 0 replies; 2+ messages in thread
From: Taco Hoekwater @ 2006-07-02 10:55 UTC (permalink / raw)


Olaf Mersmann wrote:
> Hi list,
> 
> The second \subject{} causes a page break instead of wrapping into the
> second column. Is this a bug, or am I missing something when using
> \start- / \stopbackground?

It is probably a bug, but it is not likely that it will get fixed
soon. \startbackground is an 'old' command, columnsets are 'new'
and the interaction is not always perfect.

> Would this go away if I where to use a MP graphic for the background?

Yes. If you do not want to write MP code yourself, you can also use
textbackgrounds. This gives similar results to your code:



   \definecolor       [grey] [s=.9]
   \definetextbackground
                      [section]
                      [background=color,
                       backgroundcolor=grey,
                       framecolor=black,
                       frame=on,
                       distance=10pt,
                       before=,
                       after=,
                       location=paragraph]
    \setuphead        [section]
                      [style={\ss\bf},
                       before={\starttextbackground[section]~}, %NOTE
                       after={\stoptextbackground}]

NOTE: I am unhappy with the ~  in that line, but my version
seems to ignore offset commands at the moment.

Taco

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-02 10:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-01 22:06 Problems with columnsets and \startbackground \stopbackground Olaf Mersmann
2006-07-02 10:55 ` Taco Hoekwater

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).