Il 28/07/2016 12:38, Paolo Cavallini ha scritto:
> Issue found (thanks Matteo): an option is missing from conf.py
>
> # -- Options for LaTeX output ---------------------------------------------
> latex_elements = {
> 'babel':'\\usepackage[shorthands=off]{babel}',
>
> Adding it solves the error and the index is correctly generated.
Shouldn't this be added by default?
> However, I still have an issue: the pdf has an extra page, before the
> actual index, with an useless:
>
> Indici
> • genindex
>
> if I remove from index.rst the lines:
>
> Indici
> ==================
>
> * :ref:`genindex`
>
> the page disappears, and only the correct index is displayed.
> In html, however, the index disappears in the second case.
> I think the same index should be used for html and latexpdf, and only
> the correct index page should always be generated, so this seems a bug:
> do you agree?
>
> Should I open tickets about this?
Ticket opened:
https://github.com/sphinx-doc/sphinx/issues/2827
As a workaround, I tried using .. only:: directive
http://www.sphinx-doc.org/en/stable/markup/misc.html#including-content-based-on-tags
to include
Indici
==================
* :ref:`genindex`
only in html, but I could not understand which syntax to use. I'd be
grateful of an example.
All the best.
--
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
--
You received this message because you are subscribed to the Google Groups
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.