Re: Class assigned to all titles or titled blocks of a given level

David Goodger <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CABiJP=J2bjOefMrZzcxJpq_W+HvSqUJKk062uZ1Nz72+xEWYtg@mail.gmail.com>
On Tue, Apr 14, 2015 at 2:58 PM, Jeffrey C. Jacobs
<[email protected]> wrote:
> Is there a way to assign a class to every document element at a given
> title level,

No.

> or is this better at the xml transform level?

You'd need new code or a transform of some kind.

Alternatively:

"""
.. class:: doctor

Doctors
=======

Peter Davison
~~~~~~~~~~~~~

content...

Colin Baker
~~~~~~~~~~~

content...
"""

And then select for every section within a section with class "doctor".

-- 
David Goodger <http://python.net/~goodger>

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.