I have the problem, that I am writing a (long) document. Now I found while checking the document for errors a very bad formatting of some heading:
The headline is quite long and therefore it has to be broken. For now I get a hyphenation quite few letters before the end of the headline. So it looks like:
Chapter 2: Fooooooo baaaaaaar fooooooo baaa- ar
Of course this is not what I want. I'd like to have the whole
baaaar on the second line. For the moment I am not able to reproduce the problem in a minimal example, I will try this evening when I am at home again.
One other problem is that LaTeX breaks at a wrong position in heading sometimes. In normal Text I give a minus-sign to correct the hyphenation position but in headings this does not work properly, because in the headline (using
fancyhdr or similar pagestyle) the minus also appears.
I think, general deactivation of hyphenation is not a good idea. I (have to) work on A5 paper and therefore it is easy to gain a complete line with few words. So hyphenation will be needed for a good look of the document, I think.
So in sum:
- How to get rid of orphans in headings?
- How to set the positions for the hyphenations in headings correctly?