{hyphenation} is about controlling hyphenation in (La)TeX documents.

learn more… | top users | synonyms

57
votes
4answers
40k views

How to prevent LaTeX from hyphenating the entire document?

I can't find where I can remove any kind of hyphenation and just have LaTeX just do a line break. edit: Honestly speaking I just don't like to read hyphenation anywhere and that's the only reason why ...
38
votes
2answers
6k views

What's the benefit of loading babel when writing in English?

When writing in English what is the benefit of loading babel, by \usepackage[english]{babel}, except for the possibility of setting it to use specific English dialects as described in babel: english, ...
35
votes
7answers
4k views

Avoid hyphenation in “2-D”

How can I avoid hyphenation in words such as "2-D"? \hyphenation{} is not working since the dash is not a letter.
35
votes
5answers
5k views

Adequate hyphenation of words already containing a hyphen

Unlike in English, in German there are quite a few words that contain a hyphen, e.g., "Arbeiter-Unfallversicherung" (workers' accident insurance). By default, (La)TeX will only break such words after ...
33
votes
7answers
7k views

Allow line break, but without inserting a dash

I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to ...
32
votes
4answers
3k views

How to prevent linebreaks after hyphen if word starts with hyphen?

(Remark: Maybe this is a typically German problem, I'm not sure in which other languages that might be relevant) Sometimes there are words which start with a hyphen, as they are connected with a word ...
30
votes
1answer
3k views

How to automatically hyphenate within \texttt?

This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer). The person had a lot of "common words" in typewriter font sprinkled ...
28
votes
1answer
766 views

In lualatex, hyphenation doesn't seem to work for words that contain certain ligatures

It would seem that hyphenation does not work properly under LuaLaTeX if the hyphenation points occur at places where TeX inserts ligatures. Consider the following MWE, which (i) provides hyphenation ...
28
votes
1answer
730 views

Make hyphenated words in PDF searchable

Is there a way to make hyphenated words in a PDF generated by LuaTeX searchable? If the MWE below is converted to a PDF, searching for "lexicon" (in Acrobat X for example) will not find the word since ...
26
votes
1answer
513 views

Why does TeX prefer an overfull box to hyphenating here?

Here is a short file which produces an overfull hbox: \documentclass[12pt]{report} \usepackage[left=1.5in,right=1in,paperwidth=8.5in,paperheight=11in]{geometry} \begin{document} \trivlist ...
25
votes
3answers
816 views

Where can I find a list of English hyphenation exceptions?

I know that a nice list of (English) hyphenation exceptions was published in TUGboat, in quite a few installments. Is it compiled somewhere in one place?
25
votes
1answer
289 views

Can LaTeX support multiple classes of hyphenation break point?

I've just come across an interesting snippet in New Hart's Rules (p.59): The New Oxford Spelling Dictionary  therefore uses two levels of word division -- 'preferred' divisions (marked |), which ...
25
votes
1answer
445 views

Evaluate typographical beauty of a document (widow, orphans, hyphens, etc) in order to optimize the page geometry

When finalizing documents, one of the last things I do is usually to play with the page geometry to improve the overall layout: get rid of a few orphans or widows, reduce the number of hyphenations, ...
24
votes
3answers
12k views

Prevent hyphenation and use line break in block of text

I have a custom block of text on my title page which can be longer than a single line. By default LaTeX is hyphenating a word at the end of a line, but I want it to break on to the next line. How do ...
23
votes
3answers
2k views

Is it acceptable to hyphenate people’s names?

In some circumstances, for example, B.~Alexander may result in B. Alexan-newlineder. Is this acceptable? If not, is there an elegant way to suppress it? (\hyphenation is too cumbersome and ...
23
votes
3answers
781 views

Check all hyphenations within a document

I have a book project written in LaTeX, and I have found that quite a number of the hyphenations that TeX produced are wrong. It would be quite painful to scan the document for all hyphenation points, ...
23
votes
4answers
601 views

Is there a special hyphen-symbol to be used between capital letters?

In words consisting of small letters, the - hyphen seems right. In words (abbreviations, acronyms) consisting of capital letters, the common hyphen appears (at least imho) to be placed too low and to ...
23
votes
2answers
1k views

Ligature suppression with proper hyphenation and comprehensive word list?

[Update: It's been pointed out that my question(s) here weren't clear (or were too hidden). So I inserted red stars at the points where the questions appear.] In The TeX Book, D.E.K. gives "shelfful" ...
22
votes
3answers
924 views

Display hyphenation options for a specific word

When TeX produces Overfull box, is puts something like this in the log: Overfull \hbox (15.47195pt too wide) in paragraph at lines 7--9 []\OT1/cmr/m/n/10 I re-ally re-ally want to get dis-played the ...
22
votes
3answers
14k views

No hyphenation patterns were loaded for the language

I'm using babel package for spanish language. However, each time I compile my document, the package babel throws me a warning: Package babel Warning: No hyphenation patterns were loaded for (babel) ...
22
votes
1answer
765 views

Suppressing hyphenation across pages

Is there a way of preventing the last word of a page from being hyphenated?
21
votes
3answers
1k views

Specifying multiple hyphenation exception lists for multi-lingual documents

This question led to a new feature in a package: babel By default, (La)TeX fails at hyphenating some words, e.g., the English word potable (should be pot-able) or the German word Mor-dop-fer ...
21
votes
2answers
906 views

How to create a virtual font?

In his answer to the question Replace hyphenation character by a backwards arrow, Hendrik Vogt writes: If you come into a situation where you want your hyphenchar to be something like ...
20
votes
5answers
849 views

Hyphenation problem with — versus \textemdash

While investigating problems with hyphenation and em-dashes, I came across this: a piece---perhaps an installation---, involving structural feedback The document class is article. The problem was ...
20
votes
4answers
561 views

It doesn't hyphenate words ending with “—”

UPDATE Well. After a while, I decided to see again about this “problem”, and just discovered that in pdfLaTeX, using \usepackage[utf8]{inputenc} and the — (the unicode —, not the ligature ---) it ...
20
votes
1answer
547 views

Why does babel not work in Tikz?

Adding child nodes to child nodes in TikZ Mindmap has some example code, where German words are not hyphenated correctly. I was trying to fix it by using inputenc (for Umlaute) and ...
20
votes
1answer
297 views

How to I force a word to move to the end of the line?

How do I force my document to pull selected words to the end of each line (and to hyphenate them as well, if needed)? I have an old document. I know the page size and I think I've found the ...
20
votes
1answer
232 views

Hyphenating words with archaic spellings

I often work with texts from the 17- to 1800s that (in addition to now obsolete words) contain familiar words in slightly different spelling. The language of these texts, and of the ones I'm writing, ...
19
votes
4answers
9k views

LaTeX Hyphenation

Could you please guide me to load the Oxford Dictionary in LaTeX? I am using MikTeX 2.5 with \usepackage[english]{babel}. Yes, I need to load the Oxford Dictionary hyphenation patterns in LaTeX.
19
votes
2answers
1k views

babel: Adding ngerman' s language shorthands to english as the main document language

The (n)german language option of the babel package provides various shorthands related to hyphenation, e.g. "-: "an explicit hyphen sign, allowing hyphenation in the rest of the word" (manual, section ...
19
votes
1answer
383 views

Why can words with hyphen char not be hyphenated?

Assume I have a word like Baden-Württemberg. TeX can't hyphenate any of these two word parts. Why? why isn't it something like this: where the small ticks indicate possible hyphenation points. A ...
18
votes
2answers
6k views

How to add global hyphenation rules?

I know about discretionary hyphens, \-, about \allowbreak, \nobreak as well as \hyphenation{...} and even \tracingparagraphs=1 to write hyphenations into the log-file. Those are OK for family names or ...
17
votes
3answers
489 views

Reviewing hyphenations with LuaTeX

This question led to a new package: lua-check-hyphen I wrote a question (Accessing pointers in LuaTeX) hoping it would lead me to a way of reviewing the hyphenations with LuaTeX, and without ...
17
votes
2answers
19k views

Overfull hbox - How do I fix this?

I have a line in tex which has a markup (as a part of a line) as follows: \texttt{org.springframework.beans.factory.BeanFactory} This is giving a overfull \hbox warning. How do I fix this? I am ...
17
votes
2answers
4k views

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. ...
16
votes
2answers
267 views

Why does \usepackage[british]{babel} change the hyphenation to wrong?

Now I know there are hyphenation differences between British and American English but in no dictionary, British or American, could I find the word "alternate" to be broken down to al·tern·ate instead ...
16
votes
3answers
1k views

Help on dealing with items divided with slash

I am using a number of items in text that are divided with a slash. For example dates in different calendars or names of locations, such as 585/1190~CE (the first number is the year in Islamic lunar ...
16
votes
2answers
2k views

Why words with accented characters can't be automatic hyphenated with the default OT1 enconding?

I was reading the first answer to this question: Why should I use \usepackage[T1]{fontenc}? [...] the default font encoding (OT1) of TeX is 7-bit and uses fonts that have 128 glyphs, and so do ...
16
votes
1answer
676 views

Is it still worthwhile to let TeX try line-breaking without hyphenation?

Here's TeX's line-breaking approach (as I understand it) in a nutshell: If \pretolerance is positive, try to break a paragraph into lines without inserting discretionary hyphens and without ...
15
votes
4answers
2k views

biblatex: Switching languages for *citations* according to the bibentry's “hyphenation” field

Quoting from section 3.1.2.1 of the biblatex manual: [The babel] option controls which language environment is used if the babel package is loaded and a bibliography entry includes a ...
15
votes
2answers
514 views

moving the whole word to next line when there is no free space

Is there any option in tabular that can move the whole word to the next line whenever the length of the word is greater than the fixed cell size? Currently I use \begin{tabular}{ | p{2cm} | } And ...
15
votes
2answers
583 views

New language - hyphenation

I'm working in a project (Ubuntu Manual, if you're curious) which requires TeX to create a PDF document. But when we have almost all translated, I've found that there wasn't an hyphenation pattern for ...
15
votes
1answer
176 views

Does \\ suppress hyphenation for the following word?

I am not sure, if this is a bug of the package showhyphens or some LaTeX-behaviour I don't understand. Please have a look on the following example: % arara: lualatex \documentclass[ngerman]{article} ...
15
votes
1answer
933 views

How to break long URLs using common hyphenation but adding a line feed indicator?

I saw several questions like this one that request a solution for breaking apart URLs. I wonder if it is possible to hyphenate the words in a URL as it happens in normal text (i.e., breaking apart ...
15
votes
1answer
916 views

Remove hyphen from word spanning two lines in text copied from a pdf file

If I copy text from a PDF and a word is hyphenated and spans two lines, the copied text contains the "-". For example: Examp- le should be copied as Example not Examp-le The problem is ...
14
votes
7answers
5k views

LaTeX not hyphenating properly, text running off page

I'm having a problem with LaTeX not hyphenating $\beta$-galactosidase, and the word as a result running off the page. I have narrowed down the problem to a particular package, as a bare minumum LaTeX ...
14
votes
4answers
581 views

Prevent global hyphenation for a specific word

I know this is a common question. I want to stop LaTeX splitting the word "Byte". I already searched for the problem and found the solution with \hyphenation. I thought \hyphenation{Byte} would ...
14
votes
3answers
2k views

How to disable hyphenation in all section and subsection titles?

Is there a way to disable hyphenation (splitting up a word) in all section and subsection titles (while leaving hyphenation in the main text unchanged)? They look a bit odd to me. Thank you.
13
votes
1answer
232 views

Lines too long due to text inside custom command not being hyphenated

I'm having some problems with lines that turn out to be too long. There are correct hyphenation rules for the word but they aren't being applied. Let me first give the sentence that is too long: An ...
13
votes
1answer
361 views

(Another) problem with url hyphenation in bibliography

What I am about to ask has already been asked many times, but nothing seems to work for me so far. Basically I am having troubles in getting urls hyphenated correctly in the bibliography. I modified ...