I was unaware that admonitions could be indented like that.  Thanks
for the tip!

I found the output even more appealing (IMO) by indenting the ..
note:: tag to the same level as the list item text (three spaces)
rather than using tab (which is expanded to 4 spaces in my editor).

Using tab:

3. List item

         Note: Note text here

Using 3 spaces:

3. List item

   Note: Note text here

Using tab, the LaTeX output includes a \begin{quote} .. \end{quote}
section around the \begin{notice} .. \end{notice} section.


Thanks again for the tip.


On Feb 13, 5:32 am, Doug Hellmann <[email protected]> wrote:
> On Feb 12, 2010, at 8:40 PM, Jason wrote:
>
> > Windows XP, Python 2.6.4, Sphinx 0.6.4
>
> > I am currently struggling with an issue where numbered lists do not
> > continue in latex output when interrupted by an admonition.  For
> > example, I have the following test:
>
> [...]
>
> > This issue seems to be tied to sphinx only because I can use rst2latex
> > on the same file, and the numbering is correct.  Is there a  
> > workaround?
>
> Have you tried indenting the admonition so it is part of the list  
> element to which it relates?
>
> Test
> ====
>
> 1. List item
>
> 2. List item
>
> 3. List item
>
>     .. note::
>
>        Note text here
>
> 4. List item
>
> 5. List item
>
> Doug

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