* \index versus makeindex.
@ 2008-07-18 17:38 John Culleton
2008-07-21 6:16 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: John Culleton @ 2008-07-18 17:38 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
Usually I use makeindex for indexing but for my current job I thought
the Context \index command would be convenient. However I discovered
that the \index command does not provide for page ranges. If I index
the same item on pages 46, 47, 48, and 49 makeindex will collapse
this into a range of 46-49. Context won't.
I looked at the book.tuo file but it does not look like something I
can hand-modify.
Is there a work-around I have missed or must I revert to makeindex to
get a proper index?
I am ccing Hans because my posts don't seem to make their way to the
list for some reason. Perhaps Comcast has torpedoed me once again.
--
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \index versus makeindex.
2008-07-18 17:38 \index versus makeindex John Culleton
@ 2008-07-21 6:16 ` Wolfgang Schuster
2008-07-23 12:50 ` John Culleton
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster @ 2008-07-21 6:16 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Fri, Jul 18, 2008 at 7:38 PM, John Culleton <john@wexfordpress.com> wrote:
> Usually I use makeindex for indexing but for my current job I thought
> the Context \index command would be convenient. However I discovered
> that the \index command does not provide for page ranges. If I index
> the same item on pages 46, 47, 48, and 49 makeindex will collapse
> this into a range of 46-49. Context won't.
>
> I looked at the book.tuo file but it does not look like something I
> can hand-modify.
>
> Is there a work-around I have missed or must I revert to makeindex to
> get a proper index?
>
> I am ccing Hans because my posts don't seem to make their way to the
> list for some reason. Perhaps Comcast has torpedoed me once again.
\placeindex[compress=yes]
Regards,
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \index versus makeindex.
2008-07-21 6:16 ` Wolfgang Schuster
@ 2008-07-23 12:50 ` John Culleton
2008-07-23 13:03 ` Wolfgang Schuster
0 siblings, 1 reply; 4+ messages in thread
From: John Culleton @ 2008-07-23 12:50 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Monday 21 July 2008 02:16:04 am Wolfgang Schuster wrote:
> On Fri, Jul 18, 2008 at 7:38 PM, John Culleton
<john@wexfordpress.com> wrote:
> > Usually I use makeindex for indexing but for my current job I
> > thought the Context \index command would be convenient. However I
> > discovered that the \index command does not provide for page
> > ranges. If I index the same item on pages 46, 47, 48, and 49
> > makeindex will collapse this into a range of 46-49. Context
> > won't.
> >
> > I looked at the book.tuo file but it does not look like something
> > I can hand-modify.
> >
> > Is there a work-around I have missed or must I revert to
> > makeindex to get a proper index?
> >
> > I am ccing Hans because my posts don't seem to make their way to
> > the list for some reason. Perhaps Comcast has torpedoed me once
> > again.
>
> \placeindex[compress=yes]
>
> Regards,
> Wolfgang
your suggestion to use compress=yes works well. Thanks. Such
compression is essential in many works. Now I wonder if there is a
Context command like eplain's range commands which occur in pairs:
\sidx[begin]{foo}
...
\sidx[end]{foo}
The same effect in LaTeX is a bit more cryptic:
\index{foo|(}
...
\index{foo|)}
Either form includes all the pages between the two commands as entries
under foo, e.g.,
foo 24-68
This facility may exist but the Context manual is a bit hard to follow
on indexing.
--
John Culleton
Resources for every author and publisher:
http://wexfordpress.com/tex/shortlist.pdf
http://wexfordpress.com/tex/packagers.pdf
http://www.creativemindspress.com/newbiefaq.htm
http://www.gropenassoc.com/TopLevelPages/reference%20desk.htm
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: \index versus makeindex.
2008-07-23 12:50 ` John Culleton
@ 2008-07-23 13:03 ` Wolfgang Schuster
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Schuster @ 2008-07-23 13:03 UTC (permalink / raw)
To: mailing list for ConTeXt users
On Wed, Jul 23, 2008 at 2:50 PM, John Culleton <john@wexfordpress.com> wrote:
> On Monday 21 July 2008 02:16:04 am Wolfgang Schuster wrote:
>> On Fri, Jul 18, 2008 at 7:38 PM, John Culleton
> <john@wexfordpress.com> wrote:
>> > Usually I use makeindex for indexing but for my current job I
>> > thought the Context \index command would be convenient. However I
>> > discovered that the \index command does not provide for page
>> > ranges. If I index the same item on pages 46, 47, 48, and 49
>> > makeindex will collapse this into a range of 46-49. Context
>> > won't.
>> >
>> > I looked at the book.tuo file but it does not look like something
>> > I can hand-modify.
>> >
>> > Is there a work-around I have missed or must I revert to
>> > makeindex to get a proper index?
>> >
>> > I am ccing Hans because my posts don't seem to make their way to
>> > the list for some reason. Perhaps Comcast has torpedoed me once
>> > again.
>>
>> \placeindex[compress=yes]
>>
>> Regards,
>> Wolfgang
>
> your suggestion to use compress=yes works well. Thanks. Such
> compression is essential in many works. Now I wonder if there is a
> Context command like eplain's range commands which occur in pairs:
> \sidx[begin]{foo}
> ...
> \sidx[end]{foo}
>
> The same effect in LaTeX is a bit more cryptic:
> \index{foo|(}
> ...
> \index{foo|)}
>
> Either form includes all the pages between the two commands as entries
> under foo, e.g.,
> foo 24-68
\startregister[index][knuthrange]{knuth}
...
\stopregister[index][knuthrange]
Don't know why it is not possible to use \startindex ... \stopindex as short
form for \startregister[index] ... \stopregister[index]
> This facility may exist but the Context manual is a bit hard to follow
> on indexing.
The list has many example, you should use "index", "register" or
"Steffen Wolfrum" in the search field to find them.
Regards,
Wolfgang
___________________________________________________________________________________
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 : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-07-23 13:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-18 17:38 \index versus makeindex John Culleton
2008-07-21 6:16 ` Wolfgang Schuster
2008-07-23 12:50 ` John Culleton
2008-07-23 13:03 ` Wolfgang Schuster
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).