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

learn more… | top users | synonyms

3
votes
2answers
152 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
41 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
87 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
82 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
69 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
141 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
178 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
91 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 ...
11
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
37 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 ...
28
votes
2answers
18k 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
35 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
31 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
75 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
29 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
52 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
65 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
714 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
58 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
55 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
132 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
117 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
171 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
36 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
61 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
64 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
44 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
136 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
196 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
83 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
36 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
84 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 ...
4
votes
1answer
42 views

Problem expanding acronyms containing \hyp{} in captions

Since I performed an update of MiKTeX yesterday, acronyms containing \hyp{} do not work correctly in captions anymore. I get the following error message: ! Argument of \__tl_change_case_cs_four:w has ...
3
votes
1answer
128 views

Hyphenation Problem with german

i have a problem with hyphenation and i could not find a solution. \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[german,ngerman]{babel} \selectlanguage{ngerman} \usepackage{cite} ...
10
votes
1answer
197 views

Reliability of LaTeX hyphenation

I'm not native English. I have to write an academic paper with LaTeX, in US English, without mistakes. My problem is with hyphenation. I do not know whether it is done correctly. I use: MikTeX. ...
0
votes
0answers
125 views

Windows API error 1392 using hyperref

When I compile the following very M(N)WE with pdflatex I get the error message pdflatex: Windows API error 1392: The file or directory is corrupted and unreadable. pdflatex: Data: C:\Program Files ...
7
votes
2answers
140 views

Polyglossia ignores my custom hyphenation

Polyglossia systematically ignores my custom \hyphenation, and generates overfull hboxes all over the place as a consequence. Here’s an example: \documentclass{article} \usepackage{polyglossia} ...
5
votes
2answers
123 views

Problem in listings, hyphenation not correct

MWE: \documentclass[a4paper,11pt,twocolumn,openany]{book} \usepackage[left=1.5cm,right=1.5cm,top=2.5cm,bottom=2.5cm]{geometry} \usepackage{color} \usepackage{listings} ...
3
votes
1answer
56 views

Hyphenation with Polyglossia

I'm working with a document in English and Hebrew (using polyglossia), and am trying to add hyphenation in Hebrew wherever a hyphen might be. Based on other questions/answers on this site, I have ...
3
votes
1answer
213 views

Long file path get out of right margin on PDF

A simple LyX document consisting of one long file path, is wrapped inside the LyX GUI to the next line; but when exported to PDF it 'continues' after the right margin end. I'd expect it to be ...
0
votes
0answers
39 views

brokenpenalty for two sided documents

A hyphenated word where one part is on the left and the other part on the right page of a doubled sided document isn't so bad and sometimes necessary to prevent ugly page breaks. However, I would ...
5
votes
1answer
117 views

Wrong hyphenation with \usepackage[croatian]{babel}

The words 'izoliran' and 'kostur' in the MWE \documentclass{article} \usepackage[croatian]{babel} \begin{document} mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm izoliran ...
0
votes
0answers
91 views

URL hyphenation

I need to hyphenate an URL —I'm the using \url{ } command)—. I've found that one solution is to add the hyphen option to the url package. I've added it but the compilation doesn't work. I get the ...