ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* index issues
@ 2020-11-06 11:22 Henning Hraban Ramm
  2020-11-06 11:51 ` Jano Kula
       [not found] ` <A06B878B-653F-42E8-95A9-09B6868E6EDC@fiee.net>
  0 siblings, 2 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-11-06 11:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello again,

still struggling with indexes.

(1)
\setupregister’s before and after go around the indicator.
e.g. \setupregister[][indicator=no,after={XX}]
never shows that XX, since after is only used after the indicator, while before also works without.

I was hoping for a hook at the end of a section (to add \testcolumn, \blank etc. to work around no.2). Is there any?


(2)
Page/column breaking is odd in that the preferred breaking point seems to be one entry too early, i.e. the last entry of one letter end up in the next column and the previous column is one line too short.
It doesn’t change with balance=yes/no.

E.g.

p.1
A   A
A   A
A
A   B
A   B
A   B
A      <<<< !?

p.2
B   C
B   C
B   C
    C
C   
C   D
C   D


(3)
(How) can I otherwise influence page/column breaking? E.g.
- always keep multi line entries together
- break before or after some entry


(4)
Is it possible to combine entries from \index and \startregister[index]?

If I use \start/stopregister and have the same index entry within the range or on the same page, I get duplicate pages or page ranges, like 10-12 from \startregister and additionally 11, 12-13 from \index entries, makes at the moment 10-12, 11, 12-13 instead of just 10-13.



I’ll prepare MWEs, but maybe you can answer some of these without?

Thank you in advance,

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 9+ messages in thread
* index issues
@ 2020-10-14 12:45 Henning Hraban Ramm
  0 siblings, 0 replies; 9+ messages in thread
From: Henning Hraban Ramm @ 2020-10-14 12:45 UTC (permalink / raw)
  To: mailing list for ConTeXt users

(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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-11-06 14:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06 11:22 index issues 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
  -- strict thread matches above, loose matches on Subject: below --
2020-10-14 12:45 Henning Hraban Ramm

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