this is a copy of an email I've sent to the author of the footmisc package already. Probably he's laughing at me, cos I do something completely senseless here...
Anyway, if anyone has a good advice, I'd be quite grateful.
Best regards,
Jagged
Actually this happens in V. 5.4a, but I took a look at the 5.5b docs and there is no use of the word "color" other than those in the source snippets, so I guess the problem still persists.
Since an image says more than 1000 words, I have included a minimal example latex file and the corresponding dvi (in case it compiles okay on your system).
In a few words, the problem occurs when in a footnote paragraph any footnote is followed by another one, which makes use of the \color makro in its footnote text, the former one(s) will not be typeset correctly, i. e.
1) if it is longer than a line, that line will not be broken,
2) the footnotes are positioned completely wrong (including overlapping the footnote separator)
and maybe more...
One funny point is that not (necessarily) the colored footnotes are typed incorrectly, but those preceding a colored one.
I can't imagine it has to do with \color being a fragile command, though I don't know; I'm not that much a TeXnician...
Also because I'm not such a TeXnician, it would be great to have a workaround in some time. My application is as follows: I make use of comments in my text, which are slightly lighter than the actual text body. They are not so aside that I put them in footnotes themselves. Now I come across a comment that takes up a while page, and I don't want the footnotes to drag the readers attention by being (in this scenario) notably darker than the actual page's text...
Well, if you could help me out, I'd be quite grateful...
Code: Select all
\documentclass[russian,english,10pt,a5paper,draft]{scrbook} \usepackage{color} \definecolor{darkred}{rgb}{0.4,0,0} \usepackage[para]{footmisc} \begin{document} \setlength{\parindent}{12pt} \setlength{\parskip}{0\baselineskip} When a \emph{long} footnote...\footnote{% like this one, which should serve at least one good purpose, to show how messed up things get... } is followed by a colored one\footnote{% \color{darkred}like this... the strange thing is that the first one, with no custom color, is messed up, but not this one }, really strange things happen... \vfill Let's create a real paragraph just to show that the page boundaries are actually okay. Two lines should be enough, but three aren't worse, are they? \newpage Strange things also happen with very short footnotes\footnote{like this...} when followed by a colored one\footnote{\color{darkred}like this...}. \vfill Both scenarios together will even give more chaotic results (see next page). \newpage When a \emph{long} footnote...\footnote{% like this one, which should serve at least one good purpose, to show how messed up things get... } is followed by a colored one\footnote{% \color{darkred}like this... the strange thing is that the first one, with no custom color, is messed up, but not this one }, really strange things happen... Strange things also happen with very short footnotes\footnote{like this...} when followed by a colored one\footnote{\color{darkred}like this...}. \vfill Let's create a real paragraph just to show that the page boundaries are actually okay. Two lines should be enough, but three aren't worse, are they? \end{document}