Questions tagged [hyphenation]
{hyphenation} is about controlling hyphenation in (La)TeX documents.
992
questions
3
votes
0
answers
93
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 ...
1
vote
1
answer
22
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 ...
3
votes
2
answers
76
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
0
answers
31
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
34
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
45
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
111
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
55
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
390
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
57
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
33
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
37
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 ...
0
votes
0
answers
108
views
Hyphenate compound word: What items should go into the horizontal list?
TeX won’t hyphenate a “word” if the word already contains a “discretionary”. As a consequence, compound words such as integro-differential and Rajamahendravaram--Visakhapatnam will not be hyphenated, ...
3
votes
2
answers
62
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
85
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, ...
1
vote
1
answer
68
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
112
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
75
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
53
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
40
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
55
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}{...
1
vote
0
answers
67
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
103
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 `...
0
votes
1
answer
67
views
Install custom hyphenation
I am trying to install custom hyphenation file.
Background info
Friend of mine already made a hyphenation file for my language and sent it to tug. Will it pass codereview sooner and when it will be ...
1
vote
1
answer
48
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
\...
0
votes
0
answers
23
views
babelhyphen{nobreak} producing a space, not a non-breaking hyphen
I have a text in which the Dutch place name 's-Hertogenbosch comes up many times, and I don't want a line break at the hyphen. The official solution is to type:
's\babelhyphen{nobreak}Hertogenbosch, ...
0
votes
0
answers
20
views
hyphenation omitting from a whole text [duplicate]
I was wondering if there is any command to omit hyphenation throughout a document. As seen in the attached picture, and there are a lot of these in my compiled thesis, which is not quite desirable, is ...
0
votes
2
answers
25
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
39
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}
\...
0
votes
0
answers
22
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
50
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
75
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
79
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
44
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
79
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
32
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
1
answer
49
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 ...
2
votes
2
answers
40
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 ...
4
votes
2
answers
132
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
48
views
\hyphenation command not wokring, but manual hyphenation works (XeLaTeX) (Minimal example provided)
I searched the internet to solve my problem and tried several hints and tips, but nothing worked.
Manual hyphenation is working, but within the hyphenation command not.
(I don't want to hyphenate ...
4
votes
2
answers
462
views
How to redefine a forward-slash symbol?
I'm trying to do this:
\documentclass{article}
\begin{document}
\begin{minipage}{2in}
\ttfamily
Hello/Hello/Hello/Hello/Hello/Hello
\end{minipage}
\end{document}
The text is not being hyphenated (...
1
vote
0
answers
37
views
How to redefine forward slash? [duplicate]
I'm trying to do this:
\documentclass{article}
\begin{document}
\begin{minipage}{2in}
\ttfamily
https://www.stackoverflow.com/questions/ask
\end{minipage}
\end{document}
The URL is not being ...
0
votes
0
answers
34
views
Disabling hyphen in words with underscores
I have words with underscores in my document. At the moment, those words are hyphenated and I'm almost happy with the result. But I would prefer these words to wrap to the next line without a hyphen. ...
1
vote
0
answers
58
views
Words are not automatically breaking into two lines with "-" [closed]
I am using this (LaTeX2e Proceedings Templates, http://www.icsoc.org/) but some words are not breaking down into two parts with "-" through out the paper. For example, see attached image.
...
1
vote
1
answer
75
views
Preventing a line break at the end of a sentence
If I want to prevent a line break between two words, then I insert a ~ like this:
Lorem~impsum.
But what if I want to prevent a line break between the end of a sentence and the first word of the new ...
2
votes
1
answer
42
views
How to find out if a break occurred at a manually inserted \discretionary?
How to find out if a break occurred at a manually inserted \discretionary?
I can't do it by assignments within the arguments of \discretionary—assignments are finished before decision about breaking ...
0
votes
0
answers
101
views
Break url in bibliography citation
I found similar issues around, but none of them fitting to my situation.
I would like to be able to decide WHERE to break an url in my bibliography.
In the examples below, the automatic breaking is ...
0
votes
0
answers
31
views
How to define command to replace spaces with hyphens in long form of acronym
My goal is to have two commands making use of the acronym package's commands \acl and \aclp, but have the spaces contained within the long form of the acronyms be replaced with hyphens.
My current ...
0
votes
1
answer
25
views
Add space after period when underfull hboxes occur?
Consider this MWE:
\documentclass[10pt,journal,compsoc]{IEEEtran}
\hyphenation{veryverylongword}
\begin{document}
\textbf{The word word word word word.} The word-veryverylongword word word word word.
\...
0
votes
1
answer
52
views
hyphenate even when it creates overfull hboxes
Is there a way to force hyphenation even when it would generate overfull hboxes?
I read here (texfaq.org) that when tex can't find a resolution that doesn't overfill the line, it just gives up with a ...