Questions tagged [hyphenation]

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

83 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
19
votes
0answers
336 views

What explains this discrepancy between LuaTeX and other engines?

I answered a question about hyphenating already-hyphenated words (like “already-hyphenated”, or “often-hungry”), and this came up. Consider the following input file (uncomment the first three lines if ...
9
votes
0answers
191 views

Correcting wrong choice of character variant from a stylistic set

I'm typesetting a document in German blackletter with XeLaTeX and ran across a peculiar — for want of a better word — error: The hyphenation in itself is okay at that position. However, German ...
6
votes
0answers
141 views

How to change hyphenation codes with the change of \language in LuaTeX?

For a word to be "hyphenatable", all its characters must have \lccode>0. With \savinghyphcodes=1 in e-TeX all characters are associated with hyphenation codes by means of a special table (this is the ...
5
votes
0answers
132 views

How do I get the list of all broken-over-two-lines words in my document?

The question is quite simple. When I compile my latex document, the pdf will contain words that are broken over two lines (hyphenated). Is there a way to know all the words that my compiler breaks ...
5
votes
0answers
191 views

Which languages defined in babel repeat hyphen at start of line after hyphenation?

Babel (v3.9k) states that: \babelhyphen{repeat} inserts a hard hyphen which is repeated at the beginning of the next line, as done in languages like Polish, Portuguese and Spanish. I checked ...
4
votes
0answers
278 views

Discretionary hyphens don't work in paragraphed footnotes, bug?

I am getting the impression that discretionary hyphens don't work at all in paragraphed footnotes, not really depending on which package is used for the footnotes. I've painfully experienced it with ...
4
votes
0answers
193 views

hairspace + hyphen as hyphen char with Fontspec

I would like to use for hyphen character the combination: hairspace + hyphen, in order to clearly but discreetly distinguish hyphenation from division. The traditionnal way (using another character, ...
3
votes
0answers
43 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 ...
3
votes
0answers
52 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-...
3
votes
0answers
221 views

How to enter dashes in \hyphenation?

I have an extra file for all my hyphenations. Alas, the command \hyphenation does not understand the = notation for "dash that stays after hyphenation here". Is there any way to get \hyphenation to ...
3
votes
0answers
519 views

Line breaking with adjustment but no hyphenation

I have the following situation: very long function names that are put into text with a macro \fun{this-is-a-very-long-fuction-name}. This macro includes indexing, but then finally puts the function ...
3
votes
0answers
99 views

Prevent linebreak if word begins with hyphen

Words beginning with hyphens such as suffixes in linguistic texts can break right after the hyphen which is undesirable. To prevent this I know I could do \exhyphenpenalty=10000 or what the answers ...
3
votes
0answers
608 views

Override hyphenation settings in caption

As tomorrow is April 1, I'd like to send a somewhat special interim version of my thesis to my supervisor. In the TeXbook, there is a chapter that is set up to make TeX fall in love with hyphenation. ...
2
votes
0answers
57 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 (...
2
votes
0answers
72 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
0answers
69 views

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

EDIT 2019/05/07: In LuaTeX 1.10.0 included in TeX Live 2019 compound word hyphenation works as expected. As stated in this answer from 2014 and this one from 2016, LuaTeX should allow arbitrary ...
2
votes
0answers
257 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} \...
2
votes
0answers
37 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{ ...
2
votes
0answers
59 views

Hyphenation of words preceded by a symbol

I need to emphasize certain words or groups of words using bold and putting a symbol before them. Here is a minimum working example, where I defined the command \term as follows (here I use a bullet): ...
2
votes
0answers
74 views

Hyphenation in New Environment

I have defined a new environment for my bibliography (long story short, I have to submit soon and do not have the time for bibdesk managing etc.): \newenvironment{literatur}{% \parskip6pt \...
2
votes
0answers
93 views

Line break at hyphen-initial words in dictionary

I am writing a double-columned dictionary using a quite complex style-file and an external input-file. However, in order to illustrate my problem, I simplified my template, yet incorporated my entire ...
2
votes
0answers
165 views

Ragged2e preventing proper hyphenation of long chemical names

In my thesis I use chemical names containing dashes and numbers in section titles. Additionally, each compound is numbered by using the \cmpd{} command from chemnum-package. To prevent the label from ...
2
votes
0answers
204 views

brokenpenalty for two sided documents

A hyphenated word where one part is on the left and the other part on the right page of a doubled sided document isn't so bad and sometimes necessary to prevent ugly page breaks. However, I would ...
2
votes
0answers
89 views

How to define command like "| (german) for greek language? --: allowhyphens, noligature, minimal space

For my polutonikogreek documents I want to use commands/shortcuts like the "| of germanb.ldf, which is \declare@shorthand{german}{"|}{\textormath{\penalty\@M\discretionary{-}{}{\kern.03em}\...
2
votes
0answers
82 views

ConTeXt: Disable Hyphenation, Enable Indentation, and Enable Sorting for Bibliography Entries (Items in List of Publications)

Enable Indentation I've tried: \setuplist [pubs][ before={\indentation}, ] and also: \setuppublications[ indentnext={yes}, indenting={yes}, ] Unfortunately, no effect. I would like both the ...
2
votes
0answers
959 views

Package polyglossia Warning: No hyphenation patterns were loaded for `English'

I'm running Arch Linux and installed texlive 2013 via tlmgr. My file is this: \documentclass{paper} \usepackage{lipsum} \usepackage{xltxtra} \usepackage{polyglossia} \setmainlanguage{english} \begin{...
1
vote
0answers
37 views

Hyphenation does not work for first word in paragraph

I'm having several short parboxes and just recognized, that LaTeX does not hyphen the first word. \documentclass[a4paper]{article} \usepackage{german} \parskip=1ex \begin{document} \frame{\parbox{...
1
vote
1answer
40 views

polyglossia: babel hyphenation shorthands for English?

I usually write in German, and I'm used to using various babel shorthands, e.g. "= for an explicit hyphen that does not keep a word from being hyphenated elsewhere. I've found that while these work ...
1
vote
0answers
64 views

Hyphenation for multirows in tables

For the table in the shown MWE, regardless of the various issues shown, I cannot resolve this particular issue where hyphenation does not work for multirows / merged rows. Is there a way to resolve ...
1
vote
0answers
631 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
46 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
0answers
347 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]{...
1
vote
0answers
62 views

hyphenation does not work with hyperref and xeCJK (hyperref does not add space)

Without hyperref loaded, LaTeX does hyphenation of Latin text. But with hyperref loaded this stops to work. Is there a way to fix this? \documentclass{scrbook} \usepackage{xeCJK} %\setCJKmainfont{...
1
vote
0answers
68 views

Problems after disabling hyphenation

In this example I have disabled hyphenation with \hyphenchar\font=-1, but there are words that 'get out of line'. Is there a way force latex to jump them to the next line ? And maybe still keep a ...
1
vote
0answers
87 views

How can I make tabularx break lines rather than hypenate?

I tables, especially in the header row, I prefer line breaks rather than hyphenating words. Can I make LaTeX prefer line breaks to hyphenation? Minimal Example \documentclass[a5paper]{article} \...
1
vote
0answers
269 views

Stop breaks around hyphen in lstinline

I'm trying to stop line breaks at hyphens, e.g. for \lstinline{sudo yum install -y epel-release && sudo yum install -y scipy python-matplotlib git autoconf automake screen gcc-c++ rubber ...
1
vote
0answers
137 views

Hyphenation problems when switching languages with ucharclasses

TL;DR version: How can I write a bilingual document, where the two languages use different scripts, such that (1) I don't need to manually set the font and language every time the document switches ...
1
vote
0answers
90 views

How creating a style or typeset for my own symbol

I write my own symbol or language script. How defining in TeX or Latex this symbol in new alphabet? source code This is example of my word: VVielka z1ool2ta z1aba z1arl2a z1ur. efect This is ...
1
vote
0answers
449 views

Babel hyphenation not working

I am having trouble using the babel (2016/04/23 3.9r) package. For some reason, soft babelhyphen or the "- shorthand only add a breaking opportunity but no hyphen is displayed in case a word is broken....
1
vote
0answers
63 views

Weird problem with hyphenation, no MWE unfortunately

I am not sure what's wrong with the .tex file, and I can't generate a MWE, but it seems like my manuscript uses hyphenation (splitting a word across two lines) at weird places. For example, it split ...
1
vote
0answers
241 views

broken hyphen when emphasising part of the word

I am writing a book in French about spoonerism. The book should have 2 part one normal and one with the solutions given by emphasising part of the words. It seems that sometimes words overfill ...
1
vote
0answers
237 views

Proper noun and prohibition of hyphen at the end of line

I simply use irregular hyphen to supress Overfull \hbox. It's not beautiful and sometimes I even have to break syllables apart e.g. imm-ediately to avoid the hful box for the hyphen itself instead of ...
1
vote
0answers
423 views

polyglossia and Russian hyphenation

I try to set Russian hyphenation for polyglossia/xelatex (I use pandoc 1.15.2.1). I've installed two packages: $ tlmgr info hyphen-russian tlmgr: package repository http://ctan.asis.io/systems/...
1
vote
0answers
155 views

Change \rigthhyphenmin at end of paragraph only

Into paragraph I use: \lefthyphenmin=2 \righthyphenmin=2 and it's correctly for me. But some paragraphs ends with too short right part (two ot three letters) of hypenated word (looks like ...
1
vote
0answers
114 views

Install a hyphenation file for xetex

This is a beginner question: I need to use this hyphenation pattern: https://www.ctan.org/pkg/xetex-greek with xetex, how can I do to install it? Thank you.
1
vote
1answer
1k views

problems finding correct language.dat

I have installed the portable version of miktex 2.9 on a pc without administrator rights. I try to use the package dutch babel, but it gives the common error of Package babel Warning: No hyphenation ...
1
vote
0answers
575 views

Lyx - Enable emphasized text hyphenation, prevent overflow

I use emphasis in Lyx to indicate variables in a description of a computational algorithm. Some of these variables have a long name. Lyx does not attempt to hyphenate these variables when they enter ...
1
vote
0answers
284 views

german hyphenation

I am using inputenc to have umlauts etc. it works fine, if I am not change hyphenation , but I want to have german hyphenation too. \documentclass[12pt,twoside]{report} \usepackage[a4paper]{geometry} ...
1
vote
0answers
328 views

Em dash out of right margin

I am almost sure this question was already asked somewhere (I couldn't find it). Still why my em dash and the word proceeding it are typeset out of margins? the source is proliferation---nextword ...
0
votes
1answer
58 views

How might one treat hyphens as hyphens (not minus) in in-line math?

How might one treat hyphens as hyphens (not minus) in in-line math? \documentclass{article} \usepackage[T1]{fontenc} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{parskip} \renewcommand\...