[texhax] hyphenation

justanotheradress at gmail.com justanotheradress at gmail.com
Tue Jan 15 21:00:58 CET 2008


Thank you for this, but that's not what I intended to ask for.

I just don't like when LaTeX hyphenates words after 2 characters or/and only
3 characters at the end. I would like to change this in a easy way and I
don't wanna do this for every mishyphened word as this is not efficient in a
big report. Further this should work for every language (well, for me only
english and german, but I'm sure other could use it too).

Actually it's not that much I'm looking for but so far, no solution worked
for me...(just deactivating hyphenation is not a solution to my problem)

Maybe this will come in LaTeX3? Just kidding...



On Jan 15, 2008 10:37 AM, Michael Barr <barr at math.mcgill.ca> wrote:

> Since the original post asked about confining the non-hyphenation to only
> a portion of the file, I am surprised no one has mentioned the obvious
> solution, which appears below.  Note that the blank line that precedes the
>
> } is necessary since the hyphenpenalty has to be in effect when tex
> realizes that the paragraph is finished.  I suppose this could all be
> dressed into a latex environment, but I have not tried that.
>
> Michael Barr
>
>
> \documentclass{article}
> \begin{document}
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
>
>
> {\hyphenpenalty10000
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
>
> }
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> long\-words\-that are\-easy\-to hyph\-en\-ate
> \end{document}
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20080115/e699f597/attachment.html 


More information about the texhax mailing list