Questions tagged [hyphenation]
{hyphenation} is about controlling hyphenation in (La)TeX documents.
1,087
questions
0
votes
0
answers
13
views
8bit patterns for LuaTeX and XeTeX
Consider the following dummy file
\bgroup
\catcode`^^F1=11
\lccode "F1="F1
\patterns{
1b 1c 1d 1f 1g 1h 1j 1k 1l 1m 1n 1^^f1 1p 1q 1r 1s 1t 1v 1w 1x 1y 1z
}
\egroup
\endinput
Is it ...
0
votes
0
answers
87
views
Can I change how LaTeX evaluates hyphenation?
At least for German-language documents (and especially when using microtype) LaTeX, to my taste, puts too much emphasis on preventing hyphenation.
Is there any parameter that can be changed so that, ...
0
votes
0
answers
33
views
polyglossia and Portuguese
What is the current incantation for making hyphenation work with polyglossia? In olden times, ie. two years ago, I used \setmainlanguage{portuges}. It doesn’t work anymore... I get no hyphenation. I’...
0
votes
1
answer
29
views
Force hyphenation or make newline in \tt
Overview
The goal is to get a tt rendering but with no right text overflow, in any case. I try to force LaTeX to make hyphenation or, if it’s not possible, newline. No matter if sometimes it let a gap ...
7
votes
4
answers
622
views
How to stop long words with "+" in them from going into the margins?
I have a long word with plus signs in it (e.g. This+Is+A+Long+Word) that often ends up going into the margins of my page. Both \sloppy and \emergencystretch 3em fix this issue, but they also add a lot ...
0
votes
1
answer
45
views
Global Hyphenation Issue in Overleaf LaTeX Document Despite Using \usepackage{hyphenat}
I'm dealing with a pesky hyphenation problem in my LaTeX document on Overleaf. I tried to fix it by using the \usepackage{hyphenat} package, but it didn't do the trick. Since my document is pretty ...
0
votes
1
answer
30
views
Hyphenation controls beyond \lefthyphenmin \righthyphenmin
Seeking pointers to additional hyphenation controls under LuaLaTeX with microtype. Typography books (e.g., Bringhurst’s The Elements of Typographic Style and Argentsinger’s A Grammar of Typography) ...
2
votes
1
answer
66
views
One line doesn't respect right margin
What could be causing one single line of this text not being aligned to the right (first line of third paragraph)?
\documentclass[11pt, twoside]{article}
\usepackage[headsep=14pt, paperwidth=14cm, ...
0
votes
0
answers
37
views
Hyphen too wide in texttt when combined with microtype
I'm currently writing a paper with a lot of code references. I want to typeset class and method names using \texttt{}. I am explicitly indicating word splitting points using e.g. \texttt{Very\-Long\-...
4
votes
2
answers
326
views
On TeX hyphenating “memorandum” in British English
Running latex from the current Debian stable on
\documentclass[british]{article}
\usepackage[british]{babel}
\begin{document}
\showhyphens{memorandum}
\end{document}
yields
mem-o-ran-dum
At the same ...
2
votes
1
answer
60
views
Why no implicit hyphenation for a single-word paragraph in this narrow minipage?
The following is a minimal example of a problem I'm having with hyphenation.
\documentclass{article}
\begin{document}
\hyphenpenalty=0
\hyphenation{shame-less-ness}
\begin{minipage}{18mm}
...
0
votes
1
answer
26
views
Hyphenation with colon as special character
I need to define hyphenation for words that contain colons. Using hyphanat package returns error Not a letter. \hyphenation{Konsument:. Any suggestions?
\documentclass{article}
\usepackage{hyphenat}
\...
3
votes
0
answers
88
views
Latest German dictionary pattern
I have included the format file latest German pattern from:
https://ctan.org/tex-archive/language/hyphenation/dehyph-exptl?lang=en
I have generated 45 German words in InDesign (using Duden Dictionary) ...
1
vote
1
answer
99
views
Keeping hyphenated layout in code - making it disappear from PDF
I have an OCRed document that I want to typeset. However, for validation purposes I want to keep the original layout in the code, but make hyphens disappear from the compiled document. Is there a way ...
8
votes
2
answers
502
views
TeXbook Exercise 14.32
In the end of Chapter14 of TeXbook, there is a macro called \signed:
\def\signed #1 (#2){{\unskip\nobreak\hfil\penalty50
\hskip2em\hbox{}\nobreak\hfil\sl#1\/ \rm(#2)
\parfillskip=0pt \...
0
votes
1
answer
17
views
\emergencystretch doesn't work when using AltaCV class
I'm very new to LaTeX, apologies if this question is silly.
I'm trying to make my document such that it has minimal hyphenation caused by linebreaks. Instead I would like each line to be stretched to ...
0
votes
0
answers
27
views
hyperref with hyphens looks fine but nolinkurl ignores before hyphen
Not quite minimal example:
\documentclass{article}
\usepackage[hyperfootnotes=false]{hyperref}
\begin{document}
Testing: \href{https://mathshistory.st-andrews.ac.uk/Biographies/Bezout/}{Étienne Bézout}...
3
votes
1
answer
88
views
how to automatically permit hyphenation of the word "category" in "$\infty$-category"
The word category gets automatically hyphenated as cate-gory by latex, but with the prefix $\infty$-, it doesn't. It still works by manually writing $\infty$-cate\-gory, but putting \hyphenation{$\...
3
votes
2
answers
254
views
Invocation of Polski Package Sometimes Produces Strange Hyphenation
Consider the code:
\documentclass[12pt]{book}
\usepackage{enumitem,xcolor}
\usepackage[T1]{polski}
\usepackage[tracking=true]{microtype} %This line must be commented out when using Xelatex to ...
0
votes
0
answers
34
views
How to justify text width in latex like in a Word document [duplicate]
I faced a problem that in LaTeX it is not a trivial thing to apply a text justification based on line width like in Word.
I have tried \usepackage[hyphenate]{microtype} and \usepackage{ragged2e} with \...
5
votes
2
answers
330
views
Generate the hyphenation of a given list of words
I'm new to LaTeX; is there a way to tell the TeX engine to generate the hyphenation of a given list of words as a text output file? For example:
abdomen
abduction
aberrance
...
What I want is ...
0
votes
0
answers
44
views
Word with special character (cedilla) not hyphenated
I am trying to understand why the last word in the first line is not hyphenated:
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[headsep=14pt, paperwidth=14cm, paperheight=21cm, ...
3
votes
2
answers
126
views
How do I put the hyphens in the margin in plain TeX?
I want to typeset the hyphens in the margin using plain TeX (I'm using the XeTeX engine, if that's important to you).
For example:
Lorem ipsum dolor sit amet, consecte-
tuer adipiscing elit. Aenean ...
1
vote
1
answer
86
views
Hyphenation of Bahasa Indonesia language in ConTeXt
I am trying to make ConTeXt do the hyphenations native to the Bahasa Indonesia language. I do not have any MWE, but I am relying on default English hyphenation and overriding incorrect hyphenation ...
4
votes
2
answers
429
views
LaTeX no hyphenation and justification in book class like in Microsoft word
There have been already several questions on this point, but still I could not find what I am looking for. I am working with book class and compiling tex file with LuaLaTeX engine. The packages babel, ...
0
votes
0
answers
24
views
hyperref url overfull hbox: word is in an awkward place
pdfTeX 3.141592653-2.6-1.40.22 (TeX Live 2022/dev/Debian)
I have
\begin{enumerate}[label={[\arabic*]}]
\item Alex McLean et al., \emph{Documentation Reference: Tidal Cycles}:
``Configuration; I/O (...
2
votes
0
answers
106
views
Underlining Command preventing line breaks
Based on a code by Alex Chan and help from Jinwen here, I made a custom underlining command with nice results: as you can see on the pictures (here and in Jinwen's post edited by me), the underline ...
1
vote
0
answers
36
views
Linebreaking an URL without any hyphens - only letters
Does anyone know how I can make a linebreak in my LaTeX output so that the link doesn't go "out of bounds"... There aren't any hyphens so I can't make any of the xurl, url, hyperref work. ...
0
votes
1
answer
44
views
Polyglossia and French hyphenation
What am I doing wrong here?
Hyphenation seems to be missing.
Here is a minimal reproducible example:
\documentclass[a5paper,12pt]{article}
\usepackage{xltxtra}
\usepackage{xunicode}
\usepackage{...
1
vote
0
answers
98
views
\babelhyphenation: why does rasing a penalty lead to a break?
Feeding
\documentclass[ngerman]{article}
\textwidth=104.2mm
\usepackage{fontspec}
\usepackage[ngerman]{babel}
\babelprovide[hyphenrules=ngerman-x-latest]{ngerman}%%% according to the documentation of ...
0
votes
0
answers
58
views
microtype + \babelposthyphenation: Why does lowering a hyphenation penalty at one position break the word at another position?
Running the code
\documentclass[ngerman]{article}
\textwidth=109mm
\usepackage{fontspec}
\usepackage[ngerman]{babel}
\setmainfont{TeX Gyre Termes}
\usepackage[babel=true,verbose=errors]{microtype}
% \...
1
vote
1
answer
56
views
Wrong hyphenation between french quotes
I'm transcribing a book in Italian and I can't get proper hyphenation with the words in quotation marks.
If I write:
\documentclass[10pt]{article}
\usepackage[a5paper, margin={15mm,20mm}]{geometry}
\...
8
votes
2
answers
712
views
Is it possible to change the TeX hyphenation rules for Ecclesiastical Latin?
I am in the middle of a very large project using LaTeX (which means it would not be OK to switch to XeTeX or LuaTeX), and I'm starting to run into issues with hyphenation. The entire thing (some 3,000 ...
8
votes
2
answers
368
views
Preventing hyphenation of a word with \hyphenation does not always work
I know that it is possible to prevent the hyphenation of a word by setting \hyphenation{ }. However, this does not seem to work in some cases. Here is an example, where the word is the acronym "...
2
votes
0
answers
71
views
beamer: Allow hyphenation by default (paragraph, itemize, footnotes, description) [duplicate]
I want that all text in columns, footnote (incl. [frame] option), and itemize (and description) are set in a way that word breaks are likely to happen.
This is a follow-up to beamer: column + babel + ...
0
votes
1
answer
59
views
beamer: column + babel + manual hyphenation does not work as expected
I have a beamer slide with a footnote.
I use the columns environment.
German has long words, e.g. Teilnahmeberechtigt (= "eligible") as seen in the example. Therefore I provide manual ...
2
votes
2
answers
96
views
Possible to load only hyphenation in LuaLaTeX, without babel or polyglossia?
Using only lualatex, recent (post-2020) version. Always utf-8, always OpenType fonts. Language will be one of the major Western European, possibly Latin-alphabet Eastern European, never anything else. ...
3
votes
1
answer
66
views
Dotfill after hypenation break
It seems there is an issue with \dotfill after a hyphenation break, minimal example
\documentclass{article}
\begin{document}
hippopotamus, hippopotamus, hippopotamus, hippopotamus, hippopotamus
\...
4
votes
3
answers
243
views
Allowing more hyphenation breaks to reduce interword space
I have some captions in the margin with very short lines and I don't like the way LaTeX hyphenation algorithm breaks them. Here is an example of the outcome I get letting LaTeX do the job (of course I ...
0
votes
0
answers
31
views
Automatic hyphenation with explicit hyphen signs in CSplain
Babel declares a couple of convenient shorthands which make it possible to write explicit hyphen signs that don’t block automatic hyphenation. How could I achieve something similar without Babel in ...
0
votes
1
answer
35
views
Babel: Respect preamble hyphenation breakpoints when insert extra breakpoint in document
Is it possible to insert extra breakpoints in a word beyond those already defined with \hyphenation{} or \babelhyphenation{} in the preamble? In the example below, the (lack of) breakpoints defined in ...
0
votes
1
answer
49
views
Issue with the long section title
I looked it up, but couldnt find a valid solution so that's why I am asking.
My issue is, I have a long section title that extends over my textwidth as shown in below.
How can I solve this issue? I ...
3
votes
1
answer
46
views
Undo babel-swedish's redefinition of \-
babel-swedish redefines \- so that it allows hyphenation in the rest of the word. To me, this seems ill-advised. How can I undo this in my preamble?
The redefinition is done as below:
\addto\...
1
vote
1
answer
54
views
Difference between "= and "- in babel-swedish
Is there a difference between the two shorthands "= and "- defined by babel-swedish? While they evidently are defined differently, I fail to find a difference in their descriptions or a case ...
3
votes
1
answer
104
views
Prevent babel from hyphenating words shorter than five letters
Is there a way to prevent babel from hyphenating words shorter than five letters? While still allowing the parts on either side of the hyphen to be a minimum of two letters?
8
votes
1
answer
152
views
Where are the Swedish hyphenation rules defined in Babel and Polyglossia?
I’m writing a document in Swedish with Babel and feel that the hyphenation is rather strange. And I can’t seem to find any rules defined specifically for Swedish in either babel or polyglossia. Are ...
2
votes
0
answers
73
views
Guideline on setting hyphenation preferences in German compounds
Let's say we wish to provide different priorities of hyphenation points in long compound words in German. Here is what we tried out for now:
\documentclass[ngerman]{article}
\usepackage{iftex}
\...
0
votes
0
answers
41
views
How to invoke babel, a US-English exception list, and hyphenrules properly?
Let's assume we care about the proper hyphenation of a few English words in a multi-lingual document in which the main language is not English. These few words happen to find themselves in ushyphex....
5
votes
1
answer
202
views
Hyphenation Ancient Greek
I am trying to hyphenate some texts in Ancient Greek in order to count the number of unique syllables (so I want to have every word forcefully hyphenated). I have read that hyphenation patterns in ...
2
votes
0
answers
106
views
Incorrect Dutch hypenation of `bijlage` with `babel`
I was checking the hyphenation of Bijlage (Dutch) in (Lua)LaTeX using babel or polyglossia (using \showhyphens), and noticed that babel incorrectly hyphenates it as Bij-lage, while polyglossia gives ...