Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SUMMARY: How to absolutely, positively turn off hyphenation

5 views
Skip to first unread message

System Operator

unread,
May 27, 1993, 8:12:26 PM5/27/93
to
First, a recap of the question:

I'd like a way to absolutely prohibit LaTeX from hyphenating
anything, even at the cost of excessive space between words.

I used \sloppy and \lefthyphenmin=1000 near the top of the document.
No hyphenation occured, and the right edge was justified.


Thanks again to everyone who responded.


INDIVIDUAL RESPONSES:
=====

wa...@cs.umass.edu writes:

I _think_ that

\tolerance=10000
\hbadness=10000
\hyphendemerits=10000

will do it, 'though I've never tried. If you are using TeX 3.x, you can
make those numbers 100000 instead of 10000.

=====

TAU...@FRUPS51.BITNET writes:

[I]ncrease hyphenpenalty and say \emergencystretch=50pt or more.

=====

KNA...@VKPMZD.kph.Uni-Mainz.DE writes:

Set in the preamble \righthyphenmin=100 \lefthyphenmin=100.
The effect of this is to require that left and right of a hyphen
there have to be 100 characters, therefore no hyphenation occurs.

=====

ba...@Math.McGill.CA writes:

\lefthyphenmin=1000 will do it unless you have a word whose
length is a least 1002 characters long.

=====

mac...@cs.washington.edu writes:

You need to take advantage of the trap-door into TeX from LaTeX
for this. If you absolutely want no hyphens anywhere
in the document,

\hyphenpenalty=10000

early in the document will do the trick.

If you want to be more specific, determine which font your
de-hyphened text in in (get its real name, by using \showthe\font)
and (assuming in this case that it is \tenrm)

\hyphenchar\tenrm=-1
\fontdimen3\tenrm=15pt

should do the trick.

The change in \fontdimen3 is to keep your text from screaming
at you endlessly about underfull hboxes.

=====

NTOM...@VM.UCS.UALBERTA.CA writes:

You will not find answers to your questions in LaTeX book, since
they are on essentially lower level than this macro package. You
should check TeXbook for that.

Setting hyphenchar for a given font to -1 prevents hyphenation
of anything set in that font. Also raising hyphenpenalty to 10000
will block hyphenation. You should set your paragraphs to sloppy,
or set the whole thing ragged right.

=====

mcca...@ecn.purdue.edu writes:

[W]hat about using \raggedright?

=====

as...@erich.triumf.ca writes:

Type:
\hyphenpenalty=10000 \exhyphenpenalty=10000 \pretolerance=10000

There is no "LaTeX syntax" to set these.

( -- a lie! They can be set like \setlength{\hyphenpenalty}{10000}
but that is even more confusing than the plain TeX syntax!)

=====

Dan

--
sys...@apres.UUCP (System Operator)
Applied Research (cryptography & security BBS) 1 708 639 8853

0 new messages