Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

About the Scope of Sections and Paragraphs

+2
−0

Consider a document structure like this:

1. First-Level-Heading

Some text to give an overview about what I want to tell in this chapter. In LaTeX, this heading would be produced using the \section-command.

Heading-Without-Numbering In LaTeX, this is produced using \paragraph. Here are some sentences, sometimes this text is longer and contains multiple paragraphs.

I wonder if this text still belongs to Heading-Without-Numbering or if that heading only belongs to that paragraph, as the LaTeX command suggests. If it does, how can I end the scope of that heading? If it doesn't, how can I extend it? I'd like to keep the indentation.

1.1 Second-Level-Heading

Is it okay to have the Heading-Without-Numbering at same level (2nd level) as this truly second-level heading (produced using the \subsection-command)? What if Heading-Without-Numbering was numbered, i.e. 1.0.1 Heading-Without-Numbering?

I hope my questions are clear. I'm computer scientist, so maybe I think too much like I was programming, as there the start and end of scope of classes, functions, loops, etc. has to be defined very well. I'm writing a scientific paper.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

This post was sourced from https://writers.stackexchange.com/q/30580. It is licensed under CC BY-SA 3.0.

0 comment threads

1 answer

+2
−0

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.

}}

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »