On 2016-04-12 18:30, Josh English wrote: > I am working on a book that uses a lot of math in prefix notation. I > created an HTML file that uses span elements inside other span elements. > This is possible in HTML but impossible in reST, as far as I can tell. > > Here is a sample of what I'm doing in plain HTML: > > <tr><td class="prefix">= <span class="unchanging">* a 0</span> 0</td> > <td>Given</td></tr> > <tr><td class="prefix">= + <span class="unchanged">* a 0</span> <span > class="changing">0</span> 0</td> > <td class="blue-indicator">Identity of +</td></tr> > <tr><td class="prefix">= <span class="changing">+ <span > class="unchanging">* a 0</span> <span class="changed">+ a > <sup>-</sup>a</span></span> 0</td> > <td class="green-indicator">Inverse of +</td></tr> > > The CSS styles portions of the line with blue or green overlines and > underlines. > > I have created a role in my reST to handle the prefix tag, and that uses > the monospace font I want to use, but I cannot add code to get the > overlines and underlines.
Did you ever find a solution to this? I'm having a similar problem; I need to create a span of inline text with a custom CSS class applied, *inside of which* I need to use (built-in) inline markup. Example: This :banner:`is *not* a test` -- Matthew -- 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.
