[texhax] Stopping hyphens in table of contents and headings

Andy Farnell padawan12 at obiwannabe.co.uk
Tue Oct 23 12:21:16 CEST 2007


I had a lot of success with adjusting the hyphen penalty
globally. There are other side effects (which I don't
fully understand yet), but the effect is what I wanted.

Try adding

\hyphenpenalty=5000

at the start of the document.

On Mon, 22 Oct 2007 22:38:25 +0100
Suzanna Laycock <s.k.laycock at sheffield.ac.uk> wrote:

> Hi,
> 
> Thanks for the advice.
> 
> Basically some words are being hyphenated in the chapter and section  
> headings and the ToC.
> 
> I'm writing my PhD thesis so have the below, so everything is in one  
> column.
> 
> \documentclass[12pt, oneside]{report}
> 
> I would like to stop getting hyphenated words in the chapter/section/ 
> subsection headings because it doesn't look to good.  As far as I can  
> tell I haven't adjusted the default chapter heading settings.
> 
> Can you supply some more information on how to do no. 3 " use  
> \raggedright which will require that you modify the section headings  
> command(s), a non-trivial task"
> 
> Thanks
> Suzanna
> 
> 
> 
> On 22 Oct 2007, at 22:18, Fehd, Ronald J. (CDC/CCHIS/NCPHI) wrote:
> 
> >> From: Suzanna Laycock <s.k.laycock at sheffield.ac.uk>
> >> Subject: [texhax] Stopping hyphens in table of contents and headings
> >
> >> I'm net to LaTex and I've managed to resolve most problems,
> >> but I can't find out how to do the following:
> >>
> >> I would like to stop hyphenation in my table of contents, and
> >> my section headings.  How can I do this?
> >
> > TeX?! Overly helpful?!  ... Not!
> >
> > Where are you getting hyphenation?
> >
> > * in ToC only
> >
> > * or in the body of your output
> >
> >
> > I am guessing that you may be using twocolumn in your options.
> >
> > 1. figure out how to have the ToC in just one column
> >
> > \begin{document}
> >
> > \maketitle
> >
> > \tableofcontents
> >
> > \newpage
> >
> > \twocolumn
> >
> > 2. reduce size
> >
> > \begin{small}
> >
> > \tableofcontents
> >
> > \end{small}
> >
> > 3. use \raggedright which will require that you modify the section
> > headings command(s), a non-trivial task
> >
> > Ron Fehd  the macro maven  CDC Atlanta GA USA RJF2 at cdc dot gov
> >
> >
> > _______________________________________________
> > TeX FAQ: http://www.tex.ac.uk/faq
> > Mailing list archives: http://tug.org/pipermail/texhax/
> > More links: http://tug.org/begin.html
> >
> > Automated subscription management: http://tug.org/mailman/listinfo/ 
> > texhax
> > Human mailing list managers: postmaster at tug.org
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org


-- 
Use the source


More information about the texhax mailing list