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.

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.

share|improve this question
add comment

3 Answers

up vote 10 down vote accepted

The titlesec package offers an according option.

\usepackage[raggedright]{titlesec}

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

share|improve this answer
    
awesome, thanks! –  ceiling cat Aug 3 '11 at 18:30
add comment

You have to control in template itself:

put \raggedright in the section:

\newcommand\section{\@startsection {section}{1}{\z@}%
                                   {-3.5ex \@plus -1ex \@minus -.2ex}%
                                   {2.3ex \@plus.2ex}%
                                   {\normalfont\Large\bfseries\raggedright}}
share|improve this answer
add comment

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

share|improve this answer
add comment

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.