From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/94506 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: Overlapping terms in description lists Date: Thu, 21 Apr 2016 13:18:00 +0200 Message-ID: References: <571760CF.3000708@ird.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4360700580959243024==" X-Trace: ger.gmane.org 1461237525 17077 80.91.229.3 (21 Apr 2016 11:18:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2016 11:18:45 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 21 13:18:34 2016 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1atCcz-0008R0-Fz for gctc-ntg-context-518@m.gmane.org; Thu, 21 Apr 2016 13:18:33 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id BD80AAB76; Thu, 21 Apr 2016 13:18:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xe6VmirmCQmB; Thu, 21 Apr 2016 13:18:13 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 2B069AB77; Thu, 21 Apr 2016 13:18:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2650AAB77 for ; Thu, 21 Apr 2016 13:18:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ew2PLb8GozVN for ; Thu, 21 Apr 2016 13:18:11 +0200 (CEST) Original-Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com [209.85.217.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 1F559AB76 for ; Thu, 21 Apr 2016 13:18:01 +0200 (CEST) Original-Received: by mail-lb0-f175.google.com with SMTP id u8so25121475lbk.0 for ; Thu, 21 Apr 2016 04:18:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=FHjk1jnVVu1vHqawYCm4pfkO8vfvYVBRJCMmiwOwXkI=; b=metXLFZa1/fwQIY3HQv+OAliw/ow3QW/IFlSo2SExRLcvKi+9QILlt+BIAh/HNjH3w Fy2T6k3+oNEL9FDh366ffI7WoOl9w5CK0JSiEb47TC79zniBWu7uajF5+FnU3QwngGH3 ivC5LIQiVpCIZEsFgpoatTroHzV0qq5T6pBhwgMCFFNapC5J86FoEn7ec/BvzHbxiRTi kN4ikwAjFme1FC/iL6zckWuYR8n3M8lI/EoxlR6UB8muxGrW3ps9ZyxR8qiKv4gEUPNX ZgepoorB4gcrnAsUT9UBxN0uYcu7kbr0QUbN9vJUlvKgdG7AhxyPSX2q81uwUwG0JB+P tNaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=FHjk1jnVVu1vHqawYCm4pfkO8vfvYVBRJCMmiwOwXkI=; b=PMSAFGoRcZD661FO+UAbP9nNUpb7SEehWi6TFa31Xr3m5huEF2RtLonxRDp/A8P4B8 cCUW+qQa1oXfPQQPlemTNCV2dA+FF9FJlGdkhMB/0ci9OFPwDwJB+/8MiPQ+tCICkHaZ mMoQGN4hkWm15/rqSLr5OxaVXfo0MfvAl4OjHc/1Y466JyhvwC4SLyrxw8wobzfOH/WJ hI2TUsCemXZTrBmN7G55b5NayPhymHKOz5gUQxf591KqjGJQdeYTcfNECFdIT0nmYnHb 6S0RfKfFFj02839NjYIAAi2JFfMtDSIOHAmxMY1KrpKlNq0Au11JBDTY4k3cLezK+Fyt Yrlg== X-Gm-Message-State: AOPr4FX2OQTUUZezY8QdnNDlx5fBYUSm7oQryySM7Ygp6k6WFxQiEAK+byQ24ESLvqvjb/1S9EyEQNHIDi8tpA== X-Received: by 10.112.144.202 with SMTP id so10mr6319061lbb.108.1461237480436; Thu, 21 Apr 2016 04:18:00 -0700 (PDT) Original-Received: by 10.25.86.85 with HTTP; Thu, 21 Apr 2016 04:18:00 -0700 (PDT) In-Reply-To: <571760CF.3000708@ird.fr> X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:94506 Archived-At: --===============4360700580959243024== Content-Type: multipart/alternative; boundary=047d7b3a8bc8f43caa0530fcdc15 --047d7b3a8bc8f43caa0530fcdc15 Content-Type: text/plain; charset=UTF-8 On Wed, Apr 20, 2016 at 12:58 PM, Tom Harrop wrote: > 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! > the title is in a \vtop and not a \vbox, and its height is fixed to \strutht (and the depth to \strutdp) so basically the title is one line. You can try with hand-tuning, ie \definedescription[description][before=\nowhitespace, after=\vskip0.25em,width=7\emwidth] \starttext \startdescription[title=This is a really long term:] \crlf Long term + short definition \stopdescription \startdescription[title=This is a really long term:] \crlf ... the long term of the item above the mashes into the term below. \stopdescription \stoptext --047d7b3a8bc8f43caa0530fcdc15 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, Apr 20, 2016 at 12:58 PM, Tom Harrop <thomas.harrop@ird.fr<= /a>> wrote:
Hello again,

The document I'm typsetting uses description lists. To keep the list en= tries close together I'm using before=3D\nowhitespace and after=3D\nowh= itespace 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]
=C2=A0 =C2=A0 [before=3D\nowhitespace, after=3D\nowhitespace]

\starttext

\startdescription{Short term:}
=C2=A0 Items with short terms are fine.
\stopdescription

\startdescription{This is a really long term:}
=C2=A0 Long term + short definition
\stopdescription

\startdescription{This is a really long term:}
=C2=A0 ... the long term of the item above the mashes into the term below.<= br> \stopdescription

\stoptext

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

Short term:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Items with short terms are fin= e.
This is a really
long term:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Long term + short definition This is a really
long term:=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... the long term of the item = above the mashes into the
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 term = below.

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

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

the title is in =C2=A0a \vtop and not a = \vbox, and its height is fixed to \strutht (and the depth to \strutdp)
so basically the title is one line.

You can = try with hand-tuning, ie

\definedescription[descri= ption][before=3D\nowhitespace, after=3D\vskip0.25em,width=3D7\emwidth]
\starttext
\startdescription[title=3DThis is a really = long term:]
\crlf
=C2=A0 Long term + short definition
\stopdescription

\startdescription[title= =3DThis is a really long term:]
\crlf
=C2=A0 ... the lo= ng term of the item above the mashes into the term below.
\stopde= scription
\stoptext


--047d7b3a8bc8f43caa0530fcdc15-- --===============4360700580959243024== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============4360700580959243024==--