TL;RL: Substitutions are working in all my .rst files except for the titles
listed in my index.rst table of contents. What am I doing wrong?

Details:

I am using Sphinx and LilyPond to make an online songbook. My song page
templates are all roughly the same with only the song title, score, and
optionally, notes changing:
_________________________________

.. Dupont Circle Songbook

.. include:: <isonum.txt>
.. include:: /_static/isonum.txt

.. rst-class:: obscure

##############
The Song Title
##############

.. score:: song_title

.. note::

   Notes about the song.
_________________________________

"obscure" is a class that sets <h1> to "display:none" because the
song title is embedded in the SVG generated by my ".. score::" directive.

Which brings me to the table of contents. I'm also using custom bullets for
songs (and regular bullets for text chapters like "Preface" or
"Introduction")
__________________________________________________________

Table of Contents
=================

.. toctree::
   :hidden:
   :maxdepth: 2

   Preface to the Online Edition <online>
   The Song 1 Title   <song_1_title>
   The Song 2 Title   <song_2_title>
   ...
   Cruisc |iacute|  L |aacute| n   <cruiscin_lan>
   ...
   The Song N Title   <song_n_title>

* :doc:`Preface to the Online Edition <online>`

  - :doc:`The Song 1 Title   <song_1_title>`
  - :doc:`The Song 2 Title   <song_2_title>`
  ...
  - :doc:`Cruisc |iacute|  L |aacute| n   <cruiscin_lan>`
  ...
  - :doc:`The Song N Title   <song_n_title>`
__________________________________________________________

Using the |iacute| and |aacute| substitutions works in the
.. note:: directive in the song.rst file, but the Table of Contents in
index.rst does not do the substitution.

The song title on the song_title.rst file uses the subtitutions also. i.e.

#############################
Cruisc |iacute|  L |aacute| n
#############################

What am I doing wrong?

Thanks.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/CA%2BpvXRdkr06O5fzU7Sw0Fs53QnmF5oakRAa4soLLqaXe%3D1JQ1g%40mail.gmail.com.

Reply via email to