Tagged Questions

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

learn more… | top users | synonyms

15
votes
2answers
531 views

moving the whole word to next line when there is no free space

Is there any option in tabular that can move the whole word to the next line whenever the length of the word is greater than the fixed cell size? Currently I use \begin{tabular}{ | p{2cm} | } And ...
20
votes
1answer
313 views

How to I force a word to move to the end of the line?

How do I force my document to pull selected words to the end of each line (and to hyphenate them as well, if needed)? I have an old document. I know the page size and I think I've found the ...
1
vote
2answers
76 views

Problem with \hfill and hyphenation

When I use \hfill and in the previous line the last word is hyphenated, the \hfill doesn't work the same way as usual: \documentclass[a4paper, 12pt]{book} \begin{document} Spellings attempt to ...
5
votes
1answer
130 views

Can I proofread babel hyphenation rules for a specific language?

I wonder where I can find and proofread the babel hyphenation rules. Would it be possible to learn from those hyphenation rules (for example for a student of a language) where to place a hyphen?
20
votes
4answers
577 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
42 views

Package for avoiding hyphen in text?

Is there any package which can be used for avoiding hyphen in text? Regards
5
votes
0answers
56 views

No hyphenation of long words in narrow boxes [duplicate]

I stumbled across an hyphenation problem which I cannot explain or solve. When I use a narrow box containing a long word with a width longer than the box width, this word is not hyphenated. The ...
3
votes
1answer
186 views

How can I line-break a long string of numeric digits and hyphens?

I have a cls file that contains a definition for source code: \lstnewenvironment{code}[1][] { \lstset{ basicstyle=\ttfamily\footnotesize, breaklines=true, ...
2
votes
1answer
86 views

LuaLaTeX and multilanguage support

I've a little issue managing fixed names in my TeX class. I'm using the babel package for multilanguage hyphenation support so far, but I would like to deactivate the fixed names provided by babel. I ...
15
votes
1answer
194 views

Does \\ suppress hyphenation for the following word?

I am not sure, if this is a bug of the package showhyphens or some LaTeX-behaviour I don't understand. Please have a look on the following example: % arara: lualatex \documentclass[ngerman]{article} ...
4
votes
1answer
36 views

Wrong hyphenation with LY1 font ecoding?

Here I found the statement that no special hyphenation patterns are needed with LY1 font encoding. Yet I stumbled upon different hyphenation in connection with non-letters (such as quotation marks) in ...
3
votes
1answer
94 views

Line break at hyphen in source inserts space in output

I prefer to wrap lines in my LaTeX source, and my editor will often choose a hyphen as a good place to split the line. Unfortunately, if a hyphenated word doesn't appear in the output file at a line ...
0
votes
1answer
99 views

Right justification not correct

I am writing my thesis and I have started noticing wrong right justification. I have corrected some of them by replacing dashes with \hyp{}. However, I still struggle with the example below (citation ...
5
votes
1answer
47 views

How to define a complicated hyphenation for Chinese pinyin

I am setting a document with Chinese pinyin. I use \- to separate syllables in pinyin phrases (eg. zhong\-wen). This not only allows for proper hyphenation, but also allows spell check in ...
3
votes
1answer
111 views

Strikethrough Cyrillic text in XeTeX preserving hyphenation

I was looking for the way to create a strikeout text in XeTeX. After some googling I found two packages that supposedly could do that: ulem and soul. However, it turned out that both of them have some ...
1
vote
0answers
58 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 ...
5
votes
1answer
613 views

Prevent biblatex from printing the language name and use language only for hyphenation

In my .bib-file the language field is filled out in all entries. As MWE, they all look (as expected) like: @Collection{Bakker:Grammar, editor = {Egbert J[an] Bakker}, gender = {sm}, title ...
0
votes
2answers
149 views

bidi and hyperref change hyphenation

I try to compile th following document. If I load both bidi and hyperref, Mittelbach is not hyphenated. If I comment out one of them, everything is fine. The bstfile is here: ...
3
votes
2answers
165 views

Hyphenation and section titles with geometry

I am using classicthesis and the geometry package for my thesis. Some section titles are not hyphenated correctly, but instead reach into the margin. It seem not to be possible to use, e.g., \-, to ...
5
votes
1answer
177 views

Smartdiagram is hyphenating too much

I am trying to make a constellation style diagram but when I insert the words that I want to use, it is hyphenating too much. I don't have an issue that the diagram is wide. Essentially, I am trying ...
5
votes
2answers
175 views

Russian (Czech, Polish, etc.) tradition of equations breaking [duplicate]

According to the Russian (Czech, Polish, etc.) typesetting tradition, we have the following rules of equation breaking: If an equation cannot be fit into one line, a typesetter should put part of ...
2
votes
1answer
170 views

How to avoid bad box with long words with no hyphenation?

I know there are planty of similar questions, but I haven't found the answer to this particular one. I have a long word (say some long acronym like ABCDEFGH). It happens to be at the and of the line ...
5
votes
2answers
169 views

nomenclature hyphenation

I'm using \makenomenclature and \printnomenclature.. I have searched since yesterday for solution with nomenclature, but found nothing. Do anybody have a solution? I don't want do it with glossary, ...
3
votes
2answers
366 views

How to force hyphenation in floating figure caption?

I have a right floating figure with a justified caption spanning four lines like so: Unfortunately, LaTeX will not hyphen the words in the caption (both words hyphen just fine in regular text), ...
10
votes
1answer
186 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
83 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 ...
7
votes
2answers
196 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, ...
5
votes
1answer
110 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
85 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 ...
13
votes
2answers
603 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
348 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
156 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
227 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
86 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
854 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
51 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
171 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
1k 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
209 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
118 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
107 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
214 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
123 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
131 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 ...
9
votes
1answer
913 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. ...
2
votes
1answer
106 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
99 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
94 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
281 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 ...