ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <texml@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: index issues
Date: Wed, 14 Oct 2020 14:45:31 +0200	[thread overview]
Message-ID: <9C30EF70-79A5-495B-A321-605235D3013F@fiee.net> (raw)

(1)
If I get the same index entry two or more times on a page, sometimes with processor formatting, sometimes not, how can I control which version takes precedence?

Actual use case: index entries from footnotes should be italics, while those from the main text stay upright.
Now, if there is an entry from the main text, the entry from the footnote doesn’t matter. Is it possible to control that?
I wouldn’t like to sort out the cases manually and remove the entries from the footnotes – there are 981 footnotes in this book, and there are 15 pages of index entries.

I’m using a macro (I suppose you’ll remember; I left out the Lua table lookup for unified entries):

\defineprocessor[kursiv][style=italicface]

\define[1]\nIndex{\doifmodeelse{*footnote}{%
  \expanded{\index[kursiv->]{#1}}}%
}{%
  \expanded{\index{#1}}}%
}}


(2)
Can I avoid linebreaking of page ranges in \placeindex?

E.g. in

Knuth, Don   23, 35-
  37, 40

I’d like to keep 35–37 together (break before 35).


Hraban
___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

             reply	other threads:[~2020-10-14 12:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-14 12:45 Henning Hraban Ramm [this message]
2020-11-06 11:22 Henning Hraban Ramm
2020-11-06 11:51 ` Jano Kula
2020-11-06 11:54   ` Duncan Hothersall
2020-11-06 14:03     ` Henning Hraban Ramm
2020-11-06 14:30     ` Henning Hraban Ramm
2020-11-06 14:48       ` Duncan Hothersall
2020-11-06 14:54         ` Henning Hraban Ramm
     [not found] ` <A06B878B-653F-42E8-95A9-09B6868E6EDC@fiee.net>
2020-11-06 14:55   ` Henning Hraban Ramm

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=9C30EF70-79A5-495B-A321-605235D3013F@fiee.net \
    --to=texml@fiee.net \
    --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).