# How to disable hyphenation in all section and subsection titles?

Is there a way to disable hyphenation (splitting up a word) in all section and subsection titles (while leaving hyphenation in the main text unchanged)? They look a bit odd to me. Thank you.

-

The titlesec package offers an according option.

``````\usepackage[raggedright]{titlesec}
``````

Details in the package manual. I guess the sectsty package has similar capabilities.

-
awesome, thanks! –  ceiling cat Aug 3 '11 at 18:30

try `\section{\sloppy My section title without hyphenating}`

-
put `\raggedright` in the section:
``````\newcommand\section{\@startsection {section}{1}{\z@}%