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

learn more… | top users | synonyms

0
votes
0answers
66 views

How to fix hyphenation of words where last character ends on next line [closed]

Does anyone know if it possible to stop this sort of thing where the only the last character or two of a word is hyphenated onto the next line? LaTeX for the above follows: ...
2
votes
1answer
84 views

`\Hy@raisedlink` block hyphenation and perturbate line breaking

the \Hy@raisedlink (used because of what explaned in this answer: http://tex.stackexchange.com/a/17138/7712) seems make trouble with hyphenations. Cf this MWE \documentclass[a4paper]{book} ...
0
votes
1answer
96 views

ConTeXt: Avoid text overflow into right-hand margin

Minimum Working Example (MWE) \starttypescript [serif] [storybody] \definefontsynonym [Serif] [name:couriernew] \stoptypescript \definetypeface[story] [rm] [serif] [storybody] [default] ...
2
votes
0answers
92 views

Some (not all) hyphenated words contain “return” character [closed]

In a document being built with MikTeX, some auto hyphenation is being done with a "return" character (a left pointing arrow with a riser at the right end) instead of a hyphen. This seems to happen ...
1
vote
0answers
53 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 ...
4
votes
1answer
86 views

Last word penalty

Is there a way to specify penalty only to the last word of a paragraph? \righthyphenmin=3 sets, for instance, 3 letters as a minimum at the beginning of a line. On the other hand, ...
2
votes
1answer
145 views

How to reduce number of hyphenation patterns preloaded in MikTeX?

MikTeX comes with 69 languages preloaded as reported at compilation time: This is XeTeX, Version 3.14159265-2.6-0.99992 (MiKTeX 2.9 64-bit) (preloaded format=xelatex 2015.11.9) 13 NOV 2015 10:35 ...
3
votes
2answers
188 views

Forbid hyphenation of several consecutive words in text

I am trying to avoid hyphenation over odd pages, and I would like to do it manually: forbid hyphenation of some words. When I embrace the hyphenated word in \hbox, some other adjacent word after ...
1
vote
0answers
40 views

Prevent hyphenation [closed]

The page has a lot of space but subsection hyphenated. How to prevent this? I need to stretch that title.
2
votes
1answer
82 views

Globally enable hyphenation for the first word in a paragraph

how can I globally enable hyphenation for the first word in a paragraph? A manual workaround is to add \hspace{0pt} in front of the corresponding word, so that it is not counted as first word, but it ...
3
votes
1answer
32 views

Correct hyphenation of “http://” in bibliography

I encounter a problem with an online source in my bibliography and can't find a solution. Whereas all other sources and URLs show "perfect" hyphenation, the first line of the entry of one specific ...
5
votes
2answers
56 views

Why doesn't \nolinebreak work in this case?

When I have something like: (Some-)Thing at the end of the line, LaTeX always breaks after the '-', even when I use: (Some-\nolinebreak)Thing I do know about solutions like using \mbox{}, but I ...
3
votes
2answers
56 views

hyphenation of long words in twocolumn template

I would like to have control on how Latex hyphenates long words. In my example it tries to have a right handed alligment of the paragraph but by doing so it creates big spaces. How do I get rid of ...
2
votes
2answers
50 views

Inconsistent line breaks instead of hyphenation

Working off of this question, I see that XeLaTeX is inconsistently applying hyphenation to my text. As you can see in the MWE, in the paragraph before the \entry, hyphenation is not applied, yet in ...
5
votes
1answer
91 views

Hyphenation anywhere

Is there a (simple) way to allow hypheation a-n-y-w-h-e-r-e in any word?
1
vote
0answers
29 views

Enumerate text crosses the boundaries

I have simple enumeration (using enumitem package) with disabled hyphenation. \documentclass[12pt, oneside]{extarticle} \usepackage[a4paper, left=3cm, right=1.5cm, top=2cm, bottom=2cm, ...
3
votes
0answers
60 views

Why zero lccode does not stop hyphenation in LuaTeX?

Compile the following example with tex and luatex: \nopagenumbers \parindent=0pt \parskip=0pt \def\par{\endgraf\hbox to 15em{\hrulefill}} \hsize=1pt \hfuzz=15em 1 'supercalifragilisticexpialidocious ...
6
votes
0answers
66 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
119 views

Adding default hyphenation for transliterated Sanskrit

I would like to be able to select, via polyglossia, Sanskrit in Roman script, and thus get some reasonable default hyphenation rules, as there are, in order of priority: ai, au, kh, gh, ch, jh, ṭh, ...
1
vote
0answers
105 views

Hyphenation in danish LaTeX

I can't really make a minimal working example who shows the problem, because the problem just are there sometimes. But here is the code used: \documentclass[twocolumn, a4, 12pt]{article} ...
5
votes
0answers
98 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 ...
2
votes
3answers
110 views

Prevent line break of dash inital words — hyphenation problems

As my question hasn't been answered yet, I decided to rephrase it. I will try to simply the working example and specify my question. I'm writing a dictionary that contains grammatical forms which are ...
3
votes
1answer
109 views

Swedish text not hyphenated

I'm using a template for cover letters together with the line \usepackage[swedish]{babel} in my preamble. But I've noticed that long words don't get hyphenated (as they should when using babel), and ...
2
votes
2answers
53 views

How to deal with impossible hyphenation

I am wondering if there is any recommended way of dealing with impossible hyphenations like the one from the first line, in the middle. If the column width will be bigger, it would be easier to ...
6
votes
1answer
80 views

Package 'showhyphens' won't show actual hyphenation points for words with ligatures

What exactly does the package showhyphens tell us about hyphenation points? According to its documentation, it "will show all possible hyphenation points". But when the word contains a ligature, it ...
2
votes
1answer
30 views

How to set a character as a potential hyphenation point globally ?

I am generating a LaTeX file, and I got some very long commands containing Windows path, which do not break at line end. For instance, I can have a line like this : This is a ...
9
votes
1answer
144 views

How to avoid a linebreak before a comma in Lua(La)TeX?

This is a (somewhat late) follow up to the question How to avoid a linebreak before a comma? where @MostlyHarmless shows that a line break may be introduced after a word ending with a hyphen even if ...
2
votes
0answers
54 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 ...
1
vote
1answer
37 views

Location of hyphenation patterns

Where are the hyphenations patterns? Are they the same for xelatex and polyglossia as for latex and babel? (Links to information on how to modify them would also be appreciated.)
0
votes
0answers
29 views

Hyphenation between syllables

In XeLaTeX (with polyglossia), how can one alter the general hyphenation patterns always to divide between syllables? Often this will be acheived by dividing after vowels and between consonants. For ...
4
votes
0answers
93 views

\- doesn't work in footnote

In the following example the \- in the footnote doesn't work. In Indian languages "dh" is one letter and should not be separated by hyphenation. I know I could use \discretionary here, but I want to ...
5
votes
2answers
142 views

[Babel/Polyglossia]: wrong hyphenation?

Consider the following MWE; say you save it in foo.tex. \documentclass{article} \setcounter{secnumdepth}{0} \usepackage{polyglossia} \setmainlanguage{english} \setkeys{english}{variant=british} % ...
2
votes
1answer
47 views

First letter bold compatible with hyphenation

I ve been trying many solutions found on stack exchange to have a command that make bold the first letter of a word. All of them work. With every solution I have tried I have an hyphenation problem ...
9
votes
1answer
228 views

Hyphenation penalty

Say I have done \hyphenation{a-no-ma-ly}. In the text, the word is broken ano-maly. This is (etymologically) displeasing, but may be better than the spacing that would result from barring it. Can I do ...
12
votes
1answer
112 views

Hyphenation across pages: summary of odd pages with last hyphenated word

AFAIK, LaTeX first makes the paragraphs beautiful, and after that it makes the pages beautiful. Thus if by any chance the pagebreak happens inside a hyphenated word, LaTeX can change the pagebreaks ...
2
votes
1answer
40 views

Typewriter hyphenation with special characters

I read this answer, and this one about how to hyphenate \texttt text and handling special chars. However, it is not really doing what I intend. \documentclass{scrreprt} ...
3
votes
3answers
165 views

Spanish hyphenation and UTF8 characters in plain TeX with pdfcsplain, xetex and luatex

I am trying to figure how to use OPmac for Spanish documents because the easy setting of the structure document in plain TeX. However, using pdfcsplain or xetex/luatex engines, I have no luck with the ...
1
vote
2answers
101 views

how to get latex to hyphenate a word that contains a slash? [duplicate]

I'm using 'und/oder' (German for 'and/or') in one of my texts (I know it's not nice :)). Latex separates it 'und/o-der' which is not nice. Using \mbox fixes that problem. Trying to find a general ...
6
votes
1answer
101 views

