Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
1answer
39 views

Allow hyphenation of dashed words & if hyphenated on the dash, add another dash in next line

I have two requirements. I can achieve each one of these two requirements separately but I have not been able to combine them. First, I need to allow the hyphenation of dashed words (eg: "entendendo-...
4
votes
2answers
46 views

Use localized quotation marks, hyphenation and ponctuation in BibLaTeX using langid for entries title

What I get: A. Author, « Some article title ? ». Whatever Journal. B. Buthor, « Un article ? ». Another Journal. What I would like: A. Author, “Some article title?”. Whatever Journal. ...
0
votes
0answers
29 views

How to use \discretionary inside soul's \hl?

\documentclass{article} \usepackage{soul} \usepackage{color} \begin{document} Some \hl{te\discretionary{-}{-}{-}xt}. \end{document} The above does not compile due to Missing { inserted, Improper ...
2
votes
2answers
36 views

Overfull lines in an enumerated-style paragraph

The last item in my enumerate in my itemize list oversteps the margin. I have tried bounding it in {} but didn't work. My code is as follows: \begin{itemize} \item Hver uafhængig sløjfe tildeles ...
3
votes
1answer
105 views

Latin hyphenation and macrons (in ConTeXt, but I believe also in LaTeX)

It seems that there are some problems for (Con)TeX(t) when hyphenating macronized words. When I inspect the ConTeXt language-file for Latin (http://www.pragma-ade.nl/general/manuals/languages-mkiv.pdf)...
1
vote
1answer
61 views

Why such odd line breaks in a paper

This may not be a question appropriate to this forum, as I don't have any LaTex code to post. If so, culpa mea! My question: I am seeing some, in my opinion, very awkward hyphenating words for line ...
0
votes
0answers
24 views

No hyphenation for ngerman.sty with plain PDFTeX

Recently I installed MiKTeX and TeXnicCenter on a Windows-10 PC. The output profiles for TeX => DVI, TeX => PDF etc. were copied from the respective LaTeX profiles with "latex" replaced by "...
3
votes
2answers
36 views

\hyphenrules does not break words

Following the code used both here and here, using \hyphenrules should inform polyglossia about breaking points within a word. The following code does not break the word in question. Why not? What can ...
0
votes
0answers
14 views

How to cope with hbox overfull caused by hyphenation problems?

I'm writing my thesis using a custom font instead of the default CMU Sans-serif. I happen to find that, with this font, my lines tend to be more likely to suffer hyphenation problems (or maybe it's ...
10
votes
1answer
884 views

Why doesn't TeX hyphenate a really long word for which I've indicated some permissible hyphenation points?

Based on Automatic long word breaking in whole document I constructed an example of hyphenating a long word: \documentclass{report} \usepackage[english]{babel} \begin{document} \selectlanguage{...
0
votes
0answers
32 views

How can you show the syllable breakdown in a final document?

I would like to recreate something like the following image from Lives of the Presidents in Words of One Syllable. While most of the text uses monosyllabic words, the words which had more than one ...
2
votes
1answer
20 views

Linebreak composed term with Registered sign and slash

Consider this example: \documentclass{scrreprt} \newcommand{\smlnk}{Simulink\textsuperscript{\textregistered}}% \newcommand{\mtlb}{MATLAB\textsuperscript{\textregistered}}% \newcommand{\...
0
votes
1answer
20 views

Listings Package causes normal text to hyphenate at forward slashes

MWE: \documentclass{article} \usepackage{listings} \begin{document} IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII hardware/software \end{document} This results in this ...
2
votes
1answer
52 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
46 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
83 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
50 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
22 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
81 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
44 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
63 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
35 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
66 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
32 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
26 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
46 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
34 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
143 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
78 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
1answer
57 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
45 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 ...
2
votes
1answer
84 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 ...
0
votes
1answer
32 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
141 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
94 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
262 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
45 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
50 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
60 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
71 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
59 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
76 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} \...
14
votes
2answers
307 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
91 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
120 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
165 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
67 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
21 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
91 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?