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

learn more… | top users | synonyms

10
votes
1answer
171 views

Why does titlesec cause bizarre line breaks within \paragraph?

Consider the following example: \documentclass[12pt,a6paper]{article} %\usepackage{titlesec} \usepackage[textwidth=79mm]{geometry} \begin{document} \paragraph{I guess we'll have to make a few ...
5
votes
2answers
70 views

Hyphenation in a table of contents causing bad blocks

I want to turn off words hyphenation in a TOC but leave it in the rest of a document. The intention to do it is to avoid bad blocks such as you can see below in my MWE. I prefer a solution that ...
6
votes
2answers
188 views

Preventing hyphenation of specific short, repeated, hyphenated words

I'm writing a document where I frequently refer to some experimental cases which are called things like "M-1" and "P-2". It's always a single number, a hyphen, and a single number. In several places, ...
4
votes
1answer
95 views

Generating unicode hyphenation pattern

Is there a program that you can use to generate unicode hyphenation pattern? I already know about opatgen but I can not compile that program since it requires a very old version of gcc.
4
votes
1answer
81 views

Combining dashes from babel with xspace

Assume we have some mathematical object that is used in formulae as well as in "natural" language (in my case, complexity classes). When defining a macro for such an object, I like to use \xspace so ...
12
votes
2answers
433 views

Nonbreaking dash that allows hyphenation

The babel package provides useful dash variants, e.g. "~ for a non-breaking dash that forbids hyphenation in the parts, and "= for a breaking dash that allows hyphenation in the parts. However, ...
6
votes
1answer
289 views

Hyphenation of Russian text in utf8 encoding?

All my attempts to make hyphenation work in Debian Linux 6.0 for Russian text encoded in utf8 has failed. My search on internet indicates that hyphenation should work through babel at least with ...
2
votes
1answer
136 views

Left aligning cell contents in a table

If you compile the code given below, then the row which states "Average Pre-Authentication Response Time" is justified with a lot of spacing between the words. I want it to be left-aligned. Also, if a ...
3
votes
1answer
201 views

Hyphenation when using \verb command

I'm having a problem using \verb command. Usually when I want some verbatim font in the current line (not in a new paragraph) I use the \verb command, not the verbatim environment. So, when I use ...
4
votes
1answer
77 views

Loading unicode hyphenation pattern

The documentation of hyph-utf8 package states: Since Babel’s hyphen.cfg is built in the XeLaTeX format, hyphenation patterns can be used without even loading Babel or Polyglossia. However ...
5
votes
1answer
608 views

Unable to make Russian hyphenation work after (re-)installing TeX Live 2013

I have just upgraded TeX Live to 2013 on Mac OS, and installed all the Cyrillic packages i could think of, but the hyphenation in Russian stopped working. Here is an example: ...
3
votes
1answer
46 views

Hyphenation problem on very narrow column and \flushleft

I have a strange problem with hyphenations, when the column is very narrow. My text is finnish and I'm using lualatex. In my narrow column, I have words "Ympärileikkauksen liitto". It breaks up as ...
4
votes
1answer
142 views

How to change hyphenation but not quotation marks in bibliography with biblatex?

I'm using biblatex with biber and an authoryear style for my bibliography. My main language is french, but I have different languages in my bibliography (so I load \usepackage[english, french]{babel}. ...
12
votes
2answers
978 views

Using TeX to split words into syllables

I know literally nothing about TeX, but when trying to figure out how to split english words into syllables I saw that the TeX typesetting system has a syllable breaking algorithm. Is there a simple ...
2
votes
2answers
179 views

How to create a short upper hyphen

How can I create a short hyphen, that connects two words in their upper part? The usual hyphen connects the words in their middle part. I tried to detexify it, but got only middle and bottom hyphens, ...
3
votes
0answers
106 views

Greek and Hebrew hyphenation in longer texts in LuaLaTeX

To typeset English + ancient Greek + Hebrew, paragraph length, I use XeLaTeX + polyglossia. I've been trying LuaLaTeX + babel in case this is the way of the future. In the minimum example below, I ...
10
votes
1answer
102 views

Hyphenate when using underscore as a letter

In many place in my current text I have to insert something like Name_of_model for instance. I found the last suggestion in this answer very helpful. However, I am facing a problem when it come to ...
3
votes
1answer
170 views

How to turn off hyphenation in ToC only?

Here's what my template looked like before: \usepackage{tocloft} \renewcommand{\cftsecleader}{\cftdotfill{\cftdotsep}} I changed it to this: \usepackage{tocloft} ...
3
votes
1answer
110 views

Overlong line even with suggestions for hyphenation

I have a paragraph which starts with \documentclass[a4paper,11pt,twoside]{book} \setlength{\textwidth}{14.6cm} \hyphenation{MnTPPCl CoTPP} \begin{document} We studied surface doping with the ...
0
votes
0answers
28 views

URLs and justification [duplicate]

I am having difficulties in keeping long URLs inside the correct margins in LyX. I can understand why there are difficulties in hyphenating URLs at a point that will ensure the average reader will ...
6
votes
2answers
125 views

Redefining the emdash so as to allow hyphenation

OK, so I use the emdash as follows: someword---anotherword, but the problem is this prevents hyphenation of both words around the dash. I can fix this by replacing --- with \textemdash, but I was ...
8
votes
1answer
616 views

Add hyphenation pattern for word with special characters

The \hyphenation command can be used to add extra hyphenation patterns globally to a document. This is useful for special words, that are not present in the general hyphenation patterns. ...
0
votes
0answers
97 views

How can I stop automatically-inserted hyphens acting as boundary character?

When TeX inserts a hyphen, ligature rules that apply to the boundary character are applied before the hyphen. How can I prevent this? (I checked that the font is not changing at this point.) Checking ...
2
votes
1answer
89 views

Text in itemize goes onto margin and doesnt align with other text

I'm having some problems with margins. \usepackage[top=2.5cm, headsep=0.4cm, bottom=2.5cm,left=2.5cm, right=2.5cm]{geometry} \geometry{bindingoffset=5mm} When I use itemize, the text doesn't align ...
1
vote
0answers
91 views

URL constantly results in a badbox

I am trying to insert a long url into a LaTeX document. I'm using hyperref package to make them clickable. However, Kile constantly tells me that it results in a badbox. It is strange, since, well, ...
2
votes
1answer
90 views

missing several fields in a bibliographic entry

Clarification: I'm writing a thesis. Edit: It seems that my TeXworks doesn't compile -- to a en-dash, any idea why? I just use – for now with XeTeX. I compile with XeLaTeX + MakeIndex + BibTex and ...
4
votes
1answer
212 views

Hyphenate long acronyms

I'm using the package acronym but I have a problem. I have a very long acronym "ADD1/SREBP1". I defined it like this: \acro{srebp}[ADD1/\-SREBP1]{adipocyte determination-and differentiation-dependent ...
11
votes
2answers
123 views

increase \hyphenation{word1 word-2…} capacity

We use LaTeX to typeset a large collection of books with many proper names. We use the \hyphenation{word1 word-2...} command to specify words that should not be hyphenated and to suggest hyphenation ...
1
vote
1answer
73 views

A hyphen is not displayed in chemfig

I have a problem with a hyphen that is not displayed (according to my pdf file) in a chemical structure (after the arrow, {n}-Bu_4N^+)=-=)), although it is present in the code. My sample code is ...
2
votes
1answer
69 views

