Forum Moderators: not2easy

Message Too Old, No Replies

How to print footnotes?

question printing footnotes

         

davee123

3:38 pm on Oct 17, 2006 (gmt 0)

10+ Year Member



So, I'm trying to get footnotes to print "correctly" (as they would in a book or from, say, MS-Word). How do I do it?

A little more specifically:

The HTML document I'm printing is generated dynamically on the server-side. It might be 50 pages, it might be 5. I could turn all the footnotes into *end*notes, and print them out at the end of the document, but that's less than optimal, since whoever's printing out my document would have to flip to the *end* when they could be looking at the bottom of the page that they're already on.

Ultimate fantasy solution:

What I'd *like* is something that prints the notes at the *bottom* of the page where the footnote appeared. So if the footnote showed up on page 6, the note itself should show up at the bottom of page 6.

Also, let me clarify "bottom". Because of explicit page breaks, a page might consist of a few lines of text, then whitespace for the rest of the page. If a footnote were to show up on that page, I'd *like* it to show up *AFTER* the whitespace, at the bottom, rather than simply after the end of the text.

Oh yeah, that'd be sweet.

Maybe a more realistic solution:

The document is divided into sections. I may just print the notes at the end of the respective section (quasi-endnotes), but I'd still like them to be at the *bottom* of the page.

Less sweet, but still sweet.

Any ideas?

DaveE

jalarie

2:45 pm on Oct 18, 2006 (gmt 0)

10+ Year Member



Since you already have explicit page breaks, you know where to put the footnotes for each page. I use code like the following:

Some text needing a footnote
<a href="#footnote1" name="footnotes_link1" title="footnotes" class="footnotelink">1</a>
and some more after it. A second need
<a href="#footnote2" name="footnotes_link2" title="footnotes" class="footnotelink">2</a>
for a footnote.

<div class="footnotes">
<a name="footnotes" id="footnotes" title="footnotes"></a>
Notes:&nbsp;
<div class="footnote">
<a href="#footnotes_link1" name="footnote1" id="footnote1" title="footnote1">
1</a>.&nbsp;
This is the info for the first footnote.
</div>
<div class="footnote">
<a href="#footnotes_link2" name="footnote2" id="footnote2" title="footnote2">
2</a>.&nbsp;
Info for second footnote.
</div>
</div>

davee123

4:17 pm on Oct 18, 2006 (gmt 0)

10+ Year Member



Um. Not quite what I'm interested in-- unless perhaps you're saying that there's already a footnote style that's been predefined somewhere (where if so?) which will do what I'm after.

A little more explicitly, here's what I want:
[images.suave.net...]

The part labelled "OK" is easy. I've done that already. And I don't really care what it looks like in the browser. Well, I do, but I already know how to manipulate that however I want. The thing I *don't* know is how to make it *print* correctly, without resorting to somehow exporting it as an RTF or .doc format.

The things I'd like that I'm not finding:

1) Where to place the note text:
- is there a directive that will say "place element X (the note text) on the same printed page as element Y (the footnote marker)"?
- is there a query I can make that will detect what printed page element Y (the footnote marker) will display on, so that I can *move* my footnote text accordingly and dynamically?

2) How can I put the note text explicitly at the bottom of the printed page? IE, after however much whitespace is determined to be needed to fill the page.

DaveE

jalarie

1:46 pm on Oct 19, 2006 (gmt 0)

10+ Year Member



Ah! I thought you meant that you had already defined the five page-break points. What I offered will not help with what you currently have. Sorry.