Document Classes ⇒ Hanging numbering for paragraph
Hanging numbering for paragraph
The default is:
1.2.3.4 Paragraph Title This is some text in the paragraph
I'd like it to act like this
1.2.3.4 Paragraph Title that wraps...
(-hang-)and the title continues
This is some text in the paragraph
Is there a counter to set like secnumdepth to make this act like subsubsection?
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10334
- Joined: Mon Mar 10, 2008 9:44 pm
Hanging numbering for paragraph
Code: Select all
\titleclass{\objectivesec}{straight}[\subsubsection]
\titleformat{\objectivesec}[hang]{\normalfont\bfseries\large}
{\theobjectivesec}
{.5em}{}[]
\titlespacing{\objectivesec}{0pt}{*1.5}{*0}
\newcounter{objectivesec}[subsection]
\renewcommand\theobjectivesec{\thesubsection.\arabic{objectivesec}}
\newcommand\objective[1]{\objectivesec{Objective \arabic{objectivesec} -- #1}}