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

learn more… | top users | synonyms

12
votes
2answers
1k views

Is it possible to have hyphenations in \underlined{text}?

In a document I was writing, I had some really long captions and I wanted to emphasize the important parts in them. I tried to use \underline{} but no hyphenation was used at both the caption and at ...
8
votes
2answers
4k views

How to reduce the number of hyphenation?

Sometimes, assume our document contain many long words, TeX may generate some hyphenation at the end of line. But it really hinder our smooth reading. Although I know we can add the hyphenation rule ...
7
votes
2answers
1k views

Section titles, hyphenation, manual line breaks - and how to avoid them

I have several section titles in my document that are getting hyphenated, which is quite ugly. I am now looking for some way to avoid the hyphenation, which is is somewhat related to this question, ...
16
votes
1answer
657 views

Is it still worthwhile to let TeX try line-breaking without hyphenation?

Here's TeX's line-breaking approach (as I understand it) in a nutshell: If \pretolerance is positive, try to break a paragraph into lines without inserting discretionary hyphens and without ...
13
votes
1answer
230 views

Lines too long due to text inside custom command not being hyphenated

I'm having some problems with lines that turn out to be too long. There are correct hyphenation rules for the word but they aren't being applied. Let me first give the sentence that is too long: An ...
11
votes
3answers
3k views

Option to break urls with carriage-return symbol?

There are several ways to get long, uncooperative URLs to line-break in LaTeX. If you're using pdfLaTeX, then the hyperref package can break them across lines for you, roughly after any /. If you ...
6
votes
2answers
857 views

Hyphenation for words with underscore

Can I tell LaTeX that it may hyphen words that contain an underscore _ always before the underscore? I have a lot of code examples in text, like is_error_condition_enum and I would like to tell LaTeX ...
14
votes
7answers
4k views

LaTeX not hyphenating properly, text running off page

I'm having a problem with LaTeX not hyphenating $\beta$-galactosidase, and the word as a result running off the page. I have narrowed down the problem to a particular package, as a bare minumum LaTeX ...
18
votes
2answers
5k views

How to add global hyphenation rules?

I know about discretionary hyphens, \-, about \allowbreak, \nobreak as well as \hyphenation{...} and even \tracingparagraphs=1 to write hyphenations into the log-file. Those are OK for family names or ...
36
votes
2answers
6k views

What's the benefit of loading babel when writing in English?

When writing in English what is the benefit of loading babel, by \usepackage[english]{babel}, except for the possibility of setting it to use specific English dialects as described in babel: english, ...
4
votes
1answer
240 views

Hyphenation for mixed language document

I'm currently writing my Bachelor's thesis in English but have to include a German abstract. Hyphenation will not work for German words unless I include the ngerman package. But then English words are ...
19
votes
2answers
1k views

babel: Adding ngerman' s language shorthands to english as the main document language

The (n)german language option of the babel package provides various shorthands related to hyphenation, e.g. "-: "an explicit hyphen sign, allowing hyphenation in the rest of the word" (manual, section ...
32
votes
7answers
7k views

Allow line break, but without inserting a dash

I have a sentence that contains a number of long dataset names. I would like to allow LaTeX to break these names at certain positions that I would like to specify somehow just like I can use \- to ...
20
votes
2answers
871 views

How to create a virtual font?

In his answer to the question Replace hyphenation character by a backwards arrow, Hendrik Vogt writes: If you come into a situation where you want your hyphenchar to be something like ...
13
votes
3answers
1k views

How to disable hyphenation in all section and subsection titles?

Is there a way to disable hyphenation (splitting up a word) in all section and subsection titles (while leaving hyphenation in the main text unchanged)? They look a bit odd to me. Thank you.
7
votes
2answers
978 views

Using hyph-utf8 with plain TeX

I want to use the UTF-8 hyphenation patterns (for Croatian) with plain TeX (pdftex). I've read the documentation on the hyph-utf8 package but I haven't found it very useful. There's mention of a ...
12
votes
2answers
2k views

Hyphenating hyphens: how to change the default \discretionary

