ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \index eats \par?
@ 2001-10-25 17:08 David Antos
  2001-10-25 18:30 ` Berend de Boer
  2001-10-26 10:18 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: David Antos @ 2001-10-25 17:08 UTC (permalink / raw)


	Hi all,

using \index at the end of a paragraph (like this one ;-) eats all \par-s
after that. Is this a bug or a feature? (In human words: the paragraphs become
joined together into one.)
\index{really don't know why}

It can be easilly overriden using \index{} before the end of the paragraph,
but I consider this quite unpleasant.

	Thanks

				D.A.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \index eats \par?
  2001-10-25 17:08 \index eats \par? David Antos
@ 2001-10-25 18:30 ` Berend de Boer
  2001-10-26 10:18 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Berend de Boer @ 2001-10-25 18:30 UTC (permalink / raw)
  Cc: NTG ConTeXt Mailing List

David Antos <antos@bart.math.muni.cz> writes:

> using \index at the end of a paragraph (like this one ;-) eats all
> \par-s after that. Is this a bug or a feature? (In human words: the
> paragraphs become joined together into one.)  \index{really don't
> know why}

You should use \index before a word, not after like:

        \index{test}test.

-- 
Groetjes,

Berend. (-:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: \index eats \par?
  2001-10-25 17:08 \index eats \par? David Antos
  2001-10-25 18:30 ` Berend de Boer
@ 2001-10-26 10:18 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2001-10-26 10:18 UTC (permalink / raw)
  Cc: NTG ConTeXt Mailing List

At 07:08 PM 10/25/2001 +0200, David Antos wrote:

>         Hi all,
>
>using \index at the end of a paragraph (like this one ;-) eats all \par-s
>after that. Is this a bug or a feature? (In human words: the paragraphs become
>joined together into one.)
>\index{really don't know why}
>
>It can be easilly overriden using \index{} before the end of the paragraph,
>but I consider this quite unpleasant.

actually this is a feature; as berend says: use \index before the word to 
index (think of this: if such a word hyphenates, you want the ref on the 
page where the forst part ends up).

the idea is as follows:

\chapter {something}
\index{oeps}
\index{more}

some text

now this works well, if the \par would not be eaten, there would be a write 
node and thereby interference in the spacing (in some situations resulting 
in too much whitespace for instance.

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-10-26 10:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-25 17:08 \index eats \par? David Antos
2001-10-25 18:30 ` Berend de Boer
2001-10-26 10:18 ` Hans Hagen

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