3

In my LaTeX document words are cut automatically whenever a new line is due. It is not able to wrap/justify in normal sentences. Here is an example:

enter image description here

This is happening throughout the document. Is there any way to fix it? I googled a lot for hours and concluded that it is normal by default for all users. I am using the following packages:

\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{booktabs}
\usepackage{siunitx}
\usepackage{multirow}
\usepackage{graphicx}
\usepackage{ragged2e}
\usepackage{hyperref}

Overleaf example: https://www.overleaf.com/read/dscbvttynnfh

Is there a way to have new words on a new line only?

naphaneal
  • 2,614
Michel
  • 161
  • 9
    It's normal to hyphenate text, and that's part of justifying text. There are situations when you would want to avoid it (and use a ragged right column instead), but this seems very inappropriate for the kind of text this seems to be. I think you should look at how other texts look that are in the same category as what you are writing. – pst Jun 15 '18 at 14:32
  • 2
  • 1
    You might try using the micro type package which can stretch or shrink a font’s characters a tiny amount as well as let some punctuation extend slightly past the right margin to optically maintain full justification. This works best with pdflatex and least with xelatex. – Herb Schulz Jun 15 '18 at 17:15
  • 2
    Just to make sure that any non-native speakers understand: "cut-off" would imply that the rest of the word is missing. Hyphenation (which is happening here) is when the rest of the word is on the next line of text. – Teepeemm Jun 15 '18 at 17:22
  • 3
    By dint of seeing bad typography with immense spaces between words for years, one ends up believing that it is the best practice. Do not remove the hyphens, it looks much better as it is now. – Fran Jun 15 '18 at 18:45
  • 1
    As @Fran said, this is not wrong, and unless you are absolutely required by some weird rule (in which case see leandriis's comment above), leave it as it is. –  Jun 15 '18 at 21:24
  • @Joseph although I agree with you and Fran and pst, I think saying 'don't do this' in three different comments is not very welcoming towards a new user - I am sure you have good intentions (e.g., promoting good typography) but it might come across as rude. – Marijn Jun 17 '18 at 15:51

1 Answers1

2

Thanks @leandriis that link helped a lot.Thanks @pst

  1. I had tried this earlier \usepackage[none]{hyphenat}

Using the above code solves the underlying issue. enter image description here

But causes a random alignment issue in the 5th line.

2.

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

This code solved all the issues. enter image description here Thanks a lot all.

Michel
  • 161
  • 1
    You pretty much deactivated what defines LaTeX: Good Typesetting. You might as well use Word. – Johannes_B Jun 18 '18 at 07:02
  • If you really want to prevent hyphenation, set the text ragged right. Otherwise you don't solve any issues at all - on the contrary, you create them (eg, the 3rd and 4th lines are definitely horrid). – Javier Bezos Jun 18 '18 at 14:41