ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Willi Egger <context@boede.nl>
To: NTG-Context ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Hanging indent
Date: Wed, 11 Mar 2015 16:50:43 +0100	[thread overview]
Message-ID: <B775A867-DA57-4277-8914-98818AE4F2A1@boede.nl> (raw)
In-Reply-To: <F7C37443-A83F-48E8-BCC1-BB10C679B318@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 2265 bytes --]

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… 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=1\hangindent=1em}
>> 
>> \definestartstop[HangPar]
>>    [before={\bgroup\appendtoks\Hangindent\to\everypar},
>> 	  after={\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=\begingroup\EveryPar{\hangafter\plusone\hangindent\emwidth\relax},
>   after={\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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 14346 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  reply	other threads:[~2015-03-11 15:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-10 21:00 Willi Egger
2015-03-10 23:41 ` Wolfgang Schuster
2015-03-11 15:50   ` Willi Egger [this message]
2015-03-11 16:04     ` Wolfgang Schuster
2015-03-11 17:23       ` Willi Egger
2015-03-12  0:02         ` Wolfgang Schuster
2015-03-12 19:08           ` Willi Egger

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=B775A867-DA57-4277-8914-98818AE4F2A1@boede.nl \
    --to=context@boede.nl \
    --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).