Thanks! That’s very clever; I've tried it and it works.
However, this method has some inconveniences.
- If you are using automatically numbered footnotes, the counter will not be incremented until the <div> with the footnote body appears. This, however, could be solved relatively easy by using a manual counter for both type of notes.
- If the paragraph is splitted in two pages and the call is in the beginning, the call will be in one page and the note in the other. This is especially relevant when working with older text, which tend to have very large paragraphs (sometimes occupying several pages).
- If there’s another footnote after the call and before the paragraph ending, then the later will appear before the former in the footnote area, and with the same number (depending on how the counter is incremented).
So, I kept thinking and came with a surprisingly simple solution: put every paragraph of the footnote between a span and then display then as block. Something like
<p>This is a paragraph in the body of the text<span class="footnote"><span class="footnote-p">And this is a footnote with two fake paragraphs. This is the first one.</span><span class="footnote-p">And this is the second one.</span></span> with many important thing to say.</p>
And the relevant css
span.footnote-p {display: block;}
span.footnote-p + span.footnote-p {text-indent: 2ex;}
This keep the code cleaner and avoid the problems listed above. I attach a working html for anyone interested to see.
- footnotes-span.html 2.8 kB