Questions tagged [hyphenation]

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

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

Install custom hyphenation

I am trying to install custom hyphenation file. Background info Friend of mine already made a hyphenation file for my language and sent it to tug. Will it pass codereview sooner and when it will be ...
7 votes
2 answers
1k views

Babel: Warning about the non-existance of Vietnamese hyphenation patterns

\documentclass{article} \usepackage[vietnamese]{babel} \begin{document} \end{document} results in this .log produced with TeXlive: ...texmf-dist/tex/generic/babel/babel.sty Package: babel 2016/02/24 ...
0 votes
0 answers
84 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 ...
1 vote
2 answers
115 views

How to activate hyphenation?

My overleaf will not hyphenate my doc no matter what i do. I've put this into my preamble: \usepackage[british,UKenglish,USenglish,english,american]{babel} What could be wrong? Preamble: \...
7 votes
4 answers
621 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 ...
28 votes
0 answers
670 views

Hyphenation differences between LuaTeX and other engines

I would like to hear what from the LuaTeX documentation would help me predict the differences in hyphenation behaviour of LuaTex. I answered a question about hyphenating already-hyphenated words (like ...
1 vote
1 answer
2k views

Unable to find 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
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) ...
3 votes
1 answer
94 views

How to use the known weights of different breaking points in German words?

In https://repo.or.cz/wortliste.git/blob/HEAD:/wortliste (which is, in my opinion, the source of the current German hyphenation patterns used by [PDF|Xe|Lua]LaTeX with \babelprovide[hyphenrules=...
7 votes
3 answers
1k views

Breaking long URLs on Arxiv.org

I have long URLs in my references and I want to submit my paper to arxiv.org. They use TexLive 2016. I tried to follow advice at Line breaks of long URLs in biblatex bibliography? URLs in bibliography:...
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, ...
32 votes
4 answers
2k 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?
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} ...
1 vote
1 answer
315 views

Overrunning Sentences within Emphasized Text When Using Microtype and Compiling with Lualatex [closed]

Consider the code which is to be compiled with Lualatex: \documentclass{book} \usepackage{lipsum} \usepackage[tracking=true]{microtype} \begin{document} \large \emph{\lipsum[1]} \end{document} which ...
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) ...
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
325 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 ...
0 votes
1 answer
25 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} \...
1 vote
1 answer
57 views

How to replace `right floor' symbol with `hyphenation' symbol inside \Verb

I'm now encountering a problem when using \Verb command from the package fvextra, which may be used as a drop-in replacement for package fancyvrb. fvextra will load fancyvrb if it has not yet been ...
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 ...
0 votes
1 answer
65 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-...
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
1 answer
161 views

Some words jump out of boundary

I am using \usepackage{geometry} \geometry{ a4paper, left=25mm, top=26mm, right=26mm, bottom=26mm, } But some of my words jump out of my boundary. How can I solve it?
11 votes
3 answers
11k views

How to get proper German hyphenation?

Code: \documentclass[paper=3.5cm:5cm]{scrbook} \usepackage{german} \usepackage[german]{babel} \usepackage[utf8]{inputenc} \begin{document} Andere übertragen das am besten den Geschwistern. \end{...
41 votes
4 answers
16k views

How to type a non-breaking hyphen (dash, "-" character) in scientific or technical documents

I am writing scientific or technical documents in LaTeX. Often I need to type a non-breaking space, for example when using equation references: Equation~\eqref{eq:equation1example} shows blaa... Is ...
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 ...
4 votes
2 answers
426 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
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
326 views

How may I negate long equality signs?

As an answer to How do I make a long identity sign? @egreg offered the solutions: \documentclass{article} \usepackage{amsmath,color} \makeatletter \newlength{\longeq@wd} \newcommand{\longeq}[1][2]{\...
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 ...
65 votes
2 answers
107k views

How to manually set where a word is split?

In my article, words are sometimes split a bit weird. For example: although ev-erywhere isn't wrong, it doesn't read very easily, so I'd like to split it as every-where. How can I do that? I tried ...
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
125 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 ...
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. ...
94 votes
3 answers
113k views

How can I make my text never go over the right margin by always hyphenating or breaking on word-boundaries?

I've seen several different methods that can be used to make long words not go over the right margin, but all of them have been paragraph-based. I need a solution that can apply to the entire text ...
0 votes
1 answer
43 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{...
17 votes
4 answers
2k views

How do I wrap text that doesn't use SPACE character to segment word

As you know, there are many languages out there that don't use a SPACE character for word segmentation. For such language, special non-printable characters are used, such ZERO WIDTH NON JOINER or ZERO ...
59 votes
6 answers
84k 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 ...
6 votes
2 answers
912 views

Wrap text at any point if normal hyphenation not possible

I have data (generated from a database, not manually typed in) that mostly fits into a table cell with fixed width, but sometimes overflows because there are long words for which no hyphenation is ...
3 votes
1 answer
653 views

Word wrap fails for font

When I use \usepackage[T1]{fontenc}%A typewriter font. \renewcommand*\familydefault{\ttdefault} in the preamble instead of the default font, the beautiful word-wrapping that happens no longer works ...
0 votes
1 answer
25 views

How to allow wider spacing between words within justification in order to prevent hyphenation

I have a document which has text in justification format. My text is about explaining something about hyphenation. That is why some examples I give should not automatically be hyphenated to fit the ...

1
2 3 4 5
22