Questions tagged [hyphenation]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
80 views

remove hyphen when breaking words over to new line [duplicate]

I am compiling a table whose entries are long variable names from a computer program source code. These variables names, although single words, do not fit within the column width and need to be ...
19 votes
3 answers
1k views

New language - hyphenation

I'm working in a project (Ubuntu Manual, if you're curious) which requires TeX to create a PDF document. But when we have almost all translated, I've found that there wasn't an hyphenation pattern for ...
70 votes
3 answers
14k views

How to automatically hyphenate within \texttt?

This question was phrased as a bug report for LaTeX and I thought it would be helpful to be presented here (including an answer). The person had a lot of "common words" in typewriter font sprinkled ...
1 vote
1 answer
105 views

Hyphenation of quote environment in Beamer

Beamer turns hyphenation off. There are good reasons for that (e.g., "if you need automatic hyphenation, you have too much text on your slides"). But I still get hyphenation inside a quote ...
24 votes
6 answers
9k views

Why does \usepackage[british]{babel} hyphenate the word "alternate" incorrectly?

Now I know there are hyphenation differences between British and American English but in no dictionary, British or American, could I find the word "alternate" to be broken down to al·tern·ate instead ...
34 votes
5 answers
26k views

How to reduce the number of hyphenation?

Sometimes, assume our document contain many long words, TeX may generate some hyphenation at the end of line. But it really hinder our smooth reading. Although I know we can add the hyphenation rule ...
3 votes
0 answers
121 views

Is it possible to make the hyphenation char gray?

In math articles, sometimes there might be a lot of composed phrases like $R$-module, $r$-$K$-linear, etc., and in some cases it could be confusing whether a - is for hyphenation or is it just a ...
133 votes
8 answers
68k views

Allow line break, but without inserting a dash

I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to ...
3 votes
2 answers
115 views

Manual hyphenation in text part of \href

