3

I finish writing my article in english, but I think there are many hyphenations, this makes the document a bit ugly. my question: how prevent hyphenation throughout the document, and propose to latex, the words to cut. I use the \usepackage[none]{hyphenat} , in this case, I could not impose hyphenations where I want. I use two columns, normally I work on the model of Elsevier, I made some changes, here is the preamble:

\documentclass[final,5p,times,twocolumn]{elsarticle}
\usepackage{ecrc} 
\usepackage[T1]{fontenc} 
\usepackage[francais]{babel}

your ideas please. thank you ...

  • Are you using a two column format? – egreg Apr 5 '14 at 16:52
  • Please tell us a bit more about your document: Which language is it in, how wide are the columns of text, and do you use a package such as babel that may affect TeX's hyphenation decisions? If the current setting produces too many line breaks with hyphenated words, what would be an acceptable number? – Mico Apr 5 '14 at 18:13
  • Try to set \hyphenpenalty = 1000 instead of using \usepackage[none]{hyphenat} and see whether the result is better. – karlkoeller Apr 6 '14 at 6:50
  • \hyphenpenalty = 1000 is a simple and perfect solution ... thank you deeply sir karlkoeller ... I also Thank Mr. Egreg and Mr. Mico ... – simo Apr 6 '14 at 11:23
2

You can try increasing the penalty for hyphenation from its default value of 50 to something like 1000 that would discourage hyphenation without disabling it completely like \usepackage[none]{hyphenat} would do.

It's probably better to add also a setting for \emergencystretch, so I'd say

\hyphenpenalty=1000
\emergencystretch=5em

in the document preamble.

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.