Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [hyphenation]

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

1
vote
0answers
26 views

Hyphen not done - how to fix

I have the following text \documentclass[a4paper,11pt]{article} \usepackage[a4paper,includeheadfoot,margin=2.54cm]{geometry} % for margins on a A4paper \usepackage{fontspec} \usepackage[english, ...
3
votes
0answers
44 views

Why aren't these hyphenation \patterns applied in lualatex?

I'm compiling the following code in lualatex, and looking at the console log for the output of \showhyphens: \language=99 \lefthyphenmin=1 \righthyphenmin=1 %\patterns{a9b ba} % L1: ba-ba-ba-ba-ba-...
1
vote
2answers
74 views

How to convert all hyphenation patterns from Unicode to T1 in lualatex?

I'm trying to use lualatex with old, 8-bit, non-Unicode fonts: \documentclass[a4paper]{article} \usepackage[utf8]{luainputenc} \usepackage{t1enc} \usepackage{lmodern} \def\myhelvetica{\fontfamily{phv}...
2
votes
1answer
37 views

Hyphenation in LINK text

I use, in agreement with the post of SE, the command \link. \documentclass[10pt]{article} \usepackage{bookmark} \usepackage[table]{xcolor} \usepackage{tabularx} \newcommand{\link}[1]{% {% ...
0
votes
1answer
17 views

Hyphenation doesn't work if the word is inside brackets and bold

So, the hyphenation apparently doesn't work, if the word is inside of round brackets AND in bold font. This is the code: \documentclass[12pt,ngerman]{scrartcl} \usepackage{babel} \begin{document} ...
3
votes
2answers
63 views

Hyphenation with Babel and Polyglossia

I've more or less the same content, compiled with babel and polyglossia: \documentclass{article} \usepackage{fontspec} \usepackage[italian]{babel} \babelfont{rm}[Ligatures=TeX,Numbers=OldStyle]{...
2
votes
0answers
32 views

\addfontfeature resets \prehyphenchar and \posthyphenchar

This question is similar, but applies only to XETEX. In LuaTEX, \prehyphenchar and \posthyphenchar supposedly affect the current language: All languages start out with \prehyphenchar=`\-, \...
2
votes
2answers
53 views

Word wrapping text only when the hbox is overfull

I am using pandoc to process an markdown file that is causing me some issues with regard to in-line code blocks. In some cases I need to be able to have a long string without any punctuation or ...
0
votes
0answers
32 views

Stretching the text (in particular in math mode) to fit the page size in a rough transfer (using “\\”)

Sometimes the problem arises when the formula for the standard LaTeX facilities is torn wrong. For example, he writes x \in on one line and [a;b] on the next. So I have to do it \\ to make transfers. ...
0
votes
1answer
60 views

How to prevent word wrapping with 2 hyphens?

I have the following markdown file that demonstrates the issue (at least in my environment): --- title: TEST subtitle: Minimum Working Example version: 1.0 rev0 document: TEST-MWE date: 27 December ...
0
votes
0answers
27 views

Why can \def\magyarOptions{defaults=hu-min} break the behavior of magyar babel?

I am writing a document in Hungarian which includes the circle symbol for temperature. Later I have to convert the document to docx so I can only use a small subset of latex, for example, without the ...
1
vote
1answer
24 views

Software Documentation Dot-Operator/Period Hyphenation

I'm still new-ish to latex, and I'm trying to document some software using the tool. I'm referencing local terms that are long and contain periods/dot-operators. I know how/why Latex doesn't like to ...
1
vote
1answer
38 views

Long chapter title with graphics: indentation and no hyphenation

I was already helped to obtain the chapter title formatting that I wanted in Chapter with graphical formatting Now I have the problem of chapters with a long title, whereby I get with this code \...
2
votes
1answer
30 views

Apply hyphenation to words containing dashes only

We render PDF Documents using latex in a german speaking medical environment. Since the built-in hyphenation mechanisms of latex result in word-breaks that seem awkward to the users, we chose to ...
0
votes
2answers
62 views

Overfull hbox in a section title

Every now and then I get this error and I don't know how to solve it. From what I understand reading other posts, it's because LaTeX doesn't know how to hyphenate some sentences and finds no good way ...
1
vote
1answer
71 views

In Brazilian Portuguese, how to get repeat hyphens when hyphenating already hyphenated words with Polyglossia?

In Portuguese, we are supposed to add an hyphen at the beginning of the following line when hyphenation happened where there was already an hyphen. This is quite common because we use hyphens for ...
1
vote
0answers
42 views

Change hyphenation rules in polyglossia

I found that there are other hyphenation rules in my language package (https://ctan.org/tex-archive/language/hyphenation/ukrhyph). How can I activate not default hyphen rules? By default Ukrainian ...
2
votes
2answers
35 views

Different margins with different length text in tikz node with align=center

Why are the margins different in the two nodes in this code? I would expect (and like) them to be the same. Secondly, (and possibly related), why is the text hyphenated? This isn't normally desired ...
0
votes
0answers
33 views

hyphenation TeX issue “Direc­tory language/romanian/RomanianTeX”

I need the syllables of a text in Romanian. phpSyllable works very well (the php part) with an example here: http://divizia.eu/vlad/demo.php Unfortunately the rules for Romanian are broken. These are ...
2
votes
1answer
82 views

T1 breaks hyphenation

I use the "report" document class for a document written in swedish (that's got åäöÅÄÖ). I also use the babel-package for swedish. It works as supposed, but now LaTeX has troubles hyphenating some of ...
-1
votes
0answers
47 views

Hyphenation for package polski

I've tried to solve that issue with answers I found in the web but failed to succeed. How do I enable (or get any) hyphenation for that package? I'm constantly getting an error: Package polski Error: ...
0
votes
1answer
31 views

Biblatex - prohibit hyphenation for a specific word

I am using a biblatex-gost package. Here is a MWE: \documentclass[12pt,a4paper]{article} \begin{filecontents}{\jobname.bib} @book{halanay, langid = {english}, title = {Differential Equations, ...
6
votes
2answers
131 views

Defining hyphen rules for word parts

One can define optimal hyphenation of a single word in the preamble of a LaTeX document that will be used if line length is awkward. \hyphenation{biblio-philia} % Just an example What if I wanted to ...
2
votes
2answers
59 views

How to justify text after no hyphenation?

For write a text without hyphenation I use \package[none]{hyphenation}. When I apply this package, the text does not adjust to the page margins. What command I should apply for justify text?
1
vote
0answers
186 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
0answers
41 views

Compound word hyphenation problem (bug?) with LuaTeX 1.07.0 (TeX Live 2018)

As stated in this answer from 2014 and this one from 2016, LuaTeX should allow arbitrary hyphenation points for compound words already separated by hyphens through: \hyphenation{short=tem-pered} I'm ...
6
votes
1answer
42 views

How can I completely suppress hyphenation that starts in a column (or page) and ends in a second one?

In the example above, the hyphenation of the word 'deterministic' starts in one column and ends in the next one. How can I suppress this behavior altogether? NOTE: I know that \mbox{<text>} ...
3
votes
1answer
36 views

Word wrap in longtable not working

I have the following table, where the IP addresses are supposed to be hyphenated after every ":". They can't have dashes though. Why does "" not split the word like it shoud with the babel package? In ...
1
vote
1answer
53 views

French hyphenation in plain TeX - plain TeX for french

I use plain TeX and work in french, how can I load the correct hyphenation patterns? How can I modify INITEX in order to get a stable "french plain TeX"? I would prefer not to go to LaTeX for that and ...
1
vote
1answer
37 views

Hyphenation with greek words in xelatex

I am new to latex and I am writing a document in greek. My problem is that If an english word does not fit in the line it breaks, but a greek word does not break and it looks bad. I did a little ...
2
votes
0answers
60 views

Sanskrit Hyphenation for Devanāgarī and Transliteration in the same Document

Is there a way of switching between Sanskrit typeset in Devanāgarī and IAST, and keeping the automatic hyphenation? See the following examples: \documentclass{memoir} \usepackage{polyglossia} \...
13
votes
2answers
270 views

ſ (long s) and hyphenation

I'm using UTF-8 so it is – if one is using the right font – no problem to implement the different types of s in older German texts (s, ſ, ß). Unfortunately the hyphenation breaks because LaTeX does ...
4
votes
1answer
85 views

Change language on a per field basis, part 2: Fonts, case transformation and sorting

A similar question to Change language on a per field basis, but: (1) I use different fonts for Latin and Greek, and (2) I use automatic sentence case for titles. Languages of the same font work fine ...
2
votes
1answer
57 views

LaTeX won't hyphenate a word in sectioning header

I have a long subsection title, and it is resulting in the warning Overfull \hbox because LaTeX does not hyphenate the word "recherche" : \documentclass[12pt]{article} \usepackage[french]{babel} \...
3
votes
1answer
114 views

Accurate control with \setupalign[hanging] for optical margins in ConTeXt?

How could I get more control handling the "hanging" option for hyphenation with optical margins provided by \setupalign[hanging]? That is to say, I am not worried about protrusion. The default "hz" ...
0
votes
1answer
113 views

Dictionary and hyphenation not working in TeXstudio

I have Ubuntu 14.04 and I've just updated my TeXstudio to version 2.12.10. While the previous version (around 2.8) used to check spelling and did the hyphenation correctly, now it does not work at ...
0
votes
1answer
52 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 ...
2
votes
0answers
19 views

xetex – Text goes beyond the margin

I am using geometry to set my margins, polyglossia for hyphenation patterns and xetex for compiling. Here is my code \documentclass[12pt]{extarticle} \usepackage[xetex]{geometry} \geometry{ ...
0
votes
1answer
79 views

How to avoid hyphenation of authors names

In my output file authors names are split and hyphenated across lines. I use biblatex and biber. How can I avoid that?
0
votes
1answer
39 views

breaking lines without hyphenation

I have a huge table (tabularx) which has a few columns which contain a lot of text. One of these columns contains long text but should not include a hyphen although it should break. for example: \...
1
vote
0answers
34 views

Prevent line-breaking inside acronym which contains a hyphen (“dash”) character [duplicate]

How can I prevent line-breaking of an acronym which contains a hyphen? I have the acronym "AP-CMOS" all over my document, and it's been broken in several places into "AP-" and "CMOS". The same occurs ...
0
votes
0answers
60 views

Avoid hyphenation in title

My university's thesis template results in hyphenation in the theses' titles which does not look well. Here is a link to the template: Thesis template The document class is \documentclass[12pt,...
1
vote
0answers
40 views

How can I get a list of all words which overflow to margin

I made a document and when I compile it, I get in the final pdf multiple words which overflow to margin, without hyphenation. I plan to manually set their hyphenation with the command \hyphenation{...
1
vote
1answer
57 views

Hyphenation with Librebaskerville

I installed librebaskerville package and compiled a long text. I love the look of it, but at times words do not hyphen correctly, and a word gets out of the frame. It is hard to explain it, so I took ...
0
votes
0answers
26 views

How to hyphenate word including a dash in list of references?

I have a concatenated word that contains a dash in the title of a biblatex entry. The problem is that I cannot add the correct hyphenations manually to the entry since Zotero seems not to allow for ...
2
votes
1answer
512 views

How to fully justify the whole document?

I want to remove the hyphenation but I don't want to leave spaces in the end of the line due to the removal of the first letters of the last word. So, I want to make variable spaces between the words ...
6
votes
1answer
180 views

British hyphenation in plain LuaTeX

In plain LuaTeX, how do I get British rather than American hyphenation? \input eplain \beginpackages \usepackage{showhyphens} \endpackages In plain TeX, how do I get British rather than American ...
1
vote
1answer
51 views

Custom hyphenation for words containing accented letters with LuaTeX

Prenote: I know, that there are already some questions regarding the hyphenation of words containing accented letters with LuaTeX. However, I couldn't find one, that really targets my problem. Using ...
2
votes
2answers
45 views

Hyphenation of camelCase inside an \ifthenelse while using custom hyphenation command

While writing software documentation, the need arose for a command that automatically hyphenates camelCase words at uppercase letters, e.g. camel-Case. Furthermore, these camelCase words are typeset ...
1
vote
0answers
143 views

Hyphenation issue with pdfLatex and Greek

Ok so, we have the following MWE: \documentclass[a4paper,12pt,final]{memoir} \usepackage[T1,LGR]{fontenc} \usepackage[utf8]{inputenx} \usepackage[english,greek]{babel} % Fonts \usepackage[p,osf]{...