0

Here is the thought. I wish if there is any package or syntax in LaTeX that makes any arbitrary \documentclass to cut words as less as possible? I mean for the sake of sentences at the end in a two-columned document class, I faced this so often that I face words got cut which makes the text so ugly.

11
  • You mean prevent hyphenation?
    – user11232
    Commented Apr 24, 2015 at 4:08
  • @HarishKumar right.
    – lonesome
    Commented Apr 24, 2015 at 4:09
  • 3
    You can use \usepackage[none]{hyphenat} or just put \hyphenpenalty=10000\exhyphenpenalty=10000 in the preamble. It would be better to provide some MWE so that specific advice can be given.
    – user11232
    Commented Apr 24, 2015 at 4:28
  • @HarishKumar I just want a reasonable hyphenation. currently, in a two page column I got like 50% of all sentences to be hyphenated.
    – lonesome
    Commented Apr 24, 2015 at 4:31
  • 5
    OK, in that case add \usepackage{microtype} in the pramble (say just before \begin{document} and you will see the change. Or use something like \hyphenpenalty=3000\exhyphenpenalty=3000 just before \begin{document} adjust the 3000 accordingly. 10000 is the maximum where no hyphenation takes place. You have to reduce the value as suitable.
    – user11232
    Commented Apr 24, 2015 at 4:44

2 Answers 2

1

You can set the hyphenation penalty.

\hyphenpenalty=10000 removes the hyphenation completely. 

Instead you can set it to your required tolerance by decreasing the number from 10000 to any other number.

7
  • where should I place this syntax?
    – lonesome
    Commented Apr 24, 2015 at 4:26
  • before the beginning of the document Commented Apr 24, 2015 at 4:28
  • 1
    also I would like to know what would be a reasonable value for this hyphenation? because if remove completely, it will exceed the column boundary and if in default, too much of it.
    – lonesome
    Commented Apr 24, 2015 at 4:31
  • 1
    Try using \raggedright command at the preamble and check if you would like that output. Commented Apr 24, 2015 at 4:34
  • you mean that I exchange the \hyphenpenalty=10000 with \raggedright? well that got much uglier. to make it more clear, I wish something like Justify Low that MS Word provides.
    – lonesome
    Commented Apr 24, 2015 at 5:18
2

I found these lines which prevent LaTeX from hyphenation, but also keeps the justification so the text won't look ugly or will have different line lengths.

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

Source: Sumanta’s WeBlog

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .