Questions tagged [hyphenation]

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

Filter by
Sorted by
Tagged with
252 votes
8 answers
315k 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 ...
Splashy's user avatar
  • 5,825
68 votes
3 answers
13k 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 ...
Frank Mittelbach's user avatar
122 votes
6 answers
32k 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 ...
lockstep's user avatar
  • 248k
37 votes
2 answers
5k 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 ...
topskip's user avatar
  • 36.8k
26 votes
2 answers
5k 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 ...
lockstep's user avatar
  • 248k
30 votes
2 answers
2k 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 \...
Michel Fioc's user avatar
  • 1,257
165 votes
2 answers
195k views

No hyphen for a word

I want to put pdflatex to not put a hyphen in a word went it comes to the end of the line. I tried to put a \- in the beginning or the end of that word but it doesn't work. For example if I put:This ...
MSIS's user avatar
  • 1,807
94 votes
3 answers
113k views

How can I make my text never go over the right margin by always hyphenating or breaking on word-boundaries?

I've seen several different methods that can be used to make long words not go over the right margin, but all of them have been paragraph-based. I need a solution that can apply to the entire text ...
Rayne's user avatar
  • 1,397
15 votes
1 answer
1k views

In LuaTex is it possible to change font/language according to the script/glyphs used?

I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text ...
pmav99's user avatar
  • 6,080
131 votes
8 answers
64k 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 ...
fuenfundachtzig's user avatar
79 votes
1 answer
137k views

Breaking words at the end of line

LaTeX tends to break words at the end of the line when that causes better typography. Great. I'd like to have some sort of influence on where the words are broken, though. For example, LaTeX ...
Joost's user avatar
  • 1,255
33 votes
5 answers
25k views

How to reduce the number of hyphenation?

Sometimes, assume our document contain many long words, TeX may generate some hyphenation at the end of line. But it really hinder our smooth reading. Although I know we can add the hyphenation rule ...
pythonee's user avatar
  • 2,527
34 votes
4 answers
3k 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 ...
yo''s user avatar
  • 50.7k
32 votes
4 answers
2k 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?
mbork's user avatar
  • 13.4k
26 votes
7 answers
16k 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 ...
ptrcao's user avatar
  • 6,533
22 votes
2 answers
7k 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 ...
Julian Lamas-Rodriguez's user avatar
17 votes
2 answers
3k views

biblatex: per-entry language switching

According to biblatex manual (p.24), the hyphenation field in a bib-entry switches language on per-entry basis: hyphenation field The language of the bibliography entry. The identifier must be a ...
Igor Kotelnikov's user avatar
9 votes
2 answers
3k views

Automatic camel case breaking

Based on my old question Push long words in a new line, I search for a possibility to allow linebreak before a capital character in camel case terms. For example the term ...
CSchulz's user avatar
  • 1,895
8 votes
3 answers
3k views

Replace hyphenation character by a backwards arrow

I am setting e.g. directory names in a typewriter font. These names can become long. With the hyphenat package, I enabled hyphenation. Now, what is missing, is that the hyphenation character is ...
user avatar
45 votes
2 answers
55k 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 ...
Stephen's user avatar
  • 14.7k
29 votes
3 answers
4k 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 (...
lockstep's user avatar
  • 248k
137 votes
7 answers
79k 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. ...
John Threepwood's user avatar
49 votes
3 answers
101k 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 ...
mihirg's user avatar
  • 787
35 votes
1 answer
3k views

Suppressing hyphenation across pages

Is there a way of preventing the last word of a page from being hyphenated?
ȷ̇c's user avatar
  • 1,821
34 votes
3 answers
9k 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 ...
Maxim Romanov's user avatar
24 votes
5 answers
11k views

Why do hyphenated words cause margin violations (and how can I prevent it)?

Sometimes my text goes past the right margin when there is a hyphenated word involved in the sentence. For example, in the figure below, the line that contains "inter-member" extends ...
kc2001's user avatar
  • 2,561
23 votes
6 answers
9k views

Why does \usepackage[british]{babel} hyphenate the word "alternate" incorrectly?

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 ...
Christian's user avatar
  • 19k
17 votes
4 answers
4k 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 ...
lockstep's user avatar
  • 248k
13 votes
1 answer
5k views

Why doesn't LaTeX hyphenate words containing accents, e.g. "développement"? [duplicate]

In this MWE, Latex doesn't hyphen the word "développement" and prefer to create a HUGE hbox. \documentclass[a4paper,12pt,dvipsnames]{report} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \...
Hunsu's user avatar
  • 1,691
12 votes
3 answers
6k views

Option to break urls with carriage-return symbol?

There are several ways to get long, uncooperative URLs to line-break in LaTeX. If you're using pdfLaTeX, then the hyperref package can break them across lines for you, roughly after any /. If you ...
Ben Lerner's user avatar
  • 7,012
11 votes
2 answers
2k views

How to emulate \url hyphenating without using the url package?

I'm forced to avoid the url package in a proceedings paper (!) but my bibliography includes a long URL. I already \newcommand{\url}[1]{{\tttext{#1}}} but the URL spills over to the margin as it isn'...
Yossi Farjoun's user avatar
65 votes
2 answers
107k views

How to manually set where a word is split?

In my article, words are sometimes split a bit weird. For example: although ev-erywhere isn't wrong, it doesn't read very easily, so I'd like to split it as every-where. How can I do that? I tried ...
Jeroen's user avatar
  • 4,391
50 votes
7 answers
11k 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.
ltxsun's user avatar
  • 875
42 votes
4 answers
35k 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) ...
Javier Novoa C.'s user avatar
34 votes
1 answer
2k 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 ...
Mico's user avatar
  • 490k
