0% found this document useful (0 votes)
33 views2 pages

Sectioning - How To Underline Header Paragraph Section in Latex - TeX - LaTeX Stack Exchange

Uploaded by

Alex Nevsky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views2 pages

Sectioning - How To Underline Header Paragraph Section in Latex - TeX - LaTeX Stack Exchange

Uploaded by

Alex Nevsky
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How to underline header paragraph section in Latex

Asked 8 years, 2 months ago Modified 8 years, 2 months ago Viewed 3k times

0 I've read a lot of questions that are quite similar to mine, but I couldn't make any of them work
properly. What I'd like is to have below the "subsubsection" the paragraph (not numbered and
not included in the indeces).

I would like the header of the paragraph to be underlined, bold and the rest of the text
beginning after a new line. I've tried ulem and sectsty, but non of them worked as desired.
Currently I'm using the following code:

\titleformat{\paragraph}
{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

Any suggestions? Thank you in advance for your replies!

sectioning titlesec sections-paragraphs

Share Improve this question edited Sep 24, 2016 at 14:12 asked Sep 24, 2016 at 14:05
Follow lockstep Pantelis
254k 72 730 798 3 1 2

1 Answer Sorted by:


1 This works fine for me (although underlining tiles is not at all advisable: it was used in the
times of typewriters, because one could not do any better):

\documentclass{article}
\usepackage{ulem}
\usepackage{titlesec}

\titleformat{\paragraph}[hang]{\bfseries}{}{0pt}{\uline}
\titlespacing*{\paragraph}
{0pt}{3.25ex plus 1ex minus .2ex}{1.5ex plus .2ex}

\begin{document}

\paragraph{test}
Text text text text text text text text text text text text text text text text
text text text text text text text text text text text text text text text text
text.

\end{document}

Share Improve this answer Follow answered Sep 24, 2016 at 14:59
Bernard
274k 14 160 375

Thank you for the prompt response and the help. It works perfectly... You are totally write regarding
the usage of underlining.. It's just that I have "sections,subsections and subsubsections"... and I'd
need one extra subcategory, which would distinguish from the rest of the text in a nice way, while
not being a subcategory of the ones on top (especially numbered... 1.2.3.1.2 :P ).. – Pantelis Sep
25, 2016 at 9:51

You might write paragraph titles in italic (non-bold), maybe \large to differentiate from the other
sectioning levels. And/or add a bullet (or a square bullet, possibly soberly coloured) before the titles.
It's left up to your imagination… – Bernard Sep 25, 2016 at 10:31

You might also like