Possible Duplicate:
Changing the section title style for an article document type

I'm trying to undeline the title of a set of subsections in my document. In order to achieve it, I have defined a new environment that encapsulates the format of this subsection.

My problem is that I can not achieve to underline the text of the title of the subsection. I don't want to use the package sectsty because if I do this I have conflicts with other definitions done using the titlesec package.

  • Welcome to TeX.sx! A tip: If you indent lines by 4 spaces, they'll be marked as a code sample. You can also highlight the code and click the "code" button (with "{}" on it).
    – Thorsten
    Aug 22 '12 at 13:28
  • Please think twice about this. Underlining is really ugly.
    – mrf
    Aug 22 '12 at 13:32
  • Load for example the ulem package and add \uline to the last argument (i.e the one after {1em}) of \titleformat.
    – cgnieder
    Aug 22 '12 at 13:36
  • 1
    @user17888 Good typography (see Bringhurst) recommend to use italic, not underline. Underline was used in manuscripts typed on a typewriter to indicate for the printing house that the text should be set in italic. So only use underlining if your boss sacks you if you are not using it.
    – Sveinung
    Aug 22 '12 at 15:01

define it as a command, just as the default subsection. Instead of package soul you can use ulem alternetively







enter image description here

  • @user17888 please consider accepting Herbert's answer (by clicking on the check-mark to the left of the answer, below its vote count). Aug 22 '12 at 22:16

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