Changing the hyphenation style

I saw in an article (here on page 43, note 2, in french) an intersting way to hyphenate words. I thought it would be intersting, as an exercise, to try and reproduce it using XeTeX. It looks like ...
5
votes
3answers
186 views

Babel fails to hyphenate when the word contains periods

babel can hyphenate disputas: \documentclass{article} \usepackage[nynorsk]{babel} \begin{document} \parbox{0pt}{\hspace{0pt}disputas} \end{document} But it fails when the word contains a period: ...
7
votes
2answers
344 views

How to type a non-breaking hyphen (dash, “-” character) in scientific or technical documents

I am writing scientific or technical documents in LaTeX. Often I need to type a non-breaking space, for example when using equation references: Equation~\eqref{eq:equation1example} shows blaa... Is ...
3
votes
1answer
124 views

Hyphenation in two languages in XeLaTeX + polyglossia

I am fairly new to LaTeX so please excuse any obvious parts of the question. I am looking for a way to setup hyphenation in 2 languages (Greek and English) at the same time. My setup is MacTeX ...
10
votes
2answers
107 views

Context sensitive glyph appears even when hyphenation removes the context

The Alegreya font has a pretty clever feature by which it substitutes the regular f glyph with a variant that has a longer cross stroke when the f is followed by t. The result is that the two cross ...
11
votes
1answer
305 views

