ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: John Culleton <john@wexfordpress.com>
Subject: Fwd: Xindy and Context
Date: Thu, 24 Oct 2002 18:41:42 -0400	[thread overview]
Message-ID: <200210241841.42195.john@wexfordpress.com> (raw)

Apologies for the empty message, subject as above.

I have found a set of macros that allow either makeindex or Xindy (in
makeindex emulation) to run with Context. This allows for more
functionality than the present register commands available from Context
proper.  They generate a makeindex type output file, which can either
be processed by makeindex directly or by Xindy via the makeindex4
script and tex2xindy program called by it. 

Here are the requirements:
Complete Xindy package (or complete makeindex package)
index.tex from TeXsis site.

A simple input statement starts things off:

\input index.tex

The indexing commands are \index{--- and \idx{---
\idx causes whatever is between { and } to be printed as well as added
to the index.  The usual conventions found in the LaTeX \index.sty
package obtain. Here are some valid statements:
\idx{foo}
\index{foo!bar}                %subitem
\index{fable@foo!babble@bar}   %subitem with alternate sorting on both
                               %levels
\index{Jose|(}                 %start range    
\index{Jose|)}                 %stop range
\index{italicized|ital}          %italicized page number. 

...and so on.
`
If the \idx statement form is used, and \markindextrue is present then
the indexed terms will be printed in the document with a box around
them indicating that they are indexed. 


This is a two pass system. The command to import the finished index is
\input filename.ind
...where filename is the name of the tex file being indexed.

In between the two passes one of these two commands must be run:

makeindex filename.idx 

or for the Xindy alternative:

makeindex4 filename.idx


Here is a sample document:
----------------
\input index.tex
\starttext
\index{foo!bar}
...
\index{France@{\it France}}
\page[yes]
\input filename.ind
\stoptext
---------------
The full power of Xindy in Context is not yet unleashed. But the above 
items
plant the seed...
-- 
John Culleton
Able Indexers and Typesetters, Rowse Reviews, Culleton Editorial 
Services
http://wexfordpress.com



__________________________________________________
D O T E A S Y - "Join the web hosting revolution!"
             http://www.doteasy.com

                 reply	other threads:[~2002-10-24 22:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200210241841.42195.john@wexfordpress.com \
    --to=john@wexfordpress.com \
    /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).