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.

2
votes
1answer
20 views

How to hyphenate in a \synt{} with the syntax package?

Consider the following example: \documentclass[draft]{article} \usepackage{syntax} \begin{document} blah blah blah blah blah blah blah blah blah blah blah blah blah \synt{blahblah-blahblah} blah. ...
3
votes
1answer
53 views

How to prevent \raggedright from removing left-indent of \parshape?

Output with \raggedright looks good when greater indentation is specified for \parshape, but \raggedright eats up smaller indentation. If a word doesn't fit on a line, is there a way to prevent ...
0
votes
0answers
18 views

\lccode`\'=39 breaks hyphenation rules

I tried to use \lccode`\'=39 in preamble in order to correctly hyphenate words with apostrophe, but it produced an infrequent but annoying side effect: some words left the single last letter (no ...
0
votes
1answer
38 views

Custom hyphenation for a different language

I load babel and specify the default language, but adding words of that language to \hyphenation{} command results in a number of errors: Improper \hyphenation will be flushed. \hyphenation{в ...
0
votes
0answers
67 views

Please, are there solutions for the problem of hyphenating words

Please, there are solutions to the problem of crossword words
3
votes
0answers
32 views

Hyphenation for transliterated Greek

Is there a hyphenation package available for Greek text transliterated into the Roman alphabet? I'm creating a document that contains many (i.e. several hundred) Greek place names, which are ...
1
vote
1answer
35 views

Hyphenate word with detokenized underscores

I want to write clean underscores without backslashes and hyphenate words by underscores. I tried to use underscore package, but it doesn't work with clean underscores and also breaks ...
1
vote
1answer
168 views

Why no hyphenation of “kön-nen” in German?

I have a LaTeX document that has a sentence containing the German word "können" (which can be hyphenated perfectly as "kön-nen" IMHO). An ugly paragraph is output, because the word is not hyphenated ...
1
vote
2answers
71 views

What is the difference between "= and \hyp{}?

Sometimes I see questions talking about using "=, others just use \hyp{}. Are they the same thing? For example, on these questions you find both "= and \hyp use: Hyphenation of words containing ...
0
votes
1answer
61 views

How to create an alternative to shortcut "= or \hyp{}?

After this question answer How to use the standard - (hyphen) as the \hyp{} command from the hyphenat package?, I decided to not use that hack. Then, I am looking for an alternative to that. On my ...
0
votes
0answers
27 views

How to write the hyphen substitution of - by \hyp on my preamble?

When I integrated this How to use the standard - (hyphen) as the \hyp{} command from the hyphenat package? into my main document, I got errors about hyphen usage on translations packages: Redoing ...
0
votes
1answer
38 views

How to use the standard - (hyphen) as the \hyp{} command from the hyphenat package?

I found this answer on http://www.oipapio.com/question-79176 \documentclass[10pt,a5paper,twoside]{article} \usepackage{hyphenat} \cs_new:Npn \hyphenfix_emdash:c {---} \cs_new:Npn \hyphenfix_endash:c ...
1
vote
1answer
43 views

Prevent hyphenation in `type-II` with LuaLaTeX

I want to prevent the hyphenation of type-II at the dash. I tried type\nobreakdash-II and mbox as workaround, but this is not very readable in the code and I want to separate layout information ...
0
votes
0answers
29 views

Problem with hyphenation in Ubuntu ( No hyphenation patterns were preloaded for french babel)

I have a problem when compiling a latex document in Ubuntu (18.04). I am using TeXmaker et MikTeX. The message is Package babel Warning: No hyphenation patterns were preloaded for (babel) the ...
6
votes
2answers
139 views

Disable hyphenation for an entire paragraph

How can I disable hyphenation for an entire paragraph without changing the hyphenation of its words throughout the rest of the text? And of course, maintaining the paragraph alignment! Thanks, in ...
2
votes
2answers
25 views

Remove hyphens from chapter, section titles

How do I remove hyphenating from all the \part{}, \chapter{}, \section{}, etc., titles of a document?
0
votes
1answer
42 views

newline begins with dash

Consider this example: \documentclass{report} %\hyphenation{ENCODE} \begin{document} All data used for this study are analysed with a different release of ENCODE \textendash\ the collection of ...
1
vote
1answer
23 views

unable to get hyphenation patterns for german on fedora

I run the following file with pdflatex \documentclass[a4paper,11pt]{article} \usepackage[german]{babel} \begin{document} Tach auch \end{document} and got the errors: This is pdfTeX, Version 3....
0
votes
1answer
28 views

protect hyphenated word from breaking

Consider this example: \documentclass{report} \begin{document} bbbb bbbb bbbb ddf hdfhdf hdfhfd hdfhdf ddfgdfg dgdfg ert we Cabibbo-Kobayashi-Maskawa matrix is equal to 1 \end{document} The output ...
10
votes
2answers
781 views

XeLaTeX and pdfLaTeX ignore \hyphenation

I'm trying to get all hyphenations that the LaTeX-algorithm gives out. So I'm trying this: echo "\\\documentclass{standalone} \\\hyphenation{Py-ra-mi-de} \\\showhyphens{Pyramide}" | xelatex This ...
2
votes
1answer
28 views

Allow words containing forwards slashes to be broken over lines at the point where the forward slash occurs

Does anyone know how to use the hyphenat package in pdflatex to create an automatic hyphenation rule whereby forwards slashes may be used to break words over lines, or as hyphenation points? I've read ...
1
vote
2answers
46 views

How can I hyphenate words with dots in a \texttt environment in LaTeX?

There is a bunch of discussions online how to enable (or disable) hyphenation in \texttt environments. I found both the options \usepackage[htt]{hyphenat} and \DeclareTextFontCommand{\mytexttt}{\...
3
votes
1answer
58 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
50 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
41 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
38 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
116 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
70 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
28 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
43 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
19 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
895 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
35 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
23 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{\...
3
votes
1answer
30 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
55 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
47 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
90 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
61 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
30 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
101 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
50 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
85 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
36 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
71 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
36 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
30 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
53 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
38 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 ...
1
vote
2answers
300 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 ...