How are hyphenation patterns written?

In my miktex folder I checked the hyph-en-us.tex file and found letter patterns written like this: \patterns{ .ach4 .ad4der .af1t ... } What do these dots and numbers mean?
3
votes
1answer
66 views

apacite with [natbibapa] fails to line-break authors' names in citation callouts when author name has umlaut

\citep causes problem at the margin when the last name has an umlaut (\"{}). This post is related to my last post here: apacite produces inline citations out of text area when using custom margins ...
4
votes
2answers
121 views

Adding line break without hyphen

I'm writing a lab report about gene sequencing, and I have to put a large sequence of nucleotides. I don't really intend to put it on a special box, just add it as if it were another paragraph only ...
6
votes
1answer
148 views

How to remove orphan character from bibliography

Compile with pdflatex 1.14.16 (Miktex) the following source: \documentclass[11pt,a4paper,english]{memoir} \usepackage[english]{babel} \usepackage{biolinum} \usepackage{XCharter} ...
2
votes
1answer
42 views

Have a macro evaluate to different stuff depending on whether it will be hyphenated

Given a command like this \newcommand{\AB}{$\textsf{A} \subseteq \textsf{B/string}$} is it possible to have the string evaluate to something like \newcommand{\ABhyp}{\textsf{A} is contained in ...
4
votes
1answer
67 views

Change language on a per field basis

I am creating a bilingual (main: greek, secondary: english) document with xelatex and polyglossia and I'm using biblatex with biber for the bibliography management. As biblatex is currently setup the ...
4
votes
1answer
101 views

Prevent Hyphenation across lines + Enforce right margin

My first question here, so it may sound rambling. So far I've found the answers about preventing hyphenation across lines and for setting margins, but I'm having trouble putting it together. This is ...