Re: Second level before the first level headline?

Matěj Cepl <[email protected]>
Newsgroups gmane.text.docutils.user
Organization <><
Message-ID <[email protected]>
On 20/05/14 18:29, David Goodger wrote:
>> I would simply put an artificial Part 0 header into the
>> text to solve this issue.  For example this one should work::
>>
>>   ----------------------------------------
>>   PART 0. — PEPATORY NOTE AND INTRODUCTION
>>   ----------------------------------------
> 
> I agree. That header could then be styled and processed specially.

How can I do that? The ideal would be some kind of equivalent of
'display: none' class (just for ePub is possible).

> A quick and dirty hack would be to have an empty title for the Part 0
> header, like this:
> 
> -----
> \
> -----
> .. The above is a level-1 header to give this document a reasonable structure.

Actually this break docutils parser apparently (pandoc is happy, but
rst2html is not). So I use this hack instead:

-------------------------------------
|empty|
-------------------------------------

.. |empty| unicode:: 0x20

Best,

Matěj

-- 
http://www.ceplovi.cz/matej/, Jabber: [email protected]
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC

Never ascribe to malice that which is adequately explained by
stupidity.
    -- Napoleon Bonaparte (or many other people to whom this
       quote is ascribed)

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.
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.