On 2013-08-23, Nikos Kermanidis wrote:

>> Not directly. 

>> However, you can (ab)use the "rubric" and/or topic directives (together
>> with a custom style) which are not numbered.

>> With Docutils, the title is not numbered, but Sphinx misses the
>> "first-section-heading-to-title" transform present in Docutils.

>> Günter

> Does anybody know how to achieve this? How can I use those directives and 
> what kind of custom style do I need?

For usage, see
http://docutils.sourceforge.net/docs/ref/rst/directives.html#rubric and 
http://docutils.sourceforge.net/docs/ref/rst/directives.html#topic

> I would like a result like in Docutils where the title and the subtitle is 
> not numbered.

By default, the rubric element is exported to HTML as paragraph with class
"rubric":

<p class="rubric">This is a rubric</p>

Use appropriate CSS rules to style like the "normal" title/subtitle.

Of course you can also add custom class arguments like::

  .. rubric::
     :class: mysubtitle

to differentiate from a "real" rubric and between title and subtitle
substitutes.

Günter

-- 
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 http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to