On Sat, Jun 25, 2011 at 01:18, Warren Weckesser
<[email protected]> wrote:
> Hi,
>
> Suppose I have input like this:
>
>
> 1. Four score and seven years ago,
> 2. 'Twas brillig, and the slithy toves
> 3. Able was I ere I saw Elba.
>
>
> and I want the index to include a reference to "brillig" where it occurs in
> item 2.  I can do this:
>
>
> 1. Four score and seven years ago,
>
> .. index:: brillig
>
> 2. 'Twas brillig, and the slithy toves
> 3. Able was I ere I saw Elba.
>
>
> but that puts a blank line between items 1 and 2 in the output.   Is there a
> better alternative?

Hi Warren,

Try the following:

1. Four score and seven years ago,
2. 'Twas :index:`brillig`, and the slithy toves
3. Able was I ere I saw Elba.

For more options, such as making an index pair using this Sphinx
"role", please see:
http://sphinx.pocoo.org/latest/markup/misc.html?highlight=index#role-index

Kevin

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to