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

learn more… | top users | synonyms

5
votes
1answer
71 views

I redefined \- but it does not work in captions

I defined \+ and \- macros for conveniently entering notation. Surprisingly, I noticed that in table and figure captions \- does not work while \+ works. (The same problem appears also in the content ...
5
votes
2answers
76 views

Why does fontspec interfere with Ligatures? (In retrospect: How the dutch hyphenate)

The tufte sample text (provided by ConTeXt) contains a || sequence which normally gets turned into an emdash. For some reason the inclusion of fontspec disables this. I've tried to use various options ...
1
vote
0answers
35 views

How to *prevent* particular hyphenations of a word

The \hyphenation command can be used to list the allowed hyphenated forms of words. For example, \hyphenation{incor-rect-ly} means that these hyphenations of the word incorrectly are allowed. Is ...
6
votes
1answer
42 views

Allow line breaks in date ranges?

Code: \documentclass[10pt,paper=14.8cm:21cm,BCOR=10mm,DIV=12,parskip=half] {scrbook} \usepackage[T1]{fontenc} \usepackage[german]{babel} \usepackage[utf8]{inputenc} \begin{document} Markus hat den ...
4
votes
1answer
143 views

How to get proper German hyphenation?

Code: \documentclass[paper=3.5cm:5cm]{scrbook} \usepackage{german} \usepackage[german]{babel} \usepackage[utf8]{inputenc} \begin{document} Andere übertragen das am besten den Geschwistern. ...
0
votes
0answers
12 views

hyphenation with remapped characters

I have got a large number of useful responses on how to remap a Unicode character in XeLaTeX or LuaLaTeX. Many thanks for all those answers. But how can I make the (Xe|Lua)LaTeX or babel hyphenation ...
2
votes
0answers
16 views

Problem with \usepackage[none]{hyphenat}

I wanted to prevent hypernation in my document so I used "\usepackage[none]{hyphenat}". The problem I am having is that my document margins are being compromised with it. I am using: ...
1
vote
0answers
93 views

german hyphenation

I am using inputenc to have umlauts etc. it works fine, if I am not change hyphenation , but I want to have german hyphenation too. \documentclass[12pt,twoside]{report} \usepackage[a4paper]{geometry} ...
7
votes
1answer
3k views

German hyphenation does not work

My babel configuration includes ngerman and english ... \documentclass[ oneside, openright, titlepage, dottedtoc, numbers=noenddot, headinclude, footinclude=true, cleardoublepage=empty, abstractoff, ...
5
votes
3answers
58 views

Nested lists without hyphenation using sloppypar

I use XeTeX, Version 3.1415926-2.4-0.9998 (TeX Live 2012/W32TeX). I want to create a nested list without hyphenation. I am using the sloppypar environment with hyphenation command to turn off ...
2
votes
0answers
44 views

Ragged2e preventing proper hyphenation of long chemical names

In my thesis I use chemical names containing dashes and numbers in section titles. Additionally, each compound is numbered by using the \cmpd{} command from chemnum-package. To prevent the label from ...
3
votes
2answers
157 views

Force hyphenation for a word beginning with a digit

What is the best way to make LaTeX hyphenate the word 9-dimensional. Currently I have a case where it produces an overfull line without hyphenation. Adding \hyphenation{9-di-men-sional} doesn't work ...
1
vote
1answer
45 views

First word hyphenation in parbox with strut

I've a problem with parbox spacing in combination with hyphenation. What I like to achieve is setting parboxes in a tabular-like way as key value pairs. So I have two parboxes with a given width per ...
3
votes
1answer
101 views

Hyphenation/text wrapping in \parbox

I have a \parbox with some text. The text should be wrapped as normal, but it doesn't seam to work, while the words wrap in normal text: \documentclass[a4paper,parskip]{scrartcl} ...
7
votes
2answers
94 views

Latin text not hyphenated at all with LuaLaTeX and polyglossia

I recently noticed that there are numerous under- and overfull hboxes in the document I'm working on. Further inspection revealed that such problems almost always arose when there was Latin text ...
2
votes
1answer
71 views

How to deal with many overfull \hboxes in large document?

I am in the process of proofreading a major XeTeX document of more than 600 pages. It is hardly surprising that there are quite a few cases of overfull \hboxes; I usually get about 150 of them. I am ...
13
votes
4answers
7k views

A short hyphen in a math formula

In a LyX math formula, I want to write something like "r-number". However, the usual dash looks too long (like a minus sign). I am looking for a short, possibly upper hyphen. I couldn't find it in the ...
5
votes
2answers
145 views

Put hyphen on the margin, not in the text

Normally Latex puts hyphens inside the text: ------------------------------------ Lorem ipsum dolor sit amet, consec- tetuer adipiscing elit. Aenean com- modo ligula eget dolor. Aenean mas- sa. ...
6
votes
1answer
181 views

Preventing line break at the start of a long name in `\lstinline`

This question has developed from How to deal with very long lstinline-phrases like long class names?. That question is about line breaking inside a \lstinline phrase. I have provided an answer which ...
3
votes
1answer
35 views

Unexpected vertical gap in a table cell

while I'm trying to make a table, I found an unexpected gap in the leftmost cell in a table. Here is my code. \documentclass{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage{tabularx} ...
14
votes
3answers
2k views

Hyphenating hyphens: how to change the default \discretionary

My language, Portuguese, have undergone another orthography reform (those committees simply can't avoid themselves from doing this mess from time to time.) Now we have to adapt, which brings us to my ...
5
votes
2answers
93 views

Hyphenation tables not working

Consider scratch.tex: \language0 \hyphenation{ab-cdef} \newlanguage\newlang \newlang \hyphenation{abc-def} \language0 \showhyphens{abcdef} \newlang \showhyphens{abcdef} Why in both cases ...
12
votes
2answers
2k 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 ...
3
votes
0answers
38 views

How do I get the list of all broken-over-two-lines words in my document?

The question is quite simple. When I compile my latex document, the pdf will contain words that are broken over two lines (hyphenated). Is there a way to know all the words that my compiler breaks ...
30
votes
2answers
19k 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 ...
0
votes
0answers
36 views

hyphenation not working with “programmed” text

I am writing a thesis using my university's documentclass. For this class, I can define a text as acknowledgement in the preamble which is automatically placed within the standard format. These are ...
1
vote
0answers
34 views

Where can I find lists of non-US-English hyphenation exceptions? [closed]

As I learned from Where can I find a list of English hyphenation exceptions?, using the fine collection ushyphex.tex takes care of some of the known wrong hyphenation for US-English. It also includes ...
4
votes
1answer
78 views

hyphenation with languages in transliteration // forced hyphenation?

I am typesetting (lualatex) a document in a couple of languages. The main language is English. If I use other languages I usually use commands such as \foreigntextquote{french}{text} and ...
5
votes
1answer
33 views

enable hyphenation in a single paragraph

Many people want to disable hyphenation in a small block of text. I have the opposite problem: I have disabled hyphenation throughout my document, and I want to enable it for just one paragraph. Is ...
6
votes
0answers
53 views

Correcting wrong choice of character variant from a stylistic set

I'm typesetting a document in German blackletter with XeLaTeX and ran across a peculiar — for want of a better word — error: The hyphenation in itself is okay at that position. However, German ...
2
votes
3answers
71 views

How to disable hyphens in Lyx BibTex?

Can you prevent all divided-word hyphens only in a Lyx document's bibliography? (example divided-word: "Microwave" becomes Mi- on one line, crowave on another)
24
votes
6answers
720 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 ...
0
votes
0answers
67 views

avoid hyphenation in chapter title using tikz and titlesec

[This question is similar to the one here, but the solutions given there do not work in my context] In a (fairly complex) book I'm using titlesec and tikz to produce fancy chapter headings, basically ...
3
votes
0answers
58 views

hairspace + hyphen as hyphen char with Fontspec

I would like to use for hyphen character the combination: hairspace + hyphen, in order to clearly but discreetly distinguish hyphenation from division. The traditionnal way (using another character, ...
3
votes
1answer
134 views

two-coloured hyphenation

I want to teach a child reading German. For that purpose I want to produce texts in which the different syllables are marked in two different colours, a common technique to facilitate reading for slow ...
3
votes
1answer
124 views

Long word wont go to next line

I'm using polyglossia package in my document and have some parts where I don't want to have hyphynation so I'm using \disablehyphenation command as documented. Now when I'm having very long words in a ...
9
votes
3answers
173 views

How to typeset Tibetan in XeLatex with correct linebreaks?

I am trying to typeset Tibetan language in a document, but the text does not wrap at the margin. I think this could be easily fixed if I tell XeLaTeX to recognise the Tibetan tsheg character ('TIBETAN ...
0
votes
0answers
37 views

Auto hyphen in a Report

I am working on a LaTex "report" using WinEdt 9. The complied document contains "hyphen" which are generated by default. Is this possible to prevent from it. I tried \usepackage[none]{hyphenat} which ...
15
votes
1answer
1k 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 ...
2
votes
2answers
74 views

How to add a global structure specified hyphenation rule?

I have written a document with 200 references. (every round bracket (...) in my document is a collocation (here a combination of three words) which shouldn't get split. What I want is to have the ...
0
votes
0answers
69 views

hyphenation for language ngerman doesn't work in TeXnicCenter/MiKTeX

Hello everyone! I have a problem writing my master's thesis and I hope someone can help. I am using TeXnicCenter 2.02 in combination with MiKTeX 2.9.4248. The Header of my document looks like this: ...
4
votes
2answers
74 views

How to configure (tweak) babel's hyphenation?

I found out that I can tweak hyphenation settings by writing: \righthyphenmin=6 \lefthyphenmin=6 \usepackage{hyphenat} I like this, because it hyphenates only really long words, leaving all others ...
2
votes
0answers
54 views

Problem with \href for hyphenated web addresses within latex minipage environment

I am trying to use \href to link to a web address that contains hyphens (e.g. http://hyphenated-webpage.com) within a minipage environment, e.g. \usepackage{hyperref} ...
6
votes
1answer
145 views

highlighting words which cannot be hyphenated

is there any package which can automatically highlight unhyphenable words in output PDF? I.e. words which are not in the list of words for hyphenation. For example: I'm using polyglossia package. ...
4
votes
1answer
199 views

When hyphenation of a word includes an additional letter [duplicate]

In some languages a word on the form abcxxdef (note that there is only two occurrences of the letter x) is the compound of the two words abcxx and xdef. Sometimes the hyphenation rule is to break the ...
5
votes
1answer
87 views

How can I re-enable hyphenation rules after breaking characters in polyglossia?

When using polyglossia to hyphenate my Turkish documents, I frequently have issues with very long words on short lines. I need it to be more aggressive about hyphenation wherever it can be. One ...
0
votes
0answers
39 views

How can I trace a problem with hyphenation inside special environments?

For quite some time now I've been having trouble with the hyphenation of Turkish text in mdframed environments. I have been unable to come up with a sane MWE that exhibits the problem. It only seems ...
3
votes
1answer
89 views

suspended hyphen without linebreak between word and hyphen

I have a word combination like this metallo-porphyrins and -phthalocyanines which eventually gives a linebreak between the hyphen and the word phthalocyanines. I tried to include the ngerman package ...
10
votes
1answer
98 views

assign penalty to one discretionary (not all paragraph)

For a quite complex problem that would be too long to describe, I need to set different penalties for different discretionaries in the same paragraphe. It doesn't seem to be possible with pdfTeX (and ...
25
votes
4answers
1k 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 ...