Any package documentation that looks like this:
\titleformat{<command>}[<shape>]{<format>}{<label>}{<sec>}{<before-code>}[<after-code>]
is considerably less helpful for the newbie (like me) than examples. It does not give the newbie reader much of a clue as to what exactly ought to be typed into a real document. Do I type in those angle braces? Curly braces? Square braces? What, precisely, goes inside any or all of these delimiters?
Examples are the way to document.
The titlesec
documention does have examples at the end, but they are too few, and do not cover the case I'm interested in.
My question is this: what is a simple, straight-forward way to format section titles? There are several design requirements for my output:
- The section number should not be indented at all.
- The entire body of the section text should be indented similarly to what the
enumerate
package does, except that I would prefer normal prose paragraph indenting instead of newlines. That is, the first lines of paragraphs in the section are indented "twice", while the subsequent lines are only indented "once". Here "once" and "twice" mean relative to the section number.
I'm sure there's a way to do this, but my searching here and elsewhere has failed to uncover it. I'd be grateful for any assistance. Thanks in advance!
Here is a minimal almost-working example using the enumerate
package. I could almost do it with this package, except for wanting bold section titles and so forth.
\documentclass[12pt]{article}
\usepackage{enumerate}
\begin{document}
\begin{enumerate}[I.]
\item Section Title
This level has a great spacing from the 1. on the left to the first word ``This''. And then, if I want
a hierarchy, the heading there, an `A.' in this case,
\begin{enumerate}[A.]
\item Subsection Title
is nicely lined up with the indented text above. However, I would like to change
this indenting to use normal prose paragraph indenting, such as
\end{enumerate}
\end{enumerate}
Normal paragraph prose indenting, where the first line is indented, and the rest of the paragraph is not.
However, the non-indented text needs to be at the indentation of the ``This'' above, and the first lines need
to be indented one more slot, of the same width.
\end{document}
And here's a minimal working example I typed in in MS Word (naturally, I had to man-handle the indenting to be what I wanted):
titlesec
has an appendix with examples, right?\titleformat
-macro.titlesec
and how it doesn't do what you want. See I've just been asked to write a minimal example, what is that?. As @Johannes_B notes, thetitlesec
tag on the site has lots of fully worked examples to choose from.