On Sat, Jun 25, 2011 at 7:57 AM, Kevin Dunn <kgd...@gmail.com> wrote:

> On Sat, Jun 25, 2011 at 01:18, Warren Weckesser
> <warren.weckes...@gmail.com> 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
>
>

Ah, a new feature of 1.1.  I'm looking forward to its release.

Warren



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

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

Reply via email to