ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Overlapping terms in description lists
@ 2016-04-20 10:58 Tom Harrop
  2016-04-21 11:18 ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: Tom Harrop @ 2016-04-20 10:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello again,

The document I'm typsetting uses description lists. To keep the list 
entries close together I'm using before=\nowhitespace and 
after=\nowhitespace in \definedescription. This is fine so long as the 
term is short, but when the term wraps to two lines it can overlap with 
the term below.

Here's an example:

> \setuppapersize[A5]
> \setupalign[flushleft, nothyphenated]
>
> \definedescription[description]
>     [before=\nowhitespace, after=\nowhitespace]
>
> \starttext
>
> \startdescription{Short term:}
>   Items with short terms are fine.
> \stopdescription
>
> \startdescription{This is a really long term:}
>   Long term + short definition
> \stopdescription
>
> \startdescription{This is a really long term:}
>   ... the long term of the item above the mashes into the term below.
> \stopdescription
>
> \stoptext

And here is an attempt at a plain text representation of what I'm trying 
to achieve:

> Short term:         Items with short terms are fine.
> This is a really
> long term:          Long term + short definition
> This is a really
> long term:          ... the long term of the item above the mashes 
> into the
>                     term below.

Is this possible using \definedescription? I tried some combinations of 
\vfill and \framed but I couldn't get it to work.

Sorry to repeatedly post newbie questions. Any tips would be appreciated!

Thanks,

Tom

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2016-04-23 14:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-20 10:58 Overlapping terms in description lists Tom Harrop
2016-04-21 11:18 ` luigi scarso
2016-04-23 14:15   ` Tom Harrop

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