LATEX Section Partitioning Tutorial
Zone
2021
Contents
Part I
Is This Necessary?
Chapter 1
A Chapter about Sectioning
For this tutorial about LATEX sectioning, we included a \part command. It
should be noted that “Parts” are not a part of the LATEX sectioning hierarchy.
I only brought one in to show how it could be used. And it does show
up in the Table of Contents. The hierarchy includes chapters at the top,
sections, subsections and subsubsections. Paragraphs and subparagraphs
are also included further on down the line but they will not be covered in
this tutorial.
Section Sequence Numbering
Notice the number for this section. I didn’t do it. It was all done for us by
LATEX. We are able to put our focus on content and there is no need to worry
about adjusting numbers so that they are correct. What could be easier?
Proof of Section Sequence Numbering
Notice how the next number in the sequence was used to number this section?
The proof is in the pudding.
The “\chapter” Command Starts a New Page
Any time you use the \chapter command, LATEX will start a new page.
Setting Counters for Sectioning Levels
Look at the number to the left of this subsubsection heading. I’m going to
show how to reset the counter for that number and then put up another
subsubsection. I will use \setcounter{subsubsection}{5}.
Notice the Number to the Left
I already explained how to change the subsubsection number. I also changed
the section number sequencing with \setcounter{section}{12}.
LATEX Tutorial Series - ZONE STOMPER
LATEX Sectioning Tutorial
Code Guide:
Experiment - The best way to learn coding is with a keyboard. If you can learn how to type, you
can learn how to code. Use any text editor. I recommend TEXworks.
Own It - If you want to learn typesetting, you probably have something to say. It will be easier for
you to understand the markup if you apply it to your own ideas. Try injecting those ideas into
your documents. Typesetting is all about improving the appearance of content.
File Extension - Always use the .tex file extension. Example: hello world.tex
Code Modifications - Pay attention to lines with comments. Don't type
the comments. Just follow along with the modifications. Typing will help you learn coding.
Line Numbers - Don't type the line numbers into your LATEX code or it will not compile. Line
numbers are for reference only.
Code Demos - All code blocks are followed by resized images of .pdf documents produced from those
code blocks using pdfLATEX. An automated process was used to avoid typos or coding errors.
Enjoy!
Subscribe to Zone Stomper for more tutorials on typesetting, LaTeX, TeX and TikZ.