Post History
The normal thing to do is not to use any Heading-Without-Numbering. If you insist on doing it then everything that follows that heading will belong to the heading because it's a heading. Everything...
Answer
#4: Attribution notice removed
Source: https://writers.stackexchange.com/a/32481 License name: CC BY-SA 3.0 License URL: https://creativecommons.org/licenses/by-sa/3.0/
#3: Attribution notice added
Source: https://writers.stackexchange.com/a/32481 License name: CC BY-SA 3.0 License URL: https://creativecommons.org/licenses/by-sa/3.0/
#2: Initial revision
The normal thing to do is not to use any Heading-Without-Numbering. If you insist on doing it then everything that follows that heading will belong to the heading because it's a _heading_. Everything below, until you meet something of equivalent value, meaning another heading, will belong to this one. You are right when thinking about this like the scope of for example functions. Think about it as if everytime you write a heading you are opening a bracket. # {1. This is a heading level 1 Here goes introductory text as you need at least one paragraph before you can start any subheading. This is like a class. ## {1.1 This is a heading level 2 This heading belongs to the first one as is evident by the brackets. This is like a method. ## }{1.2 This is a heading level 2 again This is on the same level as before, so we close the bracket before opening a new one. This is like a second method ## }{This is a heading level 2 again, but without numbering It's still a heading. This makes this a method again. It doesn't matter how many paragraphs, you used a heading so it will be treated like one. At least if it's visible as a heading. Your example just looks like **bold text** , not like a heading. You need a linebreak after a heading, you can't just continue the text on the same line. Otherwise this is just a paragraph and thereby just one of the instructions in your method. This method for example has three paragraphs, which equals three instructions. # }}{2. This is a heading level 1 again This represents another class, so we have to close the method and the class before. ## {2.1 This is a heading level 2 in the second part We need at least 2 sub-headings, otherwise we shouldn't start to add sub-headers. ## }{2.2 This is a heading level 2 to make at least 2 sub-headings Now we can finish the paper. At the end of your document the last class will be closed. }}