LaTeX Changing the \subsubsection format in LaTeX

  • Thread starter Thread starter middleCmusic
  • Start date Start date
  • Tags Tags
    Format Latex
Click For Summary
The discussion focuses on modifying the formatting of \subsubsection in LaTeX to display the section number after the words "Definition" or "Theorem." The user seeks a way to create a custom command that allows for a structure like \subsubsection{Definition}{function}, resulting in a format such as "Definition 1.1.1 | function." The goal is to maintain automatic numbering for referencing while avoiding manual construction of a table of contents. The user emphasizes the need for this formatting to support a personal encyclopedia of theorems and definitions, ensuring logical order and rigor in their documentation. The titlesec package is suggested as a potential resource for achieving the desired formatting.
middleCmusic
Messages
74
Reaction score
0
Hey everyone,

I'm trying to find out some way to change the \subsubsection format in LaTeX so that the number comes after the word "Definition" or "Theorem" etc. Now obviously, I could simply use \textbf{} and put my stuff in there and ignore the \section commands altogether, but then I would have to construct my own table of contents, and renumber sections as I insert new ones in between old ones.

So my question is... is there any way to define a new command so that I can type something like this?

\subsubsection{Definition}{function}

and have it come out looking like this

\text{Definition 1.1.1 } \mid \text{ function} ?

Any help would really be appreciated.

Context: I'm making a personal encyclopedia of theorems/definitions/etc as I learn them, and trying to make it totally logically ordered and rigorous, which often involves inventing little lemmas to put in between previously recorded stuff, as many books gloss over important points in their proofs. (Much like what proofwiki does, only numbered with the previous theorems/definitions referenced by number in the proofs.)
 
Physics news on Phys.org
I should also clarify that \subsubsection*{} is not the kind of solution I'm looking for, as I'm going to use \label and \ref to reference all of the numbers.. so they have to be numbered.
 
Look at the titlesec package.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K