How to get rid of the hyphenchar in XeLaTeX

I have the following TeX file which runs on XeLaTeX: \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia,xltxtra} \setdefaultlanguage{malayalam} ...
0
votes
1answer
147 views

hyphenation of chemical names

i use the datatool package to read a csv table which contains names of chemical compounds in one column. Those names are very long and have to be hyphenated. The problem is that these names contain -. ...
1
vote
1answer
84 views

Two hyphenation problems with non-language items

The first hyphenation problem occurs with the double-word "algébrico-géometriques", which is in French, and I'm writing in English. Unfortunately, I already tried different variants of ...
4
votes
3answers
107 views

How to break words at paragraph width?

I have a few long nonsensical words I'd like to break at the same place as the other words. How do I do it? Example below. The text quoted is: As an example of the two first properties, the ...
9
votes
3answers
3k 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 ...
7
votes
2answers
86 views

Looking for a special printhyphens macro

In May 2012 user9588 answered: \documentclass[12pt,a4paper]{article} \def\rehbox{{\unskip\unpenalty\setbox0\lastbox\ifhbox0 \rehbox \hbox{\unhbox0} \else \leavevmode \fi}} ...
16
votes
3answers
1k 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 ...
2
votes
1answer
3k 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 ...
0
votes
0answers
87 views

