General ⇒ Controlling hyphenation for words globally?
Controlling hyphenation for words globally?
I found out that for some words hyphenation is totally wrong. Now, instead of changing every word to use "\-" at the right position, is there any way to define the correct hyphenation of a word globally? That way I could once and for all define how a certain word was hyphenated and dont have to go through the 180 pages of my book.
Thanks,
Ben
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
Re: Controlling hyphenation for words globally?
Regards,
B.A.
Controlling hyphenation for words globally?
Code: Select all
\hyphenation{in-ter-net}
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Controlling hyphenation for words globally?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Controlling hyphenation for words globally?
Here is some details from my header.tex:
\documentclass[
pdftex,
11pt,
a4paper,
pagesize,
%DIVcalc,
BCOR12mm,
smallheadings,
halfparskip,
plainheadsepline,
plainfootsepline,
openright,
]{scrbook}
\usepackage{german, ngerman}
\usepackage[german]{babel}
\usepackage[latin1]{inputenc}
I will try the hyphenation command too!
Controlling hyphenation for words globally?
Code: Select all
\hyphenation{Such-ergeb-nisse}
Re: Controlling hyphenation for words globally?
B.A.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Controlling hyphenation for words globally?
Code: Select all
\documentclass[
pdftex,
11pt,
a4paper,
pagesize,
%DIVcalc,
BCOR12mm,
smallheadings,
halfparskip,
plainheadsepline,
plainfootsepline,
openright,
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
…
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Controlling hyphenation for words globally?
Code: Select all
\documentclass[
pdftex,
11pt,
a4paper,
pagesize,
%DIVcalc,
BCOR12mm,
smallheadings,
halfparskip,
plainheadsepline,
plainfootsepline,
openright,
]{scrbook}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage{url}
\usepackage{fixltx2e}
% Theoreme
\usepackage{amsmath, amsthm, amssymb}
\usepackage{paralist}
%Änderung der Tabulatoren ist möglich. Außerdem können Zeilennummern hinzugefügt werden
\usepackage{moreverb}
%Zum Einbinden von Grafiken
\usepackage{graphicx}
%Source-Code printer for LaTeX:
\usepackage{listings}
\usepackage[square]{natbib}
\usepackage[babel,german=quotes]{csquotes}
\usepackage{color}
\usepackage{textcomp} %Für Sonderzeichen
\usepackage{tabularx}
\usepackage[table]{xcolor}
\usepackage{booktabs}
\usepackage{array}
% --- Kopfzeilen mit Koma ---
% Linien auf alle Seiten oben und unten um Kopf- und Fußzeilen abzutrennen
\usepackage{scrpage2}
\usepackage{microtype} % optischer Randausgleich
% --- Grafiken sofort plazieren ---
\usepackage{float}
%\floatplacement{figure}{H}
% --- mehrere Literaturverzeichnisse ---
\usepackage[resetlabels]{multibib}
\newcites{www}{Internet-Quellen}
% --- pdf and hyperlink support. should be last in package list ---
\usepackage[
bookmarks=true,
bookmarksopenlevel=3,
bookmarksopen=true,
bookmarksnumbered=true,
linkbordercolor={1 1 1},
citebordercolor={1 1 1},
urlbordercolor={1 1 1},
pdfstartview={FitH}
linktocpage=true % fix fuer lange ueberschriften
plainpages=false,% correct hyperlinks
]{hyperref}
%% --- Schusterjungen und Hurenkinder verhindern. Siehe deutsches TeX-FAQ (6.1.3) ---
\widowpenalty = 10000
\clubpenalty = 10000
\displaywidowpenalty = 10000
\raggedbottom
% Definition von Farbwerten
\definecolor{lightgray}{rgb}{0.95,0.95,0.95}
\definecolor{gray}{rgb}{0.90,0.90,0.90}
\definecolor{darkred}{rgb}{0.5,0,0}
\definecolor{darkgreen}{rgb}{0,0.5,0}
\definecolor{darkblue}{rgb}{0,0,0.5}
Code: Select all
\usepackage[T1]{fontenc}
- Attachments
-
- Weird output
- img.png (34.67 KiB) Viewed 17100 times
Controlling hyphenation for words globally?
benowar wrote: Hm I tried setting
but it did not change anything. Maybe some commands I use in my header is not compatible with this command?Code: Select all
\hyphenation{Such-ergeb-nisse}
Keep in mind that ''Such-ergeb-nisse'' will do the job for EXACTLY that word: ''suchergebnisse''. It will not be applied, i.e., for ''suchergebnis'' and similar words. You should specify all forms of word you want hyphenated.