24 votes
5 answers
7k 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 ...
Emit Taste's user avatar
  • 4,374
20 votes
3 answers
21k views

Line breaking (or hyphenation?) of references in apalike

This is a problem I encountered some time ago and I never could solve it: how can you achieve correct line-breaking or hyphenation when citing references with the apalike style? Here is an example: \...
YuppieNetworking's user avatar
18 votes
2 answers
3k views

hyphenation next to a parenthesis

I have some very special hyphenation puzzles involving optional hyphens next to parentheses. (semi)group should be hyphenated as (semi-)/group di[rected ]graph should be hyphenated as di-/[rected ]...
Lover of Structure's user avatar
12 votes
3 answers
3k views

Hyphenation of words containing slash

How can I tell LaTeX to automatically split up the german word Kontrast/Rausch-Verhältnis into Kontrast/Rausch-|Ver|hält|nis LaTeX complains that "/" is not a letter.
Robinaut's user avatar
  • 1,031
8 votes
3 answers
4k views

Hyphenation for words with underscore

Can I tell LaTeX that it may hyphen words that contain an underscore _ always before the underscore? I have a lot of code examples in text, like is_error_condition_enum and I would like to tell LaTeX ...
towi's user avatar
  • 2,460
4 votes
1 answer
667 views

Globally enable hyphenation for the first word in a paragraph

how can I globally enable hyphenation for the first word in a paragraph? A manual workaround is to add \hspace{0pt} in front of the corresponding word, so that it is not counted as first word, but it ...
Mil's user avatar
  • 1,197
48 votes
6 answers
67k 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 ...
Adam Pope's user avatar
  • 1,035
35 votes
1 answer
5k 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 \item[\...
Daniel Wagner's user avatar
29 votes
3 answers
2k 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, ...
MPi's user avatar
  • 570
24 votes
2 answers
1k 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 \usepackage[ngerman]...
Unapiedra's user avatar
  • 1,448
23 votes
4 answers
31k 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.
Saravanan.O's user avatar
17 votes
3 answers
7k views

Hyphenation in Beamer Presentations

I am using beamer in LaTeX to create a presentation. But it seems hyphenation is disabled. At least for the items inside itemize environments and text inside the blocks I don't see any hyphenation ...
MikeL's user avatar
  • 1,001
15 votes
1 answer
3k views

How are hyphenation patterns written?

In my miktex folder I checked the hyph-en-us.tex file and found letter patterns written like this: \patterns{ .ach4 .ad4der .af1t ... } What do these dots and numbers mean?
Giorgi's user avatar
  • 1,069
14 votes
1 answer
1k views

Ancient Greek hyphenation in LuaLaTeX

Can anybody tell me the current state of hyphenation patterns in LuaLaTeX, especially with regard to Ancient Greek? I searched here on tex.sx and on the web. There are many mailing lists discussing ...
ClintEastwood's user avatar
13 votes
1 answer
2k views

Set hyphenation with polyglossia

If babel doesn't know how to hyphenate a word, I can inform it of good line breaks with \babelhyphenation: \documentclass{article} \usepackage[nynorsk]{babel} \babelhyphenation[nynorsk]{fram-...
Sverre's user avatar
  • 20.5k

1
2 3 4 5 6