ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: "Thomas A. Schmitz" <thomas.schmitz@uni-bonn.de>
Subject: Re: where to place \index (again)
Date: Sun, 26 Jun 2011 19:47:48 +0200	[thread overview]
Message-ID: <4E0770C4.6000803@wxs.nl> (raw)
In-Reply-To: <DA45F250-245C-47C6-830B-CC58E0BE45A1@uni-bonn.de>

On 26-6-2011 2:54, Thomas A. Schmitz wrote:
> Hi all,
>
> I'm in the final phase of editing a scholarly book with a pretty big index. What follows is less a question than an observation: no matter where I place the \index command, there can always be unwanted side effects:
>
> foo\index{bar}: here, the entry may point to the page following the name, if the page break falls at this position. Moreover, when this is followed by punctuation or footnotes, there may be a line break between the word and the punctuation/footnote mark. Placing it at the end of a long footnote is asking for even more trouble, because there's a real risk that a page break may occur.
>
> \index{bar}foo: the book is typeset with character protrusion, and this seems to introduce additional material which can disturb line endings, so that lines before such an indexed word appear to be missing one character at the end.
>
> So this is what I observe. Working around this is possible, but painful - I have to check every page for such bad linebreaks or misplaced punctuation marks. My question then is: will it be possible, at one point in luatex development, to find a more robust solution for this? This would be wonderful, I think!

\index is connected to the next word or when on a line on it own as in 
\chapter{x} \index{x} <emptyline> text to the next paragraph

concerning the character protrusion: that looks like a bug so if we can 
have a small example demonstrating it ... esp the disappearing character 
is weird

(I can introduce a couple of processing modes if needed, but then you 
have to check if an index entry points to a word starting on a previous 
page. In any case, changing the default behaviour might have other side 
effects for existing documents.)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
                                              | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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
___________________________________________________________________________________


  parent reply	other threads:[~2011-06-26 17:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-26 12:54 Thomas A. Schmitz
2011-06-26 16:35 ` Steffen Wolfrum
2011-06-26 17:47 ` Hans Hagen [this message]
2011-06-26 19:13   ` Steffen Wolfrum
2011-06-26 19:29     ` Wolfgang Schuster
2011-06-26 20:18       ` Thomas Schmitz
2011-06-26 20:52         ` Wolfgang Schuster
2011-06-27 18:01           ` Hans Hagen
2011-06-27  7:38         ` Steffen Wolfrum
2011-06-27 16:01         ` Hans Hagen

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=4E0770C4.6000803@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    --cc=thomas.schmitz@uni-bonn.de \
    /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).