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

learn more… | top users | synonyms

1
vote
2answers
28 views

how to get latex to hyphenate a word that contains a slash? [duplicate]

I'm using 'und/oder' (German for 'and/or') in one of my texts (I know it's not nice :)). Latex separates it 'und/o-der' which is not nice. Using \mbox fixes that problem. Trying to find a general ...
6
votes
1answer
50 views

Changing the hyphenation style

I saw in an article (here on page 43, note 2, in french) an intersting way to hyphenate words. I thought it would be intersting, as an exercise, to try and reproduce it using XeTeX. It looks like ...
5
votes
3answers
136 views

Babel fails to hyphenate when the word contains periods

babel can hyphenate disputas: \documentclass{article} \usepackage[nynorsk]{babel} \begin{document} \parbox{0pt}{\hspace{0pt}disputas} \end{document} But it fails when the word contains a period: ...
7
votes
2answers
154 views

How to type a non-breaking hyphen (dash, “-” character) in scientific or technical documents

I am writing scientific or technical documents in LaTeX. Often I need to type a non-breaking space, for example when using equation references: Equation~\eqref{eq:equation1example} shows blaa... Is ...
2
votes
1answer
102 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: ...
1
vote
1answer
23 views

Hyphenation in two languages in XeLaTeX + polyglossia

I am fairly new to LaTeX so please excuse any obvious parts of the question. I am looking for a way to setup hyphenation in 2 languages (Greek and English) at the same time. My setup is MacTeX ...
25
votes
3answers
19k 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 ...
8
votes
1answer
47 views

Context sensitive glyph appears even when hyphenation removes the context

The Alegreya font has a pretty clever feature by which it substitutes the regular f glyph with a variant that has a longer cross stroke when the f is followed by t. The result is that the two cross ...
0
votes
0answers
26 views

empty space between words in a paragraph

I use the command below in the Thesis.tex file to prevent hyphenation at the end of every sentences in a paragraph/text. \tolerance=1 \emergencystretch=\maxdimen \hyphenpenalty=10000 \hbadness=10000 ...
11
votes
1answer
181 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?
3
votes
1answer
21 views

apacite with [natbibapa] fails to line-break authors' names in citation callouts when author name has umlaut

\citep causes problem at the margin when the last name has an umlaut (\"{}). This post is related to my last post here: apacite produces inline citations out of text area when using custom margins ...
4
votes
2answers
50 views

Adding line break without hyphen

I'm writing a lab report about gene sequencing, and I have to put a large sequence of nucleotides. I don't really intend to put it on a special box, just add it as if it were another paragraph only ...
6
votes
1answer
116 views

How to remove orphan character from bibliography

Compile with pdflatex 1.14.16 (Miktex) the following source: \documentclass[11pt,a4paper,english]{memoir} \usepackage[english]{babel} \usepackage{biolinum} \usepackage{XCharter} ...
2
votes
1answer
33 views

Have a macro evaluate to different stuff depending on whether it will be hyphenated

Given a command like this \newcommand{\AB}{$\textsf{A} \subseteq \textsf{B/string}$} is it possible to have the string evaluate to something like \newcommand{\ABhyp}{\textsf{A} is contained in ...
4
votes
1answer
34 views

Change language on a per field basis

I am creating a bilingual (main: greek, secondary: english) document with xelatex and polyglossia and I'm using biblatex with biber for the bibliography management. As biblatex is currently setup the ...
4
votes
1answer
40 views

Prevent Hyphenation across lines + Enforce right margin

My first question here, so it may sound rambling. So far I've found the answers about preventing hyphenation across lines and for setting margins, but I'm having trouble putting it together. This is ...
2
votes
0answers
23 views

Install a hyphenation file for xetex

This is a beginner question: I need to use this hyphenation pattern: https://www.ctan.org/pkg/xetex-greek with xetex, how can I do to install it? Thank you.
3
votes
1answer
18 views

Hypenation for slovakian language

I have problem i need hypenation for slovakian language, as in \documentclass{article} \usepackage[utf8]{inputenc} \begin{document} Do divadelnej štruktúry vstupujú viaceré druhy umenia ako jej ...
5
votes
1answer
71 views

How to prevent particular hyphenations of a word *without* specifying allowed hyphenations

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 ...
4
votes
1answer
42 views

Hyphenation problem with \-

I have just encountered a strange behavior with a long german word: \documentclass[ngerman]{article} \usepackage{babel} \begin{document} Lorem ipsum Lorem ipsum Lorem ipsum Lorem ipsumm ...
7
votes
1answer
84 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
88 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 ...
6
votes
1answer
44 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
154 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
15 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
22 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
101 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
67 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
48 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
162 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
50 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
119 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} ...
8
votes
2answers
111 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
81 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
8k 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
148 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
185 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
36 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
102 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 ...
31
votes
2answers
21k 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 ...
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
80 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 ...
7
votes
0answers
59 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
82 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
735 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 ...