My language, Portuguese, have undergone another orthography reform (those committees simply can't avoid themselves from doing this mess from time to time.) Now we have to adapt, which brings us to my ...
25
votes
3answers
781 views

Where can I find a list of English hyphenation exceptions?

I know that a nice list of (English) hyphenation exceptions was published in TUGboat, in quite a few installments. Is it compiled somewhere in one place?
5
votes
2answers
301 views

Disable hyphenation in apa6e's footnotes

I would like to disable hyphenation in apa6e's footnotes, to match APA's 6th edition guidelines. apa6e uses ragged2e, and the ragged2e documentation (pdf) claims that certain commands can make ...
0
votes
0answers
232 views

Unwanted line breaks in middle of words [duplicate]

Possible Duplicate: How to prevent LaTeX from hyphenating the entire document? I have a two-column article with custom margins. In some points of the text, line breaks occur in the middle ...
8
votes
3answers
1k views

How to hyphenate Portuguese in plain TeX?

I'd like to use plain TeX in Portuguese, but I don't know how to hyphenate in this language, or in any other language than English. What do I have to do?
7
votes
2answers
992 views

Hyphenating a number in the BibTeX pages field

Some journals, such as Phys. Rev. B., use unusual page numbering conventions, such as 081401-1–081401-4. (Depending on the way this gets rendered by your computer, you may not be able to discern that ...
11
votes
1answer
532 views

In LuaTex is it possible to change font/language according to the script/glyphs used?

I am a XeLaTeX user and I often have to typeset english-greek documents. Packages like xgreek or polyglossia are great but in order to apply the correct hyphenation rules you have to declare the text ...
15
votes
4answers
2k views

biblatex: Switching languages for *citations* according to the bibentry's “hyphenation” field

Quoting from section 3.1.2.1 of the biblatex manual: [The babel] option controls which language environment is used if the babel package is loaded and a bibliography entry includes a ...
6
votes
1answer
805 views

Emergency stretch hook

Is there a way to automatically set parameters when emergency stretch is required? Here is my situation. After I implemented the solution chosen for unbreakable spaces in Bible verse references, I ...
3
votes
2answers
196 views

Hyphenating a verse range

I am typesetting verses using bibleref and sometimes verse ranges get cut in the end of lines. For example, in: Jean 3.16-18 the cut might happen right after the "-" (which is actually typeset as ...
7
votes
2answers
2k views

Fixing an overfull box

I have an overfull box in a French text which looks like this: The sequence at the end of the line is: d'Ananias~: \og Vous "Vous" cannot be hyphenated and \og inserts a non-secable space, so ...
2
votes
3answers
4k views

babel: “No hyphenation patterns were loaded for the language 'Portuguese'”

I put in the preamble of my document: \usepackage[brazil]{babel} \usepackage[latin1]{inputenc} When I compile as a PDF, I receive the output: "No hyphenation patterns were loaded for(babel) the ...
6
votes
2answers
188 views

Hyphenation of CamelCaseClassNames: Mix automatic and manual?

My text contains some long, CamelCaseClassNames which LaTeX doesn't like to hyphenate automatically. I found the \camelhyph macro on projects:latexcamel and it works perfectly for automatic ...
1
vote
1answer
143 views

Hyphens and minuses are MIA.

I am experiencing a strange bug involving the omission of hyphens in the .dvi file. % This is a sample LaTeX input file. (Version of 12 August 2004.) % % A '%' character causes TeX to ignore all ...
1
vote
1answer
738 views

Unwanted line-breaking of hyphenated word in bibliography

In .bib file: @article{Kurahashi_Yokota2004, author = "Kurahashi, M. and Yokota, A.", title = "Agarivorans albus gen. nov., sp. nov., a $\gamma$-proteobacterium isolated from marine animals", journal ...
2
votes
1answer
741 views

Hyphenation within multicolumn

I've got the following table, which I'd prefer not to split, and it's slightly too wide for the page. How can I make some of the column headings hyphenate? I don't want to have to define a fixed width ...
4
votes
3answers
1k views

Hyphenation of bibliographies with multiple languages using xelatex,xgreek and biblatex

I am trying to use XeLaTeX to produce a document written in Greek that includes both English and Greek bibliography. i am using for this purpose a combination of xgreek, biblatex packages and biber. ...
8
votes
2answers
1k views

ragged2e: “newcommands” option produces “underfull \hbox” warnings

The ragged2e package provides the commands \Centering, \RaggedRight and \RaggedLeft for setting ragged text while allowing hyphenation. The package offers a newcommands option that sets the standard ...
3
votes
1answer
897 views

hyphenation and utf8

from Tex FAQ - hyphenation I see that trying to help Latex in correctly hyphenating words won't work when the utf8 encoding is used. Is there a work around?
4
votes
2answers
568 views

Define global hyphenation for words containing numbers

In my thesis a have a lot of occurences of the word like ABC2011abc and I want them to be hyphenated as ABC2011\-abc. Is it possible to define a global hyphenation rule, like say with \hyphenation? ...
6
votes
1answer
353 views

Hyphenation of long Java identifiers

What is the best practice for hyphenating long identifiers like Character.isJavaIdentifierStart when they appear in body text? I am aware of the path package that also deals with otherwise active ...
22
votes
3answers
2k views

Is it acceptable to hyphenate people’s names?

In some circumstances, for example, B.~Alexander may result in B. Alexan-newlineder. Is this acceptable? If not, is there an elegant way to suppress it? (\hyphenation is too cumbersome and ...
3
votes
2answers
2k views

My first beamerposter, portuguese language not working

I'm trying to make a poster based off the example in this site: http://www-i6.informatik.rwth-aachen.de/~dreuw/latexbeamerposter.php and using the this theme ...
1
vote
1answer
571 views

Hyphenation not working as expected

I have the following text: The example shown in figure \ref{fg:package_normal} shows the scope of the class \textit{org.\-argouml.\-kernel.\-ProfileConfiguration} (\textit{Having}). Unfortunately ...
4
votes
3answers
491 views

Text without hyphenation with Tikz

How do I get the text does not break the line? I have \begin{tikzpicture} \node[align=left,text width=3cm] {Contemplando a contemporaneidade}; \end{tikzpicture} but i need
23
votes
3answers
766 views

Check all hyphenations within a document

I have a book project written in LaTeX, and I have found that quite a number of the hyphenations that TeX produced are wrong. It would be quite painful to scan the document for all hyphenation points, ...
1
vote
1answer
226 views

Hyphenation in Perl package names [duplicate]

Possible Duplicate: Line break in lines with colons I have Perl package name defined as command: \newcommand{\myperlpackage}{\texttt{XXXXX::YYYYY::ZZZZZ}} How can I tell LaTeX to hyphen ...
6
votes
2answers
409 views

Using TeX for hyphenation only

I'd like to use TeX to hyphenate paragraphs of text--and only to hyphenate. My goal is to show hyphenated text on a webpage, with ­ entities where a possible word break could happen. So I'd ...
32
votes
4answers
3k views

How to prevent linebreaks after hyphen if word starts with hyphen?

(Remark: Maybe this is a typically German problem, I'm not sure in which other languages that might be relevant) Sometimes there are words which start with a hyphen, as they are connected with a word ...
8
votes
2answers
1k views

biblatex: per-entry language switching

According to biblatex manual (p.24), the hyphenation field in a bib-entry switches language on per-entry basis: hyphenation field The language of the bibliography entry. The identifier must be ...
5
votes
3answers
3k views

Define new hyphenation

I want to define hyphenation for a word I have somewhat created. I have a word that I have hyphenated like com\-.puppy\-crawl\-.tools\-.check\-style\-.api The thing is that every time I want to ...
11
votes
2answers
794 views

Automatic hyphenation in margin notes

I build a document with notes (like footnotes) on margins. I found help on LaTeX community and now my preamble looks like that: \documentclass{book} \usepackage{marginnote} ...
35
votes
7answers
4k views

Avoid hyphenation in “2-D”

How can I avoid hyphenation in words such as "2-D"? \hyphenation{} is not working since the dash is not a letter.
5
votes
3answers
879 views

Prevent hyphenation in \texttt words

Background The text contains programming variable names such as report_city and SUBREPORT_FILE. All such variables are marked up with \texttt. Problem Some variable names are hyphenated: ...