Page LayoutHyphenation

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
polya
Posts: 2
Joined: Tue Jan 13, 2009 12:47 am

Hyphenation

Post by polya »

I'm trying to figure out how to change the hyphenation rules in my document.
It seems to be that latex is splitting the words based on british english, and I need it split as in accordance with american english (i.e. techno-logy, rather than technolo-gy... or ana-logy NOT anal-ogy)

Does anyone know how to do this?
I tried importing USenglish and putting it into the preamble, but that didn't work.


Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Hyphenation

Post by localghost »

Default hyphenation is set to American English. Unfortunately you didn't give any code that shows how you build your document. Please build a minimal working example (MWE) with a short excerpt of the affected text. For the present you can try to set the hyphenation of your document to American English with the help of babel.

Code: Select all

\usepackage[USenglish]{babel}

Best regards and welcome to the board
Thorsten¹
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
polya
Posts: 2
Joined: Tue Jan 13, 2009 12:47 am

Re: Hyphenation

Post by polya »

Thanks so much for the quick reply. Apologies for the vague overview of the problem at hand.

here's my attempt at an MWE... what I would like, ideally, is to have the words split consistently (i.e. at the end of the first paragraph, 'generates' is split as gen-erates (gene-rate), while 'aggregate' is split as aggre-gate.

At the beginning of the paragraph, you have contribu-tion, where it should be 'contri-bution'.

I'm not even sure if there is a rule for this in LaTeX. Attempting to split the words manually just creates discrepancies and further inconsistencies, as words are shifted and new problems arise.

Any help would be GREATLY appreciated :)

thanks again!
Attachments
123.pdf
(20.34 KiB) Downloaded 274 times
123.tex
(3.27 KiB) Downloaded 294 times
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Hyphenation

Post by josephwright »

Why do you have:

\usepackage[UKenglish, english, USenglish]{babel}

as you only want US English? As pointed out, this is what (La)TeX does "out of the box". Also, I'd have

\usepackage{mathptmx} % not times
\usepackage{geometry} %
\usepackage{graphicx} % no [pdflatex]

and use geometry to set margins, etc. (An up-to-date graphics package will detect the driver itself.)
--
Joseph Wright
Joseph Wright
Post Reply