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.

  • You mean prevent hyphenation? – user11232 Apr 24 '15 at 4:08
  • @HarishKumar right. – lonesome Apr 24 '15 at 4:09
  • 1
    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 Apr 24 '15 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 Apr 24 '15 at 4:31
  • 4
    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 Apr 24 '15 at 4:44
0

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.

  • where should I place this syntax? – lonesome Apr 24 '15 at 4:26
  • before the beginning of the document – Ambika Vanchinathan Apr 24 '15 at 4:28
  • 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 Apr 24 '15 at 4:31
  • 1
    Try using \raggedright command at the preamble and check if you would like that output. – Ambika Vanchinathan Apr 24 '15 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 Apr 24 '15 at 5:18
0

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.