Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [hyphenation]

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

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

Hyphenation not working on newly installed machine [on hold]

I have a fresh installation of Linux and I try to compile some old documents. It appears that the hyphenation does not function the same it did on my old machine. In fact, there is no hyphenation at ...
0
votes
0answers
34 views

MiKTeX not Hyphening English [on hold]

Here a minimal example of a tex file with random English-generated text (note that using Ubuntu 18.04). \documentclass{article} % I get the same output either with or without using babel \usepackage[...
3
votes
1answer
64 views

Colorize syllables for 1st graders learning to read

In Germany and possibly other countries, some first graders learn to read using the so-called "syllable method", where the syllables in every word with two or more syllables are colored differently. ...
0
votes
1answer
33 views

How to fix \useshorthands \defineshorthand usage on bookmark entries?

\documentclass[10pt,a5paper]{abntex2} \usepackage[brazil]{babel} \usepackage{hyphenat} \useshorthands{~}\defineshorthand{~=}{\hyp{}} \begin{document} \chapter{First~=Chapter} \end{document} ...
0
votes
1answer
106 views

MiKTeX not hyphenating (again)

I have the following tex file: \documentclass{article} \begin{document} Cohesive zone model is a promising technique for simulating fracture processes in brittle ice. In this work it is applied to ...
0
votes
1answer
16 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-...
1
vote
1answer
30 views

texttt is not breaking the line at existing hyphens

I've got longer phrases separated with hyphens that I'd like to typeset in typewriter font. I'd like latex to break the lines to avoid them from overflowing: \documentclass{article} \begin{document} ...
5
votes
1answer
106 views

two sets of hyphenation patterns without a newlanguage

While reading hymaster.tex, part of hyacc-cm, we find the following statement: It is important to use version 3.xx of TeX, and a version 3.xx of plain.tex. The critical date is autumn 1989, and ...
2
votes
2answers
58 views

No hyphenation on “section”, “Table”, etc. with Cleveref package

I'd like to remove hyphenation at the end of a line on words like 'section', 'Table', 'Figure' etc. when using the \cref command with the Cleveref package. My current solution is the following: \...
3
votes
2answers
33 views

Hyphenate URLs in paragraphs while maintaining an underline link

Problem: I wish to break or hyphenate links in paragraphs while maintaining an underline link. Minimal Working Example (MWE): \documentclass{article} \usepackage{lipsum} \usepackage[utf8]{inputenc} ...
8
votes
1answer
73 views

Why is it useful to change \hyphenchar?

In il2code.tex there is such text: %% Alternative \hyphenchar ("je-li" is no "je\hyphenchar li"). \chardef\extrahyphenchar=156 \def\extrahyphens{% \hyphenchar\tenrm=\extrahyphenchar \hyphenchar\...
0
votes
0answers
52 views

Hyphenation of bold font

I am getting unexpected hyphenation behavior when using bold font. Below is the output using normal font. Below is when using bold font. Note that font is not justified on the right side. Source ...
0
votes
0answers
27 views

Prevent bad hyphenation and force word wrap in specific cases

I have browsed multiple other entries related to hyphenation and none seemed to actually present the same situation. I have an utterly long document (my PhD thesis) in the body of which I use a ...
2
votes
1answer
25 views

Interactively checking default hyphenations

I'm using this programme \let\\\showhyphens \documentclass{article} \usepackage[british]{babel} \begin{document} to check default hyphenations interactively by typing *\\{necessarily} &c. Is ...
0
votes
0answers
42 views

How to allocate more space inside a cell in a table? [duplicate]

I'd like to create an evenly distributed two columns table on a page. In order to have the vertical division centered, I used tabularx: \begin{table}[H] \begin{tabularx}{\textwidth}{X X} a & b \\ ...
0
votes
1answer
37 views

Increasing the number of allowed hyphenation exceptions in XeLaTeX?

I'm trying to load a huge hyphenation exception dictionary in XeLaTeX, and I'm greeted with the following error message: ! TeX capacity exceeded, sorry [exception dictionary=8191]. Is it possible to ...
2
votes
0answers
49 views

Hyphenation exception syntax for LuaLaTeX

I want to hyphenate some German words. As an example, for the word Erb-b2-Familie, I want the first hyphen sign to be non-breakable the second hyphen sign to be breakable the rest of the word (...
0
votes
1answer
57 views

Can I tell Latex to hyphenate first, only then try to stretch?

Earlier today on Why my document is not hyphenating on words starting with upper case letter? (I am not using \uchyph=0) I figured out that increasing the value of \emergencystretch too much will ...
10
votes
1answer
238 views

Why is my document is not hyphenating on words starting with upper case letter? (I am not using \uchyph=0)

I recently noticed on my thesis (template here) that words starting with upper case letter are not hyphenating. Then, I researched and found about the usage of \uchyph=0 How do I prevent TeX from ...
2
votes
1answer
37 views

Getting custom hyphenation patterns to work in xelatex

I have a file mylanguage.tex that contains hyphenation patterns for mylanguage: \newlanguage\mylanguage \begingroup \language\mylanguage \patterns{ 1b } \endgroup And a test file foo.tex: \...
0
votes
0answers
27 views

The easiest way of using customized hyphenation patterns in xelatex+polyglossia

I would like to use xelatex+polyglossia with my own hyphenation patterns. I managed to load the patterns by adding a line yhgreek yhpatterns.tex to /usr/local/texlive/2019/texmf-var/tex/generic/...
2
votes
1answer
43 views

Hyphenation exception list items with underscore?

As a followup to this question, I'd like to ask: how to properly add hyphenation exceptions that contain underscores? NB: Previous questions (and I found a few) settled with somehow fixing the ...
2
votes
1answer
113 views

Is there a way to suppress the hyphen when using hyphenat with htt option?

I am using the hyphenat package with the htt option. The whole thing is used to document an application programming interface (API). Consider the following MWE: \documentclass{minimal} \usepackage[...
3
votes
1answer
132 views

Question about exercise 6.6 from TeXbook

In the answer to exercise 6.6 it is said: TeX will try to hyphenate before \dash But the folowing example shows that it will not. \def\extraspace{\nobreak \hskip 0pt plus .15em\relax} \def\dash{\...
1
vote
1answer
42 views

Hyphenating problem when using ebgaramond

Currently I am facing a problem of hyphenation when i used the package \usepackage{ebgaramond}, but when i remove this package (i.e \usepackage{ebgaramond}) hyphenation goes fine, but i need the text ...
2
votes
1answer
37 views

How can I force the hyphenation for a short-first-syllable in LaTeX?

Why LaTeX does not hyphenate "esco" in a way I explicitely set (i.e. "e-sco")? I noticed this behaviour persists for any single-letter initial syllable. Here is a MWE that forces hyphenation by ...
2
votes
0answers
50 views

Is it tolerable to force hyphenate English one-syllable word in small layouts?

I already know English language does not allow hyphenatation of one-syllable words, that is why I am not asking this question on english.sx. But I am facing a typesetting task (humanities) with a ...
1
vote
1answer
70 views

Language settings in bibliography

Since hyphenation will work differently for different languages, I need to include information in my .bib file about the language of certain entries (e.g. title, author, publisher), if they are not in ...
1
vote
1answer
29 views

Wrapping text in column headers while avoiding weird hyphenation

\begin{table}[h] \begin{center} \begin{tabular}{lcccc} \hline Model & \multicolumn{1}{m{2.5cm}}{Something Before XYZ} & \multicolumn{1}{m{2.5cm}}{Something After XYZ} &...
5
votes
1answer
62 views

luatex code for checking/avoiding hyphen at page break

There are cool things made possible by Lua, e.g. Paragraph callback to help with widows/orphans hand tuning . In the final version, I often do "by hand" checking that last line before page-break is ...
2
votes
1answer
34 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
80 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
24 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 ...
2
votes
1answer
70 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
77 views

Please, are there solutions for the problem of hyphenating words

Please, there are solutions to the problem of crossword words
3
votes
0answers
40 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 ...
2
votes
1answer
44 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
183 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
263 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
88 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
50 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
85 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
46 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
69 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
154 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
39 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
53 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
66 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
38 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
832 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 ...