ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "GEERT@telefonica.net" <GEERT@telefonica.net>
Subject: hyphenation within columnsets with background
Date: Wed, 06 Apr 2005 12:21:49 +0200	[thread overview]
Message-ID: <73f5573532.7353273f55@teleline.es> (raw)

Hi, 

I am preparing a rather large text, completely set in 3 columns, which 
has lots of text with grey backgrounds.

During the preparation of this text, some questions came up :

1 - At first I put a grey background to my texts defining the 
following macros (they are used within columnsets): 

=====================================================================
%start setting the text with a light grey background
\def\startlightgreybox{\setupframedtexts[frame=off, 
					background=color, 
					backgroundcolor=lightgrey, 
					width=broad]
		  \startframedtext
		  {\bf Some frame title}}

%stop setting the text with a light grey background
\def\stoplightgreybox{\stopframedtext}
=====================================================================


After a while, and to see what difference there was between both, I 
redefined both macros as : 

=======================================================================
=
%start setting the text with a light grey background
\def\startlightgreybox{\setupbackground[background=color, 
backgroundcolor=lightgrey]
		  \startbackground
		  {\bf Some frame title}}

%stop setting the text with a light grey background
\def\stoplightgreybox{\stopbackground}	
=======================================================================
==


And to my surprise, I saw, that hyphenation works clearly better when 
my backgrounds are defined with the second set of macros, which is of 
course good news, especially when using 3 columns, but : is there an 
explanation for this behaviour ?



2 - Another problem I have with those backgrounds is the following : 
they seem to work well when the text spreads over several 
columns/pages, as long as I don't force a 'next column' in the text.  
The following piece of context causes a 'TeX capacity exceeded' error:


\setupcolors[state=start]
\definecolumnset[driekol][n=3]
\setupbackground[background=color, backgroundcolor=gray]
\starttext
\startcolumnset[driekol]
\startbackground
this is the text I would like to have with a grey background
\column
and with a possibility to split columns ``manually'' when necessary
\stopbackground
\stopcolumnset
\stoptext

In the rare cases where I want to force a jump to the next column, I 
replace the \column command with:

\stopbackground
\column
\startbackground

Is this the only way to force column jumps when using backgrounds ?


Thanks,

Geert

                 reply	other threads:[~2005-04-06 10:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=73f5573532.7353273f55@teleline.es \
    --to=geert@telefonica.net \
    --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).