What to do so text won't splitted on the edge of paragraph? [duplicate]

I don't know if my title is descriptive enough, but that is my problem. In justified paragraph some text will be splitted, like 'descriptive' become 'des-criptive' and the 'criptive' part is on the ...
5
votes
2answers
87 views

Boxes of zero height, depth and width unexpectedly affecting document spacing

I was adding some mark up for a roughdraft of a document I'm working on. But when I eliminated the mark up, the spacing and linebreaks came out differ. My intention was to create boxes of zero ...
4
votes
2answers
161 views

custom word-wrapping in tablecolumns with fixed width

I have a somewhat special problem. I want to create a fixed-width table column (for example by using the p{0.2\textwidth} column-type). But in the column are really (!) long words, containing mostly ...
3
votes
2answers
358 views

MikTex 2.9 Serbian Cyrillic hyphenation problems

I have MikTex 2.9 on XP. Is there anybody to give me instruction how to set up program so that I can use serbian cyrillic hyphenation in it. I am not good in LaTex and I spent a lot of time trying to ...
5
votes
2answers
1k views

Using \hyphenation and umlauts

I have included the ngerman package and I write \hyphenation{An-fangs-n"a-he-rung} into the preamble of my document. However, latex complains with !Improper \hyphenation will be flushed. ...
5
votes
1answer
339 views

Automatic long word breaking in whole document

In my document some of long words are not automatically broken at the end of the line. Is there a way to fix that?
2
votes
1answer
984 views

Hyphenation in bibliography with Biblatex [duplicate]

The hyphenation in my bibliography is off somehow, I can't figure out why. Look: \documentclass{scrreprt} \usepackage[style=alphabetic,hyperref=true]{biblatex} \bibliography{\jobname.bib} ...
8
votes
1answer
167 views

Simple transliteration in LaTeX (for Latin)

I would like to typeset the same latin text in two or more "spellings". My source is a modernized spelling (distinguishing i/j, u/v) and I would like to display it both with and without this ...
8
votes
1answer
385 views

Hyphenation command does not work with Greek words

I am relatively new to LaTex. I am struggling to write a report that contains mixed Greek and English words. The main language of the report is Greek. Therefore, I use the babel package. However, ...
13
votes
1answer
353 views

(Another) problem with url hyphenation in bibliography

What I am about to ask has already been asked many times, but nothing seems to work for me so far. Basically I am having troubles in getting urls hyphenated correctly in the bibliography. I modified ...
2
votes
1answer
121 views

Autohyphenation of compound Russian words

The title says it all... how? There are a lot of compound Russian words that have a hyphen and they need to be hyphenated just like any other word. Polyglossia can do this for German with "- and "= ...
8
votes
2answers
117 views

Line breaking with `and/or` + babel

I have continuously come up with the problem of overfull hboxes because sometimes I write and/or in my papers. For example, this phrase: To design and implement a biofeedback system for alerting ...
4
votes
1answer
91 views

Hyphenate term with numbers and white space within acronyms

I want to use the command \hyphanation to force latex keeping terms in the same line The terms are for example IAS 39 and IFRS 9. I use acornyms for IAS and IFRS and let a white space between the ...