Welcome to the TeXnik website (under construction) Hyphenation |
||||||||||||
|
Hyphenation and Raggedright |
Package hyphenat (on/off switch) |
problems |
Raggedright and Hyphenation |
Slides |
sloppy |
Typewriterfont |
userdefined hyphenation |
wrong hyphenation |
Examples
Slides Slides have by default no hyphenation, because it is very inappropriate.
Raggedright and Hyphenation By default you get a text without any hyphenation when you choose the option \raggedright in your text. To get hyphenations too, write in preamble:
\makeatletter \def\raggedright{% \rightskip=0pt plus 10mm \@rightskip=\rightskip} %\lefthyphenmin4\righthyphenmin4% \makeatotherThe last commands are only useful when you do not want to have hyphenations like hy-phenation. Instead of the above solution you can try package ragged2e, too. Typewriter font Text in typewriterfont can also be hyphend whit package hyphenat: \usepackage[htt]{hyphenat}This package is available at CTAN..
sloppy With the command \sloppy you get a better formatting and less hyphenation problems. The following
command sequence does this better than \sloppy . Put it in LaTeX preamble:
\tolerance 1414 \hbadness 1414 \emergencystretch 1.5em \hfuzz 0.3pt \widowpenalty=10000 \vfuzz \hfuzz \raggedbottom Problems with hyphenation Put the following commands in LaTeX preamble, if you have some lines which went out of the right margin: \tolerance=200 \setlength{\emergencystretch}{2em}
Userdefined hyphenation Always when the tex-hyphenation gives bad results you can force hyphenation in different ways. For example we have the word internationalisation with the possible hyphenations in-ter-na-tio-na-li-sa-tion
Wrong hyphenation At first control, if latex supports hyphenation in your specific language. Have a look at Menu View->Latex LogFile This is TeX, Version 3.14159 (Web2C 7.3.1) (format=latex 2000.12.27) 27 DEC 2000 21:09 **test.tex (test.tex LaTeX2e <1999/12/01> patch level 1 BabelIt's the beginning of the logfile of the latex-run. In this configuration hyphenation is only supported for the languages american, british, french, german, n(ew)german hypehnrules. There is for example no support for spanish or norwegian. Follow these steps:
This is TeX, Version 3.14159 (Web2C 7.3.1) (format=latex 2000.12.27) 27 DEC 2000 22:57 **Versuch.tex (Versuch.tex LaTeX2e <1999/12/01> patch level 1 Babel |