Questions tagged [hyphenation]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
79 views

Latex doesn't break line - line goes into border area

In my document I have several lines where the words are not wrapped to the next line. Latex writes it into the border area of the page. I can not reproduce it in an MWE. There it is working correctly....
2
votes
1answer
34 views

babel 3.42 (and later?): “nohyphenation” and languages that use “zerohyph.tex” aren't recognized

Babel 3.42 seems to show some inconsistent behaviour with the dummy language nohyphenation and some other languages such as farsi which can be chosen within macros such as \foreignlanguage to avoid ...
2
votes
3answers
76 views

Apply lefthyphenmin to parts of a word spelled with hyphens

In German, there are some words that have a single letter separated with a hyphen, for example "E-Ink-Display", "E-Auto" (electric car), "E-Mail", "x-Achse" (x-...
-1
votes
0answers
42 views

When latex editor doesn't want to hyphenate and uneven text borders? [closed]

When latex editor doesn't want to hyphenate and uneven text borders? The rest of this document aligns perfectly, but this particular bit doesn't. Is the problem the word? or something in it? The ...
0
votes
1answer
31 views

hyphenrules no longer defined in polyglossia

I've used hyphenrules to add custom hyphenation to the languages I write in. I once asked how to do this, and the accepted answer (MWE below) no longer compiles, but gives the error message ...
2
votes
3answers
385 views

Hyphenation for german words wanted

I am currently working on a german document. While proof-reading I noticed a lot of places where the hyphenation is not correct. My current solution to this problem is to separate the word in question ...
1
vote
0answers
35 views

Hyphenation does not work for first word in paragraph

I'm having several short parboxes and just recognized, that LaTeX does not hyphen the first word. \documentclass[a4paper]{article} \usepackage{german} \parskip=1ex \begin{document} \frame{\parbox{...
0
votes
1answer
135 views

Dictionary of Hyphenated Words in English

In reading about TeX's hyphenation algorithm, I found the tex-hyphen repo with a bunch of patterns listed (over 4,000 in that file). The answer on the hyphenation algorithm suggested that they compile ...
4
votes
1answer
139 views

Cloze package: Hyphenation does not work (anymore?)

I use the cloze package to create cloze texts. The documentation states specifically (p. 4): The command \cloze doesn’t change the behavior of the hyphenation. But when I try the given example, I ...
0
votes
1answer
53 views

How might one treat hyphens as hyphens (not minus) in in-line math?

How might one treat hyphens as hyphens (not minus) in in-line math? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{parskip} \renewcommand\...
0
votes
0answers
31 views

Black symbols in the \listoffigures \listoftables

I want to add a \listoffigures and \listoftables at the end of the document. Whole document was created with latexmk under Linux. So far so good, no errors by creating the document. By inserting \...
0
votes
1answer
35 views

Text with chords for guitar in Italian language [duplicate]

I would to write the words of a song (for example "Immensamente" of the singer-songwriter Umberto Tozzi) with a typewriter font, with manual hyphenation, but the top should adopt either a ...
9
votes
2answers
297 views

\- doesn't work in footnote

In the following example the \- in the footnote doesn't work. In Indian languages "dh" is one letter and should not be separated by hyphenation. I know I could use \discretionary here, but I want to ...
-1
votes
1answer
27 views

Allow hyphenation in custom latex bib style

I created a custom bib style which renders a reference as [14] R. Boer. Vektor- und Tensorrechnung fur Ingenieure. Springer-Verlag Berlin Heidelberg, 1st ed., 1982. doi:10.1007/978-3-...
2
votes
1answer
31 views

How to prevent hyphenation of abbreviations when glossary has the choice to use the long form?

I followed the advice given by @NicolaTalbot (by the way thanks for creating the great glossaries package!) in hyphenation of abbreviation using the glossaries package to avoid hyphenation of ...
2
votes
3answers
31 views

Can Latex automatically break words at a certain special character (underscore) in the whole document?

I have a large document that includes many tables like this one. I would like the filenames to break in several lines so that they fit in the column. Is there a way to tell Latex it can break all ...
1
vote
2answers
326 views

How to set the minimum characters for hyphenation?

(Related to my other question here.) It seems that the polyglossia hyphenation rules for transliterated sanskrit by default allow hyphenation after a single character. See the example, the word ...
4
votes
1answer
47 views

How can I set automatic use of the double-oblique hyphen when a line break falls on an intentional hyphen?

Say you've got a compound word in which the elements are conventionally joined with a hyphen, instead of being jammed together, like fact-check is and gumshoe isn't, or one of those fancy hyphenated ...
19
votes
2answers
403 views

Is there a way to apply different penalties to hyphenation points in a word?

Background: The quality of hyphenation points within a word can vary by a large amount. Especially in languages that allow rather arbitrary combinations of words, such as German. As an example, ...
12
votes
1answer
1k views

Set hyphenation with polyglossia

If babel doesn't know how to hyphenate a word, I can inform it of good line breaks with \babelhyphenation: \documentclass{article} \usepackage[nynorsk]{babel} \babelhyphenation[nynorsk]{fram-...
0
votes
0answers
30 views

What is the best way to avoid hyphenation of all acronyms defined with glossaries? [duplicate]

Today the problem given is, that I want to prevent the hyphenation of all words defined with \newacronym for the glossaries package. An example of a document that would have HStA break between S and ...
1
vote
2answers
77 views

How to typeset hyphenated words using Zellman font?

Zellman font apparently drops hyphens: \documentclass[11pt]{article} \input Zallman.fd \newcommand*\initfamily{\usefont{U}{Zallman}{xl}{n}} \begin{document} \normalfont\initfamily \fontsize{6mm}{...
0
votes
1answer
25 views

Minted set manual hyphenation

MWE: \documentclass[12pt]{article} \usepackage[a4paper]{geometry} \geometry{tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm} \usepackage{minted} \begin{document} \begin{minted}[breaklines, tabsize=2]{...
4
votes
2answers
406 views

split a long email adress at the “@”

In a document of mine I would like to give people the option of filling in their email adress. However, for some exceptionally long email adresses the text box can be larger than the tikzpicture node ...
0
votes
0answers
17 views

MikTeX: UTF8 errors for double hyphens between citation start and end page

In TexWorks (MikTek 2.9 - updated), I added some old chapters I wrote using LaTeX, and there are strange UTF8 errors where there are two hyphens between start page and end page. Below is an example ...
0
votes
1answer
72 views

Is there an alternative for using \mbox to prevent ugly hyphenation in the toc

Assume I have a long chapter title \chapter{one two three four five six seven eight nine ten} that appears in the table of contents like this: one two three four five six se- ven eight ...
1
vote
1answer
40 views

polyglossia: babel hyphenation shorthands for English?

I usually write in German, and I'm used to using various babel shorthands, e.g. "= for an explicit hyphen that does not keep a word from being hyphenated elsewhere. I've found that while these work ...
3
votes
1answer
822 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 ...
104
votes
7answers
53k views

How to force LaTeX not to break the line after a hyphen “-”?

With ~ we can enforce that no line break occures between two words. But this does not seem to work with special characters. I want LaTeX to enforce not to break the line after the - in (re-)creation. ...
195
votes
6answers
224k views

How to prevent LaTeX from hyphenating the entire document?

I can't find where I can remove any kind of hyphenation and just have LaTeX just do a line break. edit: Honestly speaking I just don't like to read hyphenation anywhere and that's the only reason why ...
59
votes
1answer
94k 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 ...
1
vote
0answers
18 views

How to prevent hyphenation of words that has hyphen? [duplicate]

How can I prevent the hyphenation of words with hyphens? For example: Wi-Fi, F-1 Is it possible to add the exceptions to \hyphenation?
1
vote
2answers
113 views

Why does TeX hyphenate analysis as anal-ysis?

I am having the following issue when the word analysis is hyphenated in TeX. This is using \usepackage[british]{babel} in the header. I have figured out how to work around the issue, by manually ...
1
vote
1answer
1k views

problems finding correct language.dat

I have installed the portable version of miktex 2.9 on a pc without administrator rights. I try to use the package dutch babel, but it gives the common error of Package babel Warning: No hyphenation ...
0
votes
0answers
35 views

German language hyphenation on Mac

I am working in a file on a Mac using TexStudio in conjunction with MikTex. Unfortunately, no words are hyphenated at the end of the line, generating many line-overruns. The error log says: ngermanb....
0
votes
0answers
31 views

How to write negative numbers in text properly [duplicate]

I have problems with hyphenation of negative numbers in an article document. It sometimes happens that the minus is on one line, whereas the number begins on the next line. A possible fix is to write ...
3
votes
1answer
102 views

Is it tolerable to force hyphenation in English one-syllable words in small layouts?

I already know English language does not allow hyphenation of one-syllable words, that is why I am not asking this question on english.sx. But I am facing a typesetting task (humanities) with a very ...
3
votes
1answer
107 views

Why Finnish hyphenation doesn't work correctly with words starting with “laus”?

With Finnish hyphenation turned on it seems that words starting with "laus" are not hyphenated at the first possible point. Here is example code. \documentclass{article} \usepackage{fontspec} \...
4
votes
1answer
59 views

Insert space with babel post-hyphenation

In czech, we write date ranges with en-dash without spaces, e.g. 1351–1362 It is not allowed to break the line around the dash. Instead, when necessary, it should be typeset as 1351 až 1362 ...
1
vote
1answer
37 views

Hyphenating at active characters

Let's say I want to make certain letters active and do some devious things with them, like \catcode`y=13 \defy{\leavevmode\raise.1ex\hbox{\char`y}} (I know this is terrible in that it prohibits ...
0
votes
0answers
18 views

English hyphenation works well but French does not [duplicate]

I observe something strange with the management of hyphenation by Polyglossia on my configuration. It seems that the English hyphenation settings are correctly loaded and applied, but not the other ...
1
vote
2answers
55 views

Auto wrap broken words without hyphens, zero all stretch/shrink inter-word intra-word glues in fully justified paragraph

(1) Recently I have been researching a lot of fonts, have come across a range of type specimens where designers have deliberately disabled hyphenation (as a stylistic effect) while allowing words to ...
0
votes
1answer
474 views

Disable word break

How can I disable word breaks in the whole document? I don't want any of my words broken and hyphenated across 2 lines. I have tried to use the package: \usepackage[none]{hyphenat} But then my ...
4
votes
2answers
3k views

\hyphenation does not work

TeX trys to hypehnate my word "universeller" in a totally wrong way. It makes it to "Üniverseller" and removes the quotation marks in the front before. When I use \mbox it writes the word over the ...
1
vote
1answer
36 views

How to use stix2 font in PdfLaTex for documents with two languages Russian and English (with hyphenation)

\documentclass[14pt]{extarticle} \usepackage[OT1, OT2]{fontenc} \usepackage[cp1251]{inputenc} \usepackage[english, russian]{babel} \usepackage{stix2} \usepackage[a4paper, left=30mm, right=15mm, top=...
0
votes
0answers
39 views

In words with a hyphen: Can I change LaTeX's default so it will break lines at different characters too?

By default LaTeX only does line-breaks after the dash in words that contain a dash. It will break 'multi-disciplinary' only at '-', but will not break at other characters ('mul-ti' or 'di-sci-pli-na-...
1
vote
1answer
64 views

Problems with sanskrit hyphenation in babel

I need to type a multilingual document, this document has both greek and sanskrit texts. But, I do not know why, the sanskrit hyphenation does not work. Here my MWE: % !TEX engine = lualatex % !TEX ...
0
votes
0answers
69 views

LuaLaTeX, Babel and ngerman: Spurious and wrong hyphens appear in a particular word in the middle of a line for no reason

Compile this MWE with LuaLaTex: \documentclass[ngerman]{article} \usepackage{babel} \begin{document} Es sind pri­vat­sphä­reschützende Lösungen vorgeschlagen worden. \end{document} The result is: ...
6
votes
2answers
1k views

Portuguese: line break at an hyphen in an explicitly hyphenated word

In Portuguese, many words are explicitly hyphenated, such as "anti-inflamatório". According to Portuguese hyphenation rules, if the line is broken at the hyphen, another hyphen should be added to be ...
1
vote
1answer
53 views

Add a second hyphen on newline of automatically hyphenated words

When automatically hyphenating, I would like to have a hyphen on the new line with the second fraction of the hyphenated word. Is there a straightforward way to make this happen automatically? Example ...

1
2 3 4 5
18