The package amsthm contains the predefined theorem styles plain, definition and remark which you can employ using \theoremstyle before your \newtheorem.
You can also create new theorem styles like this:
\newtheoremstyle{NAME}{ABOVESPACE}{BELOWSPACE}{BODYFONT}{INDENT}{HEADFONT}{HEADPUNCT}{HEADSPACE}{CUSTOM-HEAD-SPEC}. I.e. you have to set all properties of your new style at once.
But I mostly like them as they are, I only want to change like 1 parameter. Therefore I'd like to know the \newtheoremstyle parameters which produce the predefined styles, so I can copy them and only change what I want. I would expect that information to be in the documentation of the package, but it isn't. Does anyone know what they are?
\noindentis wrong, and actually the space between the header and the text is5pt plus 1pt minus 1pt. Thanks for remarking. – egreg May 06 '11 at 10:17plusin a rubber length may actually be stretched to more than the stated value, though theminusis the absolute limit. stretch is applied proportionally to all horizontal spaces in a paragraph or vertical spaces on a page; if afilis present, it overwhelms anything else, but if there is no other stretch in the scope of what's being stretched, the `1pt' would expand to fill the entire amount needed to justify or make a page flush bottom. – barbara beeton May 06 '11 at 12:29\underlineis not a font changing command. And underlining is frowned upon in typographic circles. – egreg May 21 '13 at 17:27\th@⟨style name⟩macro for efficiency reason (so e.g.\th@customstylemay be defined to be\itshape \let \thm@indent \noindent \thm@headsep 5pt␣plus␣1pt␣minus␣1pt\relax \thm@preskip 8.0pt␣plus␣2.0pt␣minus␣4.0pt\thm@postskip 8.0pt␣plus␣2.0pt␣minus␣4.0pt\relax \thm@headfont {\bfseries }\thm@headpunct {.}), and it isn't exactly trivial to parse out the values from that. The built-in styles are special cased (e.g.\th@plain=\itshape) so even harder. – user202729 Sep 13 '22 at 21:03\thm@headsep=5pt plus 1pt minus 1pt– egreg Nov 28 '23 at 11:25