Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
If titlesec is 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 6 at 21:07

1 Answer 1

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}

enter image description here

Take into account that underlining is not considered a good typographical practice.

share|improve this answer
    
Thank you, I wouldn't find this solution alone ! –  Newbie Jul 7 at 9:02
    
@Newbie You're welcome! Don't forget that you can accept the answer (if you consider it solved your problem) by clicking the checkmark to its left. In case of doubt, please see How do you accept an answer?. –  Gonzalo Medina Jul 7 at 14:51

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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