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

learn more… | top users | synonyms

28
votes
1answer
782 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 ...
7
votes
2answers
433 views

amsmath nobreakdash definition to allow normal hyphenation

In the amsmath package documentation it is written: \newcommand{\n}[1]{$n$\nobreakdash-\hspace{0pt}} The last example shows how to prohibit a linebreak after the hyphen but allow normal ...
21
votes
1answer
560 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 ...
9
votes
1answer
243 views

Hyphenate \ttfamily without hyphen dash

Is it possible to hyphenate text without inserting a hyphen. \documentclass{article} %\usepackage{courier} %\usepackage{bera} %\usepackage{arev} \begin{document} ...
5
votes
1answer
2k 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 ...
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 ...
3
votes
1answer
448 views

Memoir: Stopping hyphenation in chapter titles in the table of contents

I am working on my dissertation using xelatex and the memoir class. Many of the titles to my chapters contain long words which I don't want to be hypenated in the table of contents. According the ...
28
votes
1answer
746 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 ...
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" ...
5
votes
2answers
796 views

Linebreak between numbers connected by dash

In my text I am using lots of dates. Now I have the following problem: 1480–1541 (two figures and between them a dash) appears at the end of one line and extends over the line into the margin space ...
11
votes
2answers
366 views

Using breakable hyphen "= in \newcommand

I want to use a breakable hyphen "= in a command: \documentclass[a4paper]{article} \usepackage[ngerman]{babel} \newcommand{\TT}{Test"=Text } \begin{document} This is a test whether the hyphen in \TT ...
7
votes
2answers
1k views

pdflatex and \hyphenation

EDITEDx2. Here is a fairly short latex file. \documentclass[12pt]{amsart} \newcommand{\calG}{\mathcal{G}} \newcommand{\calP}{\mathcal{P}} \hyphenation{lem-ma none-the-less un-pa-ram-e-ter-ized} ...
1
vote
1answer
597 views

abntex and hyphenat problems in url formatting

Problem I would like to disable all hyphenation within the document, but I want the bibtex URL entries to be properly hyphenated, and also properly linked according to the hyperref package. Because ...
2
votes
0answers
82 views

How to prevent page breaks inside words? [duplicate]

Possible Duplicate: Suppressing hyphenation across pages I would like to prevent page breaking from happening inside a word. In other words, hyphenation should not take place between pages. ...
8
votes
3answers
2k views

How to avoid wrong hyphenation in headings?

I have the problem, that I am writing a (long) document. Now I found while checking the document for errors a very bad formatting of some heading: The headline is quite long and therefore it has to ...
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 ...
17
votes
2answers
20k 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 ...
10
votes
4answers
2k views

Avoid hyphenation in chapter title

I wonder if there is a way to avoid hyphenation of words in the title of a chapter. I have tried \mbox but that makes the word run over the margin. I've also tried inserting a \\ in front of the ...
8
votes
1answer
704 views

long URL's containing “-” in bibtex going beyond page

I have tried several top answers with no luck. Here is what I have in my preamble(compiling with xelatex and bibtex). \documentclass[a4paper,12pt]{article} \usepackage{fontspec} \usepackage{natbib} ...
5
votes
3answers
140 views

Allowing breaks at a location with no spaces or hyphens

I have two letters: A and B. In most situations, I'd like them to appear together with no space, e.g. ("AB"), however, if TeX feels it needs a linebreak or to split these across two pages, this is ...
7
votes
1answer
632 views

Automatic hyphenation of compound words

When I was learning to drive a typewriter (shortly after the death of my pet sabre-tooth), I picked up the habit of using a double hyphen when splitting compound words, thus: The system has a ...
12
votes
5answers
3k 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 further right ...
9
votes
2answers
879 views

British hyphenation with either xelatex or lualatex

For several reasons, I am working on a source file that should be compilable by either xelatex or lualatex. I would like British hyphenation for the text and am using csquotes and biblatex with ...
4
votes
1answer
201 views

How to limit hyphenation in a multicol environment?

I have a LaTeX document (compiling with pdflatex), with the multicols and microtype package enabled. The document is using two cols using the \begin{multicols}{2} ...\end{multicols} environment. ...
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.
2
votes
2answers
366 views

Cannot generate hyphen

I am new to TEX and am using scribtex as an online latex editor. My problem is that when I put hyphen in my text it sometimes appears and sometimes doesn't appear. What can be the reason for this and ...
12
votes
2answers
2k views

Is it possible to have hyphenations in \underlined{text}?

In a document I was writing, I had some really long captions and I wanted to emphasize the important parts in them. I tried to use \underline{} but no hyphenation was used at both the caption and at ...
8
votes
2answers
5k 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 ...
7
votes
2answers
1k views

Section titles, hyphenation, manual line breaks - and how to avoid them

I have several section titles in my document that are getting hyphenated, which is quite ugly. I am now looking for some way to avoid the hyphenation, which is is somewhat related to this question, ...
16
votes
1answer
702 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 ...
13
votes
1answer
235 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 ...
11
votes
3answers
3k 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 ...
6
votes
2answers
921 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 ...
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 ...
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 ...
38
votes
2answers
7k 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, ...
4
votes
1answer
263 views

Hyphenation for mixed language document

I'm currently writing my Bachelor's thesis in English but have to include a German abstract. Hyphenation will not work for German words unless I include the ngerman package. But then English words are ...
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 ...
35
votes
7answers
8k 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 ...
21
votes
2answers
919 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 ...
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.
7
votes
2answers
1k views

Using hyph-utf8 with plain TeX

I want to use the UTF-8 hyphenation patterns (for Croatian) with plain TeX (pdftex). I've read the documentation on the hyph-utf8 package but I haven't found it very useful. There's mention of a ...
12
votes
2answers
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 ...
25
votes
3answers
836 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?
5
votes
2answers
308 views

Disable hyphenation in apa6e's footnotes

I would like to disable hyphenation in apa6e's footnotes, to match APA's 6th edition guidelines. apa6e uses ragged2e, and the ragged2e documentation (pdf) claims that certain commands can make ...
0
votes
0answers
232 views

Unwanted line breaks in middle of words [duplicate]

Possible Duplicate: How to prevent LaTeX from hyphenating the entire document? I have a two-column article with custom margins. In some points of the text, line breaks occur in the middle ...
8
votes
3answers
1k views

How to hyphenate Portuguese in plain TeX?

I'd like to use plain TeX in Portuguese, but I don't know how to hyphenate in this language, or in any other language than English. What do I have to do?
7
votes
2answers
1k views

Hyphenating a number in the BibTeX pages field

Some journals, such as Phys. Rev. B., use unusual page numbering conventions, such as 081401-1–081401-4. (Depending on the way this gets rendered by your computer, you may not be able to discern that ...
11
votes
1answer
542 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 ...
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 ...