I want to include an indented, underlined, upper- and lowercase paragraph heading ending with a period in my document instead of using \subsubsection. Anyone who knows how I can define the command for this in LaTeX?

  • 4
    Welcome to TeX.sx! Usually, we don't put a greeting or a "thank you" in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Upvoting is the preferred way here to say "thank you" to users who helped you. – doncherry Aug 15 '12 at 22:47

You can use the titlesec package; the ulem package was used for the underlining:

\usepackage{lipsum}% just to generate text for the example



\section{A Section}
\subsection{A Subsection}
\subsubsection{A Subsubection}
\paragraph{A Numbered Paragraph}
\paragraph*{An Unnumbered Paragraph}


enter image description here

  • I just noted that when I include the 'explicit' in titlesec package the section/subsection disappears and I end up with something like this 1 or 1.1 instead of '1 A Section' or '1.1 A Subsection' – Thembi Aug 16 '12 at 6:36
  • 2
    @Thembi when the explicit option is used you need to use explicitly pass the title as #1 in the last mandatory argument, so, for example, instead of just saying \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{} you need to use \titleformat{\section} {\normalfont\Large\bfseries}{\thesection}{1em}{#1}. If you experience any problems, please add to your question a minimal, complete example illustrating your problems. – Gonzalo Medina Aug 16 '12 at 11:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.