Search code examples
restructuredtextmulti-level

reStructuredText Multilevel


How can I get such a structur with reStructuredText? Is it even possible?

1. Title
    1.1 Subtitle
         1.1.2 SubSubtitle
             1.1.2.1 SubSubtitle
    1.2 2ndSubtitle
         1.2.1 2ndSubSubtitle

Solution

  • So I found the answer here:

    Title
    =====
       Subtitle
       --------
         ___________
         SubSubtitle
         ___________
    
            SubSubSubtitle 1
            ________________
    
            SubSubSubtitle 2
            ________________  
    
         _____________
         SubSubtitle 2
         _____________         
    
    Title 2
    =======
    

    The Output would be (if numbered doctree):

    1. Title
       1.1 Subtitle
           1.1.1 SubSubtitle
                 1.1.1.1 SubSubSubtitle 1
                 1.1.1.2 SubSubSubtitle 2
           1.1.2 SubSubtitle 2
    2. Title 2
    

    For more information check out: http://docutils.sourceforge.net/docs/user/rst/quickstart.html#sections