ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Hanging indent
@ 2015-03-10 21:00 Willi Egger
  2015-03-10 23:41 ` Wolfgang Schuster
  0 siblings, 1 reply; 7+ messages in thread
From: Willi Egger @ 2015-03-10 21:00 UTC (permalink / raw)
  To: NTG-Context ConTeXt users

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?

Kind regards

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

end of thread, other threads:[~2015-03-12 19:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10 21:00 Hanging indent Willi Egger
2015-03-10 23:41 ` Wolfgang Schuster
2015-03-11 15:50   ` Willi Egger
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

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