From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/90555 Path: news.gmane.org!not-for-mail From: Willi Egger Newsgroups: gmane.comp.tex.context Subject: Re: Hanging indent Date: Wed, 11 Mar 2015 16:50:43 +0100 Message-ID: References: <15794B88-E851-48D8-A5DC-010E5F68EA7D@boede.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/mixed; boundary="===============0714680987==" X-Trace: ger.gmane.org 1426089102 2129 80.91.229.3 (11 Mar 2015 15:51:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Mar 2015 15:51:42 +0000 (UTC) To: NTG-Context ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Mar 11 16:51:30 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YViuv-0005J3-DR for gctc-ntg-context-518@m.gmane.org; Wed, 11 Mar 2015 16:51:29 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9324D101E8 for ; Wed, 11 Mar 2015 16:51:28 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lrl641vWGhJf for ; Wed, 11 Mar 2015 16:51:27 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ECD9B1022F for ; Wed, 11 Mar 2015 16:50:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8477F101EC for ; Wed, 11 Mar 2015 16:50:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lEWqQUf8wHtw for ; Wed, 11 Mar 2015 16:50:47 +0100 (CET) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by balder.ntg.nl (Postfix) with ESMTP id 81468101E8 for ; Wed, 11 Mar 2015 16:50:47 +0100 (CET) Original-Received: from webmail.digitpaint.nl (mars.digitpaint.nl [83.98.197.63]) by filter2-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t2BFoko4009722 for ; Wed, 11 Mar 2015 16:50:46 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by webmail.digitpaint.nl (Postfix) with ESMTP id 7D49F1C8E9 for ; Wed, 11 Mar 2015 16:50:45 +0100 (CET) Original-Received: from webmail.digitpaint.nl ([127.0.0.1]) by localhost (mail.digitpaint.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id t2g3wZYRQRCA for ; Wed, 11 Mar 2015 16:50:45 +0100 (CET) Original-Received: from willis-macbook-air.fritz.box (77-253-252-228.adsl.inetia.pl [77.253.252.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by webmail.digitpaint.nl (Postfix) with ESMTPSA id 130691C8DF for ; Wed, 11 Mar 2015 16:50:43 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.2070.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=83.98.197.63; country=NL; latitude=52.3667; longitude=4.9000; http://maps.google.com/maps?q=52.3667,4.9000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0TO2fOK0L - 8291d347a09b - 20150311 (trained as not-spam) Received-SPF: none (filter2-til.mf.surf.net: domain of context@boede.nl does not designate permitted sender hosts) receiver=filter2-til.mf.surf.net; client-ip=83.98.197.63; envelope-from=; helo=webmail.digitpaint.nl; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:90555 Archived-At: --===============0714680987== Content-Type: multipart/alternative; boundary="Apple-Mail=_D4B48098-7C27-4A7C-BF4E-48B14BEE1E98" --Apple-Mail=_D4B48098-7C27-4A7C-BF4E-48B14BEE1E98 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Dear Wolfgang, adding to my environment or using your code instead seems not to have = the desired result. I still have the situation as before=E2=80=A6 Using = Context 2015-03-11 Kind regards Willi > On 11 mrt. 2015, at 00:41, Wolfgang Schuster = wrote: >=20 >>=20 >> Am 10.03.2015 um 22:00 schrieb Willi Egger : >>=20 >> Hello everybody, >>=20 >>=20 >> Currently I am typesetting a small dictionary. I want to have hanging = indents if the text joined to the expression is longer than one line. >>=20 >> In the past I had this definitions: >>=20 >> \defineblank[Afterhangingparagraph][1pc] >>=20 >> \starttext >> \def\Hangindent{\hangafter=3D1\hangindent=3D1em} >>=20 >> \definestartstop[HangPar] >> [before=3D{\bgroup\appendtoks\Hangindent\to\everypar}, >> after=3D{\egroup\blank[Afterhangingparagraph]}] >>=20 >>=20 >> \starttext >> \startHangPar >> \input knuth >> \stopHangPar >>=20 >> \startHangPar >> {\bf Aanslaan,} aanspreken. Een poging in 't werk stellen.=20 >>=20 >> Ik zal dat heertje reis aanslaan. Sla dien broger (man) aan, = misschien heeft hij poen (geld). Jongens, er moet aangeslagen worden, = daar loopt mooi gajes (menschen daar wat van te halen is). >> \stopHangPar >> \stoptext >>=20 >>=20 >> The strange thing is, that the first two paragraphs of the Knuth-text = is showing a hanging indent, however the last paragraph does not which = is unexpected. In the example from the dictionary no hanging = indentation is shown. >>=20 >> What do I mis here? >=20 > You have to add \par at the end of your environment, i.e. >=20 > \definestartstop > [HangPar] > = [before=3D\begingroup\EveryPar{\hangafter\plusone\hangindent\emwidth\relax= }, > after=3D{\par\endgroup\blank[1pc]}] >=20 > Wolfgang > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_D4B48098-7C27-4A7C-BF4E-48B14BEE1E98 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Dear Wolfgang,

adding to my environment or using your code instead seems not = to have the desired result. I still have the situation as before=E2=80=A6 = Using Context 2015-03-11

Kind regards

Willi
On 11 mrt. 2015, at 00:41, Wolfgang Schuster = <schuster.wolfgang@gmail.com> wrote:


Am 10.03.2015 um = 22:00 schrieb Willi Egger <context@boede.nl>:

Hello = everybody,


Currently I am = typesetting a small dictionary. I want to have hanging indents if the = text joined to the expression is longer than one line.

In the past I had this definitions:

\defineblank[Afterhangingparagraph][1pc]

\starttext
\def\Hangindent{\hangafter=3D1\hangindent=3D1em}

\definestartstop[HangPar]
   [before=3D{\bgroup\appendtoks\Hangindent\to\e= verypar},
  after=3D{\egroup\blank[= Afterhangingparagraph]}]


\starttext
\startHangPar
\input = knuth
\stopHangPar

\startHangPar
{\bf Aanslaan,}  aanspreken. = Een poging in 't werk stellen. 

Ik zal dat heertje reis aanslaan. Sla dien broger (man) aan, = misschien heeft hij poen (geld). Jongens, er moet aangeslagen worden, = daar loopt mooi gajes (menschen daar wat van te halen is).
\stopHangPar
\stoptext


The strange thing is, that the first two = paragraphs of the Knuth-text is showing a hanging indent, however the = last paragraph does not which is unexpected.  In the example from = the dictionary no hanging indentation is shown.

What do I mis here?

You have to add \par at the end of your = environment, i.e.

\definestartstop
 [HangPar]
 [before=3D\begingroup\EveryPar{\hangafter\plusone\hangind= ent\emwidth\relax},
  after=3D{\par\endgroup\blank[1pc]}]

Wolfgang
_______________________________________________________________= ____________________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_D4B48098-7C27-4A7C-BF4E-48B14BEE1E98-- --===============0714680987== 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= --===============0714680987==--