TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a custom block of text on my title page which can be longer than a single line. By default LaTeX is hyphenating a word at the end of a line, but I want it to break on to the next line.

How do I force this to happen?

I know I can use \\ in the text, but I'm creating a standard template for a documents and I would prefer it to handle this edge case automatically instead of having to remember to break the text manually.


This is my title longpiece-

should be

This is my title

share|improve this question

See this answer in the UK TeX FAQ.

Three "easy" ways to prevent hyphenation for a text block (as opposed to the whole document) are:

  • Enclose the text block in a raggedright environment (this typesets the block raggedright and makes hyphenation very unlikely);

  • Enclose the text block in a group and set \hyphenpenalty and \exhyphenpenalty to 10000;

  • EDIT: Load the hyphenat package and write \nohyphens{(text block)}.

Minimal example:





\textwidth 300pt






\hyphenpenalty 10000
\exhyphenpenalty 10000





EDIT 2: The biblatex package provides the additional commands \nohyphenation (which normally should be used inside a group) and \textnohyphenation{(text)}.

share|improve this answer
biblatex's \[text]nohyphenation only work on complete paragraphs; they rely on \lefthyphenmin, and the value of that at the end of the paragraph is used when breaking a paragraph into lines. – wasteofspace Apr 15 '11 at 16:09

If the longpieceoftext s are few and easily identified, then

This is my title \mbox{longpieceoftext} with 
some other \mbox{ridiculouslylongtextaddition}

should do what you want. You will, of course, "get what you wish for, so beware": over/underfull boxes...

share|improve this answer
This may cause the text block to stick into the margin. – lockstep Nov 6 '10 at 14:01
@lockstep: Yes, true. I think OP needs to clarify a bit exactly what he's trying to do. For example, this answer plus \raggedright might fill the bill... – Brent.Longborough Nov 6 '10 at 17:07

You must use:


Read this link

share|improve this answer

You can use the command:


or the environment:


§ Paragraph alignment

share|improve this answer

Easiest solution:

share|improve this answer
You can highlight code in your post using back-ticks. For code-blocks indent them by four spaces or use the {} on the gui. – Andrew Apr 12 at 10:08
Please explain what is the difference to @Christina's answer ... – Kurt Apr 12 at 10:27

Your Answer


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.