Hided header (rST)

Asked by semy

I've just installed ReText and it doesn't render everything properly.

When I'll write:


I can't see it in preview or in exported PDF. It looks like editor just omits this part of text. Why?

But this:
    some text

Works fine

Question information

English Edit question
ReText Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Dmitry Shachnev (mitya57) said :

When you put a header in the beginning of the file, it's considered as document title, so it won't be displayed. But if you export your document to PDF/HTML/WpGen, this will be displayed as a title.

According to the specification (http://docutils.sourceforge.net/docs/ref/rst/restructuredtext.html#document):

> <...> A lone top-level section title can be treated as the document title. Similarly, a lone second-level section title immediately after the "document title" can become the document subtitle. The rest of the sections are then lifted up a level or two. See the DocTitle transform for details.

Can you help with this problem?

Provide an answer of your own, or ask semy for more information if necessary.

To post a message you must log in.