Re: Second level before the first level headline?
Beni Cherniavsky-Paskin <[email protected]>
| Newsgroups | gmane.text.docutils.user |
|---|---|
| Message-ID | <CALJxeiLAxMzchM5DuUhJUf3K7+64cOHYMqzv9KtV67tmL5y4JQ@mail.gmail.com> |
It makes sense that an Introduction stands alone outside PARTs but
then it's semantically a level-1 section.
If the publisher (or you) decide to have its heading smaller than a
PART, that's a formatting choice, not sematic.
At best its semantics is "a special kind of level-1 section".
How about::
.. class:: front-matter
--------------
Prefatory Note
--------------
text...
.. class:: front-matter
------------
Introduction
------------
text...
-----------
PART I. FOO
-----------
I. BAR
------
And then use CSS to style ``div.section.front-matter h1`` differently.
(Classes work with rst2html, ignored by pandoc)
Actually, looking at the Gutenberg link, I see PREPATORY NOTE,
INTRODUCTION and PARTs all "formatted" in the same way (capitals after
``* * * `` line).
If you're happy with that, maybe you don't need any special classes/styling.
On Sat, May 17, 2014 at 4:35 AM, Matěj Cepl <[email protected]> wrote:
> Hi,
>
> I am trying to reformat the book “The Everlasting Man” by Gilbert Keith
> Chesterton. I found a public domain text on
> http://gutenberg.net.au/ebooks01/0100311.txt and I would like to
> reformat it into rST and regenerate as ePub with pandoc (or perhaps even
> https://pypi.python.org/pypi/epubmaker/). The rST file I have created is
> http://mcepl.fedorapeople.org/tmp/everlasting-man.rst
>
> The problem is that the ePub I have created
> (http://mcepl.fedorapeople.org/tmp/everlasting-man.epub) has completely
> wrong structure. I cannot change the fact that Chesterton (or the
> publisher, more likely) decided that the Introduction (level 2 heading)
> precedes The Part I. (level 1 heading). See the attached screenshot of
> the outline how it is wrong.
>
> Is there way how to persuade pandoc (or other rST tools) that what I
> want to be the level 2 heading (marked by single dashes underlining) is
> really that, and that level 1 heading is marked by by both underlining
> and overlining?
>
> Thank you,
>
> Matěj
>
> --
> http://www.ceplovi.cz/matej/, Jabber: [email protected]
> GPG Finger: 89EF 4BC6 288A BF43 1BAB 25C3 E09F EF25 D964 84AC
>
> ..every Man has a Property in his own Person. This no Body has
> any Right to but himself. The Labour of his Body, and the Work of
> his Hands, we may say, are properly his. .... The great and chief
> end therefore, of Mens uniting into Commonwealths, and putting
> themselves under Government, is the Preservation of their
> Property.
> -- John Locke, "A Treatise Concerning Civil Government"
>
> ------------------------------------------------------------------------------
> "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.
>
------------------------------------------------------------------------------
"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.