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.

I can't find where I can remove any kind of hyphenation and just have LaTeX just do a line break.

edit: Honestly speaking I just don't like to read hyphenation anywhere and that's the only reason why I wanted to remove it. It is a matter of style, probably unexpected in LaTeX.

The document has only a summary in a different language and I used the language packages to hyphenate properly.

share|improve this question
21  
If you are going to typeset your document without hyphenation I strongly recommend using \raggedright to avoid large spaces between the word. –  Will Robertson Nov 7 '10 at 11:07

4 Answers 4

up vote 67 down vote accepted

This is discussed in detail in the TeX FAQ. Summarising the information given there:

  1. You can set \hyphenpenalty and \exhyphenpenalty to 10000, which will stop hyphenation, but as TeX will still try to hyphenate this is not massively efficient.

  2. As Joel says, you can use \usepackage[none]{hyphenat} to select a 'language' with no hyphenation at all. This works fine for a single language document, but not if you want to use babel or polyglossia for other language-specific effects.

  3. Setting \righthyphenmin and \lefthypehnmin to very large values will prevent hyphenation as it tells TeX that it must have more characters in the word than are going to be available. The suggested value in the FAQ is 62.

  4. You can set \hyphenchar\font=-1, which will prevent hyphenation for the current font: this is probably not the best way for an entire document but is how it is done for the tt font shape in LaTeX.

Now, of those (2) is probably the best choice. However, what you did not say is why you want no hyphenation. TeX hyphenates when it cannot find a good line break without it, so you get few hyphens in most cases. The risk with no hyphenation at all is that the output looks bad.

share|improve this answer
6  
+1 for asking why one would want to prevent hyphenation –  Juan A. Navarro Nov 7 '10 at 9:52
    
I used option 2. and it did a great job! perfectly formatted without hyphenation. thanks for all the info Joseph! –  Splashy Nov 9 '10 at 14:59
2  
@Splashy: see Will's comment about using \raggedright. –  Joseph Wright Nov 9 '10 at 18:53
1  
@Splashy: The issue is that in order to do that you end up with unacceptably-long gaps between words (see what happens in a word processor). You can let TeX make bigger gaps using the \sloppy macro, which will hopefully avoid text running into the margins when there is no hyphenation. However, the effect may well be very bad looking. That's really the whole point here: TeX hyphenates to keep a good appearance only when acceptable fiddling with spacing has failed. –  Joseph Wright Nov 9 '10 at 19:09
1  
Oh, also consider loading the microtype package, as this enables some other approaches to improving spacing and reducing the need for hyphenation in many cases. –  Joseph Wright Nov 9 '10 at 19:10

A quick google found

\usepackage[none]{hyphenat}

and more useful info here.

share|improve this answer
    
Thanks Joel!! That was very useful that worked like a jiffy.. –  Aditya369 Dec 24 '11 at 19:32

If one uses babel, there's the hyphsubst package by Heiko Oberdiek:

\documentclass[a4paper]
...
\usepackage[german=nohyphenation,french=nohyphenation]{hyphsubst}
\usepackage[german,french]{babel}

provided the distribution knows about the virtual language nohyphenation that has no patterns (both TeX Live and MiKTeX should know it).

If this is not the case, the following hack is equivalent

\makeatletter\chardef\l@nohyphenation=255 \makeatother
\usepackage[german=nohyphenation,french=nohyphenation]{hyphsubst}

(at least if less than 256 languages are already defined in the format, which is quite likely).

TeX will still possibly break lines at explicit hyphens, though.

share|improve this answer

I use this and it works great for me in almost all documents:

\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000

\being{document}... yadda yadda
share|improve this answer

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.