Can anyone tell me how to underline a section's title without using the sectsty package please? Indeed I am using the memoir class which prohibits this package.
Thank You.
Can anyone tell me how to underline a section's title without using the sectsty package please? Indeed I am using the memoir class which prohibits this package.
Thank You.
This can be done with titlesec, as one of the tags in the question suggests, but I wouldn't recommend this due to some know incompatibilities; see About memoir and titlesec incompatibility, for example.
Here's one possibility using memoir's methods only:
\documentclass{memoir}
\usepackage{ulem}
\usepackage{lipsum}
\newcommand\underlinedhead[1]{\noindent\uline{#1}}
\setsecheadstyle{\underlinedhead}
\begin{document}
\chapter{A test chapter}
\section{A test section}
\lipsum[4]
\end{document}

Take into account that underlining is not considered a good typographical practice.
titlesecis not prohobited, it can do that. But be aware that typographically it's very bad practice: it dates back to typewriter times, when it was hard, if not impossible, to type in boldface or italic. – Bernard Jul 06 '14 at 21:07