ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Indexing problem solved. Makeindex works with Context!
@ 2008-07-19 16:13 John Culleton
  2008-07-19 17:41 ` John Culleton
  0 siblings, 1 reply; 3+ messages in thread
From: John Culleton @ 2008-07-19 16:13 UTC (permalink / raw)
  To: ntg-context

I discovered an old file in the texsis distribution called index.tex.  
Unlike eplain.tex it doesn't cause problems when used with Context. 
It creates the book.idx file required by makeindex.  Now the full 
range of features of makeindex are available to Context users. The 
only change needed is trivial, in every \index statement change the + 
sign to ! and of course run makeindex between Context runs. 
This solution is simple enough and adds enough power to Context that I 
suggest it be incorporated into the texexec program.    It doesn't 
have all the bells and whistles of eplain but it has enough to 
produce a professional index.  And since that is part of my business 
I welcome it.

For a book named book.tex here is all that is required today:

\input index.tex %This overwrites the Context \index macro
....
\index{main item!secondary item} %two level item
...
\idx{resorted item@``resorted item''} %prints index item in quotes
                                                          
...
\input book.ind %prints index

I haven't checked out all the other extra features, such as putting 
proof marks in the margin, but the above is sufficient for starters.

-- 
John Culleton
Precision Typesetting
Able Indexers and Typesetters
http://wexfordpress.com
___________________________________________________________________________________
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] 3+ messages in thread

* Re: Indexing problem solved. Makeindex works with Context!
  2008-07-19 16:13 Indexing problem solved. Makeindex works with Context! John Culleton
@ 2008-07-19 17:41 ` John Culleton
  2008-07-19 17:53   ` luigi scarso
  0 siblings, 1 reply; 3+ messages in thread
From: John Culleton @ 2008-07-19 17:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users

On Saturday 19 July 2008 12:13:25 pm John Culleton wrote:
> I discovered an old file in the texsis distribution called
> index.tex. Unlike eplain.tex it doesn't cause problems when used
> with Context. It creates the book.idx file required by makeindex. 
> Now the full range of features of makeindex are available to
> Context users. The only change needed is trivial, in every \index
> statement change the + sign to ! and of course run makeindex
> between Context runs. This solution is simple enough and adds
> enough power to Context that I suggest it be incorporated into the
> texexec program.    It doesn't have all the bells and whistles of
> eplain but it has enough to produce a professional index.  And
> since that is part of my business I welcome it.
>
> For a book named book.tex here is all that is required today:
>
> \input index.tex %This overwrites the Context \index macro
> ....
> \index{main item!secondary item} %two level item
> ...
> \idx{resorted item@``resorted item''} %prints index item in quotes
>
> ...
> \input book.ind %prints index

For that last line I substituted:
------------------------------------------
 \title{Index}
\writetolist[chapter]{}{Index}
\tfx
\startcolumns[n=2]
\typefile{book.ind}
\stopcolumns
----------------------------------------
And the makeindex command I use is
 makeindex -s alpha.ist book.idx    

The alpha.ist file adjusts the default output of makeindex.  The file 
I use is here:

http://wexfordpress.com/tex/alpha.ist

Now I have a satisfactory index.  I changed all the + to ! in the 
\index cammands as mentioned before. But it is possible to modify 
makeindex still further with an addition to alpha.ist:
--------------------------------
level +
--------------------------------


-- 
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] 3+ messages in thread

* Re: Indexing problem solved. Makeindex works with Context!
  2008-07-19 17:41 ` John Culleton
@ 2008-07-19 17:53   ` luigi scarso
  0 siblings, 0 replies; 3+ messages in thread
From: luigi scarso @ 2008-07-19 17:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 49 bytes --]

I think you should wikify these things
-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 81 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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] 3+ messages in thread

end of thread, other threads:[~2008-07-19 17:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-19 16:13 Indexing problem solved. Makeindex works with Context! John Culleton
2008-07-19 17:41 ` John Culleton
2008-07-19 17:53   ` luigi scarso

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