[NTG-context] Hanging indent

Willi Egger context at boede.nl
Wed Mar 11 16:50:43 CET 2015


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 at gmail.com> wrote:
> 
>> 
>> Am 10.03.2015 um 22:00 schrieb Willi Egger <context at 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 at 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
> ___________________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.ntg.nl/pipermail/ntg-context/attachments/20150311/0cec83db/attachment.html>


More information about the ntg-context mailing list