Text FormattingFull argument list for Sectioning Commands

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
Salerdam
Posts: 2
Joined: Sat Dec 02, 2023 3:05 am

Full argument list for Sectioning Commands

Post by Salerdam »

I would like to know the full argument list for the Latex Sectioning Commands

Code: Select all

\part
\chapter
\section
\subsection
\subsubsection
\paragraph
\subparagraph

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
rais
Posts: 419
Joined: Sun Nov 16, 2014 8:51 pm

Full argument list for Sectioning Commands

Post by rais »

You may wish to get yourself some basic introduction about LaTeX, be it in book form or online...
Having said that, each of those sectioning commands understand the same set of arguments. As a stand-in, I'm using \chapter here:
\chapter<*|[m]>{t}, where the stuff between <> is optional (ordinarily, I'd use brackets for that, but then, brackets may be used for the command already). That basically leads to 3 different calls:
\chapter{[i]t[/i]}
\chapter[[i]m[/i]]{[i]t[/i]}
\chapter*{[i]t[/i]}
In each case, {t} denotes the title to be displayed in the text (the sectioning title).
If [m] is given, it will be taken for the TOC entry, as well as for the header, if said header is filled with a sectioning title of that sectioning level.
If * is given, TOC/header entries are suppressed.
If neither [m] nor * is given, {t} is taken for TOC/header, as well.
Since \chapter*[[i]m[/i]]{[i]t[/i]} wouldn't make much sense (defining a moving argument [m] and suppressing it with * at the same call) I didn't put it in the list above.

If you're using a class that differs from the standard classes (book, report, article), you may have to have a look at the documentation for that class, too.

And of course, article classes don't (usually) provide a \chapter command...

KR
Rainer
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Full argument list for Sectioning Commands

Post by Stefan Kottwitz »

Additionally, here's a short reference: Sectioning.

Stefan
LaTeX.org admin
JudyHills
Posts: 1
Joined: Tue Jan 02, 2024 7:24 am

Full argument list for Sectioning Commands

Post by JudyHills »

I am new here, and I have some questions, should I ask them here?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Full argument list for Sectioning Commands

Post by Stefan Kottwitz »

Hi Judy,

welcome to the forum!

You are known for forum spam advertisements. Would you like to tell us something about your job?

Thanks,

Stefan
LaTeX.org admin
Post Reply