How can I use manual hyphenation commands (see https://de.wikibooks.org/wiki/LaTeX-W%C3%B6rterbuch:_Silbentrennung) inside the text part of \href? \documentclass[a5paper]{article} \RequirePackage[...
1 vote
1 answer
48 views

Combining internal hyphenation of words with \discretionary

I have been transcribing an old, public-domain novel and am attempting to typeset it using Latex as close as I can to the original formatting of the book. I've taken Memoir template and am modifying ...
2 votes
0 answers
58 views

How to make inline description* list left-aligned and hyphenated?

I am having a simple doc: \documentclass[a4paper,12pt]{article} \usepackage{enumitem} \newlist{inlinedesc}{description*}{1} \setlist[inlinedesc]{itemjoin={{ $\odot$ }}, itemjoin*={{ and }}} \...
0 votes
0 answers
43 views

Doing Automation Hyphenation [duplicate]

I want to make automation for hyphenation so I didn't need to write tra- \gedy Is a package in latex that could help me? \documentclass[12pt,A4paper]{article} \usepackage[utf8]{inputenc} \begin{...
0 votes
1 answer
118 views

Hyphenate \texttt

Before anyone says anything, yes, of course I've seen this. But, it's not what I want. What I'm looking for is basically a way to either alter the way \texttt works, or a new command that works just ...
4 votes
1 answer
161 views

How to facilitate inclusive writing in french?

When I write in french I often have to use the inclusive form: The students did their homework. Les étudiant·e·s ont fait leurs devoirs. However, it is not easy to get a good-looking example with ...
4 votes
0 answers
132 views

confused about babel australian/british/american hyphenation differences

I'm quite confused about hyphenation differences between the different English variants. I tend to use australian as my default language, but I notice that this often does quite poorly at hyphenation. ...
3 votes
2 answers
455 views

Why does LaTeX neither break at nor hyphenate after a "user kern"?

When using the \kern command for user-defined kerns or the \, shorthand for small non-breaking spaces, this expands to a "userkern" node. At such nodes LaTeX doesn't break the line and the ...
3 votes
1 answer
138 views

Optex: How to repeat hyphen on next line when hyphenating prehyphenated words automatically?

In Czech, many words (e.g. compound adjectives like modro-zelený) contain a hyphen. When these words are hyphenated, the hyphen is supposed to repeat on the next line to distinguish the meaning of ...
1 vote
0 answers
169 views

hyphenation doesn't work with underscores in word "Improper \hyphenation will be flushed"

I'm getting the error "Improper \hyphenation will be flushed" \hyphenation{VC\_-X1\_-Specific\_-SetupProfiling\_-func}. I think thats because of the underscores and the number 1 which is not ...
1 vote
0 answers
54 views

Can polyglossia's option splithyphens be used in English?

Croatian, Czech and Slovak languages in polyglossia have splithyphens as an option. It causes that, when a word with a hyphen is hyphenated at the hyphen, the original hyphen is at the start of the ...
20 votes
3 answers
21k views

Line breaking (or hyphenation?) of references in apalike

This is a problem I encountered some time ago and I never could solve it: how can you achieve correct line-breaking or hyphenation when citing references with the apalike style? Here is an example: \...
52 votes
3 answers
110k views

Overfull hbox - How do I fix this?

I have a line in tex which has a markup (as a part of a line) as follows: \texttt{org.springframework.beans.factory.BeanFactory} This is giving a overfull \hbox warning. How do I fix this? I am ...
3 votes
2 answers
909 views

stop hyphenation for table column

I have this table \documentclass{article} \usepackage{tabulary} \begin{document} \begin{table}[htbp] \begin{tabulary}{\textwidth}{lLLLrr} \hline \textbf{type} & \textbf{author} & \textbf{...
1 vote
1 answer
305 views

Correct way to generate hyphenation patterns with BibLaTeX?

What is the recommended way, to insert text into BibLaTeX databases, in order to enable LaTeX to hyphenate the entries accordingly to avoid overfull lines due to dashes in composed words? I suppose, ...
2 votes
1 answer
279 views

How to use the 'usenglishmax' hyphenation patterns from hyph-utf8? (pdfLaTeX, TeXLive, ubuntu)

I am using pdfLaTeX from TeXLive on Kubuntu 20.04. Suppose that the LaTeX document I am writing is entirely in U.S. English. How can I use the usenglishmax hyphenation patterns (which are mentioned at ...
4 votes
1 answer
892 views

How to prevent word wrap and new lines in table cells?

I have a xltabular table which is filled via script with data, so I don't really know what length the text has that is put into the table cells. Is there a function or method which can just cut off ...
1 vote
1 answer
318 views

Babel Hyphenation

I have a document with many words of the form AAA+BBB that are not correctly broken apart ("hyphenated" without "hyphen") at the end of a line in a multi-column document. I was ...
0 votes
1 answer
367 views

Justify long words

How can I justify text like this by for example automatic hyphenation? (which does not affect the rest of the text? If I use \linebreak it will go to the next line but not justify the prior text. I ...
0 votes
0 answers
77 views

Polyglossia package and hyphenation in second language (not the default)

Is there any global command to fix the problem of second language hyphenation ? The code is: \documentclass[a4paper, 11pt, oneside]{Thesis} \usepackage{fontspec} \setmainfont{CMU Serif} \setsansfont{...
0 votes
2 answers
180 views

How to Prevent Hyphenation for Minipages but Allow It Everywhere Else

Consider the code \documentclass{book} \usepackage{xcolor} %\usepackage[none]{hyphenat} % To prevent hyphenation within entire document. \begin{document} \thispagestyle{empty} \Large \begin{minipage}{...
5 votes
4 answers
9k views

How to fix the warning: No hyphenation patterns were preloaded for (babel) the language `Portuguese'?

I am on Windows using this MikTexversion: pdflatex --version MiKTeX-pdfTeX 2.9.6211 (1.40.17) (MiKTeX 2.9.6210) Copyright (C) 1982 D. E. Knuth, (C) 1996-2016 Han The Thanh TeX is a trademark of the ...
3 votes
0 answers
198 views

Hyphenation at gender stars, gender gaps, etc

Background Some natural languages have recently seen the addition of gender neutrality emphasis. For example, in German, almost all nouns referring to occupations have a grammatically masculine and ...
1 vote
2 answers
357 views

Hyphenation of a language doesn't work in TexLive

I am trying to implement hyphenation patterns for Armenian from hyph-utf8, but polyglossia doesn't recognise it with the message Package polyglossia Warning: No hyphenation patterns were loaded for `...
45 votes
2 answers
57k views

How to add global hyphenation rules?

I know about discretionary hyphens, \-, about \allowbreak, \nobreak as well as \hyphenation{...} and even \tracingparagraphs=1 to write hyphenations into the log-file. Those are OK for family names or ...
1 vote
1 answer
1k views

MiKTeX hyphenation not working on MacOS. (There is no hyphenation.)

I have just got my first Mac and I'm trying to setup Latex on my system. Everything seems to work fine, except that MiKTeX refuses to hyphenate words, and as a result my rows overflows the width of ...
1 vote
1 answer
76 views

How to Allow Hyphenation in the Index While Forbidding It in the Rest of the Document

Consider the code \documentclass{book} \usepackage{imakeidx} \let\cleardoublepage\clearpage \makeindex \usepackage{idxlayout} \usepackage{lipsum} \usepackage[none]{hyphenat} % To prevent hyphenation \...
9 votes
4 answers
2k 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 ...
0 votes
2 answers
52 views

Enable default hyphenation for body of prefixed word

Suppose the word automorphism has correct hyphenation rules, but (anti)automorphism does not (because it contains non letters). Since (anti-) and similar prefixes are common, I’ve written a macro \...
0 votes
0 answers
126 views

Using \setmainlanguage{german} after \usepackage{polyglossia} leads to odd-looking capital umlaut letters when using EB Garamond

Pay attention to the style of the capital umlaut letters “ÄÖÜ” aud “ÄÖÜ” in both cases. Example 1 (with \setmainlanguage{german}): \documentclass[12pt,a4paper]{report} \usepackage{polyglossia} \...
15 votes
1 answer
3k views

How are hyphenation patterns written?

In my miktex folder I checked the hyph-en-us.tex file and found letter patterns written like this: \patterns{ .ach4 .ad4der .af1t ... } What do these dots and numbers mean?
0 votes
0 answers
24 views

hyphenating inline verbatim text at underscore [duplicate]

I can hyphenate inline verbatim text at a ':'; however, I want to hyphenate inline verbatim text at an underscore '_', but I can not find a solution. The MWE is as follows. \documentclass{article} \...
0 votes
0 answers
78 views

Is there a file with hyphenation for long german words?

Is there a file with lots of hyphenation? In my current project folder is no such file. I had to create it my own. I know that there are packages that could do the same but i find it very hard to ...
1 vote
1 answer
143 views

Is it possible to disable hyphenation only for TOC?

I want to keep hyphenation across the document but to be disabled in TOC This code is not working \makeatletter \renewcommand{\@tocrmarg}{2.55em plus1fil} \makeatother Here is the MWE \documentclass[...
2 votes
1 answer
102 views

Hyphenation Issue with ArnoPro and polyglossia

Does anyone understand why hyphenation seems not to work as expected with Arno Pro set as main font? If you try the code with Garamond Premr Pro everything works as expected. Thank you in advance for ...
0 votes
1 answer
59 views

too much hyphenations at the edge of columns

I am using a journal template for preparing my paper. The problem is that it creates a lot of hyphenated words at the edge of the columns in the pdf file. The following figure shows an example column: ...
0 votes
1 answer
198 views

faulty german hyphenation in XeLaTeX

As you see in the picture beneath some words, not only "Gegenüberstellung" the hyphenation is not correct, at the right site of the paper. Unfortunately the different questions relating this ...
0 votes
0 answers
39 views

Kpathsee looking for file "babel-xelatex.cfg"

Im working on compiling a format file using a XeLaTeX engine and It is trying to fetch a file babel-xelatex.cfg which is not found anywhere in MacTeX. It seems that upon initialisation "hyphen....
2 votes
2 answers
92 views

URL in bibliography won't hyphenate causing overfull warning

I've provided a MWE below. I'm trying to hyphenate the URL in bibliography page however solutions given from multiple google searches lead me to nothing. So here I am asking for help. Thank you in ...
2 votes
1 answer
54 views

How to get rid of lone `/` in URL of a citation in Bibliography without deleting it?

How do I group the lone / at the line above? or make it look prettier in any other way without deleting the said /? I've provided a MWE below. If it helps, I use latexmk with -pdflua which basically ...
4 votes
2 answers
197 views

Super Script and Hyphenation Problems

I am using LuaLaTeX compiler with KOMA-scrbook class. I need to define a command with superscript text, but I do not know why LaTeX disable the hyphenation of words with superscript text. \...
0 votes
1 answer
67 views

How to avoid the consecutive hyphenation in a para

i am getting the consecutive hyphen at the line end in a paragraph (more than 5 consecutive hyphen), in a two column format, I already used \doublehyphendemerits=10000, but not solved the issue. how ...

1 2 3
4
5
23