* registers: subentry indentation different from word--number gap?
@ 2019-07-12 6:52 Sanjoy Mahajan
0 siblings, 0 replies; only message in thread
From: Sanjoy Mahajan @ 2019-07-12 6:52 UTC (permalink / raw)
To: ntg-context
I don't think the current behavior is a bug, so the following is a
feature request:
With the following fairly minimal example
\setupregister[index][indicator=no, distance=0.5em]
\starttext
ABC\index{x}DEF\index{x+yyz}
\blank
\placeindex
\stoptext
the distance parameter sets (1) the hanging indentation of the 'yyz'
subentry and also (2) the distance between an entry and its pagenumber.
(That's what a look at strc-reg.mkiv shows too.)
It's a matter of taste, but my eye thinks that 0.5em is right for no. 2,
but too small for no. 1 -- whereas the default (1em) is just right for
no. 1 but too large for no. 2.
Thus, could the two dimensions be decoupled and bcome settable
indepently? Perhaps keep 'distance' for the entry--pagenumber distance
(no. 2), which is its meaning on the wiki, and invent 'subdistance' for
the hanging indent (no. 1)?
I've just realized a cheap hack to do the same, so maybe it's not worth
messing with backward compatability by adding a new parameter. The hack:
\def\blah#1{#1\hskip-0.5em}
\setupregister[index][indicator=no, distance=1em, textcommand=\blah]
--
-Sanjoy
<http://savelongwharfpark.org/>
Save Long Wharf Park in Boston Harbor!
<http://streetfightingmath.com/>
Six reasoning tools to make hard problems easy.
___________________________________________________________________________________
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] only message in thread
only message in thread, other threads:[~2019-07-12 6:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-12 6:52 registers: subentry indentation different from word--number gap? Sanjoy Mahajan
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).