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

No hyphenation

3 views
Skip to first unread message

Erik Indola

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
How do I tell LaTeX to _not_ hyphenate anything?!? I'm in this situation
that I'm trying to convince a friend do write her thesis using LaTeX instead
of MSWord. She said they wern't supposed to use any hyphenation and I
don't know how to work around this problem. Any help would be greatly
appreciated.

erik

---
Office: Department of Physics +358 (0)2 2154242 (Phone)
Åbo Akademi University +358 (0)2 2154776 (Fax)
Porthansgatan 3
FIN-20500 Åbo erik....@abo.fi
FINLAND http://www.abo.fi/~eindola/

If God created me in His image
He's got a weird sense of humor! <><

David Wright

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to Erik Indola

In the preamble, just insert
\hyphenpenalty=10000
and TeX will not hyphenate.

David Kastrup

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
David Wright <ich...@physik.tu-muenchen.de> writes:

Actually, this will not work always. I recommend that you read the
FAQ. The best possibility usually is switching to a language without
hyphenations.

I do not right now remember the high-level possibilities, but what
usually works (unless you switch languages in mid-document) is
\language=255
after \begin{document}

--
David Kastrup Phone: +49-234-32-25570
Email: d...@neuroinformatik.ruhr-uni-bochum.de Fax: +49-234-32-14209
Institut für Neuroinformatik, Universitätsstr. 150, 44780 Bochum, Germany

David Carlisle

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
David Wright <ich...@physik.tu-muenchen.de> writes:

> In the preamble, just insert
> \hyphenpenalty=10000
> and TeX will not hyphenate.

But it will still try hard to hyphenate.
Better to go \newlanguage\none \langeuage\none
and probably also select \raggedright. Without hyphenation there is no
point trying to justify tyhe margins.

David


Simon Cozens

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
David Carlisle (comp.text.tex):
> \langeuage\none

Gotcha. I hereby declare David Carlisle fallible.
Or will we be seeing Yet Another new command in LateX 3?

--
About the use of language: it is impossible to sharpen a pencil with a blunt
ax. It is equally vain to try to do it with ten blunt axes instead.
-- Edsger Dijkstra

David Carlisle

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to si...@brecon.co.uk

> I hereby declare David Carlisle fallible.

It's takin ewe that lounge too no tis that?

> Yet Another new command in LateX 3?

Yes, sorry I forget that you lot are still using release 2.

David

Thierry Bouche

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
David Kastrup <d...@mailhost.neuroinformatik.ruhr-uni-bochum.de> writes:

> The best possibility usually is switching to a language without
> hyphenations.
>
> I do not right now remember the high-level possibilities,

babel has a nohyphenation dummy language for that purpose
(\seleclanguage{nohyphenation} should be the recommanded way...)


--
Thierry Bouche, Grenoble.

Donald Arseneau

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to
In article <m21zbbj...@mailhost.neuroinformatik.ruhr-uni-bochum.de>, David Kastrup <d...@mailhost.neuroinformatik.ruhr-uni-bochum.de> writes...

>David Wright <ich...@physik.tu-muenchen.de> writes:
>
>> In the preamble, just insert
>> \hyphenpenalty=10000
>> and TeX will not hyphenate.
>
>Actually, this will not work always.

Huh??? Unless you are referring to the need for \exhyphenpenalty=10000
as well, I don't see what could be hyphenated when \hyphenpenalty=10000.
Maybe you are getting it confused with the setting \pretolerance=10000,
which does *NOT* always work.

>\language=255

But this could fail when the user switches languages (in order to
have special input characters, for example.)

\hyphenpenalty is probably the most robust against failure, but it
is considerably slower to process than the other two functional methods
(\lefthyphenmin=64 and \language=255)

Benchmarking methods of preventing hyphens. Time in seconds.

With emergencystretch=0
-------------------------------------------------------------------------------
tolerance= 200 900 900 10000
pretolerance= 100 900 -1 -1
-------------------------------------------------------------------------------
<nil> 11.15* 3.55 15.99* 19.84*
hyphenpenalty 7.10** 3.57 7.65 9.88
lefthyphenmin 3.25** 3.59 3.66 5.55
language 3.82** 3.62 4.18 6.16
-------------------------------------------------------------------------------
* = there are hyphenations
** = there are overfull boxes


With emergencystretch=50pt
-------------------------------------------------------------------------------
tolerance= 200 300 300 10000
pretolerance= 100 300 -1 -1
-------------------------------------------------------------------------------
<nil> 10.90* 11.90* 11.80* 17.87*
hyphenpenalty 10.66 11.10 10.89 10.23
lefthyphenmin 6.29 6.40 6.40 5.61
language 6.94 7.12 7.09 6.26
-------------------------------------------------------------------------------
* = there are hyphenations
** = there are very underfull boxes

Donald Arseneau as...@triumf.ca

Jeffrey Goldberg

unread,
Oct 4, 1999, 3:00:00 AM10/4/99
to David Wright
On Mon, 4 Oct 1999, David Wright wrote:

> In the preamble, just insert
> \hyphenpenalty=10000
> and TeX will not hyphenate.

Yes and no. TeX will still hyphenate at explicite hyphens here. That is,
if you have a word that naturally has a hyphen in it, TeX will still
hyphenate there. To turn that off you should also add

\exhyphenpenalty=10000

Note that if you do this, you should either add to the interword glue, or
use a raggedright setting. Note that the LaTeX command

\raggedright

turns off hyphenation, and that might be what it wanted.

-j

--
Jeffrey Goldberg +44 (0)1234 750 111 x 2826
Cranfield Computer Centre FAX 751 814
J.Gol...@Cranfield.ac.uk http://WWW.Cranfield.ac.uk/public/cc/cc047/
Relativism is the triumph of authority over truth, convention over justice.


0 new messages