I am writing a report and since the text is justified, every last sentence of a paragraph has more spaces between words in order to fit into the textwidth. I saw a lot of questions about this subject, I tried the solutions but it never worked for me. In addition to that, the solutions I've found may work for a countable number of words. However, I need to do it for all my report. Does anyone know how to solve this problem?

enter image description here

In the picture above, there are two huge spaces between three words and I'd like to remove this, and to apply the solution for the whole document.

  • 1
    Welcome to TeX.SE. Please provide complete small code begging wit \documentclass{...} ending with `\end{document} which will generate text you show. Without this you left us to guessing ... – Zarko Aug 10 '16 at 12:31
  • 1
    My crystal ball suggests \break. If so, please learn that you mark the end of a paragraph by a blank line. – egreg Aug 10 '16 at 12:41

Actually I've found the answer thanks to @egreg. I've used \linebreak in the end of the line. But when I use \\ instead, everything works fine.

  • 2
    You shouldn't use \\ either. End a paragraph with an empty line. – Ulrike Fischer Aug 10 '16 at 12:55
  • @UlrikeFischer okay thanks, but why shouldn't I use it? – iMadz Aug 10 '16 at 12:59
  • You don't need it, and you will get lots of underfull box warnings in the log. – Ulrike Fischer Aug 10 '16 at 13:00
  • Furthermore, you won't have any parindent (if set to a non-zero value) for the paragraph that follows, since it won't be considered as such. – Bernard Aug 10 '16 at 13:38
  • 1
    You can also use \par. – John Kormylo Aug 10 '16 at 14:07

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.