GeneralWrong hyphenation

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
rick1980
Posts: 9
Joined: Tue Nov 03, 2009 6:42 pm

Wrong hyphenation

Post by rick1980 »

Hi,

I have been searching the forum if there is any similar post, but I didn't quite
find what I was searching for. Well my problem is that the hyphenation does not
seem right, for example it hyphenates "empirically" like that: "empir-ically"

I'm not a native speaker but this seems very odd to me. Also I'd like to used hyphenation rules for uk english, I don't quite know if and how I have to integrate
that into my tex document.

I'm using TexLive on a Ubuntu box and Kile ans an editor. I have stalled the texlive-lang-ukenglish package.

Thanks for any help!!!

Rick

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Wrong hyphenation

Post by frabjous »

"empir-ically" seems like fine hyphenation to me, See the breakdown of "empirical" in The Merriam-Webster dictionary:
http://www.merriam-webster.com/dictionary/empirically

(I'm a native speaker of American English, so take that with however many grains of salt you think necessary.)

Are there other strange examples?

You can of course override the settings for individual words using \- or the \hyphenation command.
rick1980
Posts: 9
Joined: Tue Nov 03, 2009 6:42 pm

Re: Wrong hyphenation

Post by rick1980 »

Thanks for the answer!

Well The Merriam-Webster dictionary does not say anything about hyphenations the hyphens there are just to illustrate pronunciation. I asked now several British English native speakers and they all tell me to hyphen it

"empiri - cally"

I seriously need to hyphenate it the British way because its a PhD thesis for a
British University which I have to submit in 2 weeks!

How can I get Latex to hyphenate it according to British rules? Its not only about
this single word its a 256 pages document who knows what else is hyphened the in
American English.

Im really greatful for any help!

Rick
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Wrong hyphenation

Post by frabjous »

Putting:

\usepackage[UKenglish]{babel}

in your preamble should do it. For more fine-grained control see the documentation of the Babel package.

Oh, and I know that the Webster site shows the pronunciation, but in the US, that's how we do it. Hence my grains of salt. I think in the UK, they tend to go more by etymology, though I still don't see what the difference is between "empir-ical" and "empiri-cal".
rick1980
Posts: 9
Joined: Tue Nov 03, 2009 6:42 pm

Wrong hyphenation

Post by rick1980 »

Thanks for your help!

Well I have included

\usepackage[UKenglish]{babel}

and get now the following output with a lot of errors that were not there before.
Until the line with the overfull hbox everything is fine from then the the errors are new since I included the statement above in the preamble.

Code: Select all

[PDFLaTeX] phdthesis.tex => phdthesis.pdf (pdflatex)
[PDFLaTeX] finished with exit status 1
phdthesis.tex:0: Label `' multiply defined.
phdthesis.tex:0: Label `' multiply defined.
phdthesis.tex:0: Label `' multiply defined.
/home/stahlf/ThesisLatex/phdthesis.lof:48:Overfull \hbox (0.42122pt too wide) in paragraph
phdthesis.tex:6:Illegal parameter number in definition of \B@my@dummy. ... intermediate form of a decision tree \cite
phdthesis.tex:6:Illegal parameter number in definition of \B@my@dummy. ... intermediate form of a decision tree \cite
phdthesis.tex:6:Illegal parameter number in definition of \B@my@dummy. ... intermediate form of a decision tree \cite
phdthesis.tex:6:Illegal parameter number in definition of \B@my@dummy. ... intermediate form of a decision tree \cite
phdthesis.tex:6:Illegal parameter number in definition of \B@my@dummy. ... intermediate form of a decision tree \cite
phdthesis.tex:6:Illegal parameter number in definition of \B@my@dummy. ... intermediate form of a decision tree \cite
phdthesis.tex:7:Paragraph ended before \@@cite was complete.
phdthesis.tex:8:Illegal parameter number in definition of \B@my@dummy. ...tree generation in a doctoral project \cite
phdthesis.tex:8:Illegal parameter number in definition of \B@my@dummy. ...tree generation in a doctoral project \cite
phdthesis.tex:8:Illegal parameter number in definition of \B@my@dummy. ...tree generation in a doctoral project \cite
phdthesis.tex:8:Illegal parameter number in definition of \B@my@dummy. ...tree generation in a doctoral project \cite
phdthesis.tex:8:Illegal parameter number in definition of \B@my@dummy. ...tree generation in a doctoral project \cite
phdthesis.tex:8:Illegal parameter number in definition of \B@my@dummy. ...tree generation in a doctoral project \cite
phdthesis.tex:9:Paragraph ended before \@@cite was complete.
phdthesis.tex:11:Paragraph ended before \@@cite was complete.
phdthesis.tex:14:Missing \endcsname inserted. \section
phdthesis.tex:14:Missing \endcsname inserted. \section
phdthesis.tex:14:Missing \endcsname inserted. \section
phdthesis.tex:14:Missing \endcsname inserted. \section
phdthesis.tex:15:Paragraph ended before \@@cite was complete.
phdthesis.tex:25:Paragraph ended before \@@cite was complete.
phdthesis.tex:28:Illegal parameter number in definition of \B@my@dummy. ...be traced back to at least the 1960s \cite
phdthesis.tex:28:Illegal parameter number in definition of \B@my@dummy. ...be traced back to at least the 1960s \cite
phdthesis.tex:28:Illegal parameter number in definition of \B@my@dummy. ...be traced back to at least the 1960s \cite
phdthesis.tex:28:Illegal parameter number in definition of \B@my@dummy. ...be traced back to at least the 1960s \cite
phdthesis.tex:28:Illegal parameter number in definition of \B@my@dummy. ...be traced back to at least the 1960s \cite
phdthesis.tex:28:Illegal parameter number in definition of \B@my@dummy. ...be traced back to at least the 1960s \cite
phdthesis.tex:29:Paragraph ended before \@@cite was complete.
phdthesis.tex:32:Paragraph ended before \@@cite was complete.
phdthesis.tex:93:Incomplete \iffalse; all text was ignored after line 33. \include{chapter1/chapter1}
phdthesis.tex:94:Undefined control sequence. \include{chapter2/chapter2}
phdthesis.tex:94:Undefined control sequence. \include{chapter2/chapter2}
phdthesis.tex:94:Undefined control sequence. \include{chapter2/chapter2}
phdthesis.tex:94:Undefined control sequence. \include{chapter2/chapter2}
phdthesis.tex:95:Undefined control sequence. \include{chapter3/chapter3}
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And this is the concerning code in line 6 where the errors are supposed to be.
It looks like something is wrong my citations but it works fine whenever I delete
the \usepackage[UKenglish]{babel} statement.

Code: Select all

Code, edit and compile here:
This project is concerned with scaling up data mining algorithms for automatically generating classification rules. With scaling up this work refers to the ability to train a classifier on large training data and still generate the classification rules in a reasonable amount of time. Most rule induction has been for the purpose of classification and the most common approach to this rule generation is via the intermediate form of a decision tree \cite{quinlan_induction_1986}. Although popular, this method suffers from the problem of overfitting and it is generally considered desirable to post-prune the trees in order to remove overfitted terms as far as possible \cite{witten_data_1999}. This seems to be an unnecessarily indirect way to generate rules, especially when there are algorithms that will generate them directly; albeit ones that are less widely known. An important alternative to classification is \textit{Generalised Rule Induction} (GRI), where the right-hand side of each rule can potentially be a conjunction of attribute/value pairs for any combination of categorical (and possibly also continuous) attributes \cite{smyth_information_1992}.
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Best Regards
Rick
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Wrong hyphenation

Post by frabjous »

It might help to delete all the auxiliary files (*.aux, *.bbl, *.toc, *.out etc.) and start from scratch.

If that doesn't work, I'd try making a minimal document that includes only the packages and document class and a minimal amount of text, and see if you get the same error. If you do, post the offending code here.
rick1980
Posts: 9
Joined: Tue Nov 03, 2009 6:42 pm

Wrong hyphenation

Post by rick1980 »

Sorry have been sick the past 2 days so couldn't reply.

Well, I have tried your advice and created a small project with little text.
I found out that it hyphenates "empirically" still the American way not the British
one. Well I am starting to believe despite what all the English people over here tell me that you can in fact hyphenate it empir-ically, but it seems odd that everyone is wrong about it.

Also i get compile error in the following case:

execute pdflatex
execute bibtex
execute pdflatex

Well, so far so good. Then when I change something in the text and want to execute pdflatex again I get following error in my command line:

Code: Select all

/LatexTest$ pdflatex phdthesis
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6)
%&-line parsing enabled.
entering extended mode
(./phdthesis.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, ukenglish, loaded.
(./phdthesis.cls
LaTeX Warning: You have requested document class `phdthesis',
but the document class provides `muthesis'.
Document Class: muthesis 1999/05/26 MU Thesis Class
(./setspace.sty
Package: `setspace' 6.7 <2000/12/01>
) (/usr/share/texmf-texlive/tex/latex/base/report.cls
Document Class: report 2005/09/16 v1.4f Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo)))
(/usr/share/texmf-texlive/tex/latex/graphics/color.sty
(/etc/texmf/tex/latex/config/color.cfg)
(/usr/share/texmf-texlive/tex/latex/pdftex-def/pdftex.def))
(/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty
For additional information on amsmath, use the `?' option.
(/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty
(/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty))
(/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty)
(/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty))
(/usr/share/texmf-texlive/tex/latex/amscls/amsthm.sty)
(/usr/share/texmf-texlive/tex/latex/amsfonts/amssymb.sty)
(/usr/share/texmf-texlive/tex/latex/hyperref/hyperref.sty
(/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty)
(/usr/share/texmf-texlive/tex/latex/hyperref/pd1enc.def)
(/etc/texmf/tex/latex/config/hyperref.cfg)
(/usr/share/texmf-texlive/tex/latex/oberdiek/kvoptions.sty)
Implicit mode ON; LaTeX internals redefined
(/usr/share/texmf-texlive/tex/latex/ltxmisc/url.sty))
*hyperref using default driver hpdftex*
(/usr/share/texmf-texlive/tex/latex/hyperref/hpdftex.def)
(/usr/share/texmf/tex/latex/html/html.sty)
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The phdthesis.tex is here:

Code: Select all

Code, edit and compile here:
\documentclass[12pt, PhD, doublespace]{phdthesis}
\usepackage {color, amsfonts, amsmath, amsthm, amssymb}
\usepackage {hyperref, html}
\usepackage {epsf, epsfig}
\usepackage {graphicx}
\usepackage {verbatim}
\usepackage{apacite}
\usepackage{lscape}
\usepackage[UKenglish]{babel}
\begin{document}
\title{Distributed Rule Induction}
\author{Frederic Theodor Stahl}
\dept {School of Computing}
\principaladvisor{Prof. Max Bramer}
% \firstreader{John Green}
\secondsupervisor {Dr. Mo Adda}
\secondreader {Dr. John Rosbottom} %\\(Another Department)}
% Uncomment the line below to suppress the `List of Tables' page (optional)
%\tablespagefalse
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
if I delete all the files created during pdflatex and bibtex I can execute it again without problems. This must surely be something wrong?

Thanks for your help so far anyway I really appreciate it!

Rick
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: Wrong hyphenation

Post by frabjous »

You must have a file phdthesis.cls too. Can you upload it here (as an attachment)?

Where did you get the document class in question? If this file is a template just for your university, you might be better off asking whoever created it.
rick1980
Posts: 9
Joined: Tue Nov 03, 2009 6:42 pm

Re: Wrong hyphenation

Post by rick1980 »

Well my university has not official latex template. This template is from elsewhere but has been adapted to my universities format from a lecturer that recently retired. Sorry :(
Attachments
phdthesis.cls
(17.46 KiB) Downloaded 433 times
Post Reply