Browse Source

PDF→EPUB: Recommend the sue of “endnotes” instead of “footnotes”.

They are technically end-notes, after all.
main
tastytea 1 week ago
parent
commit
c8e3d7fef7
Signed by: tastytea GPG Key ID: CFC39497F1B26E07
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      content/posts/how-i-convert-pdfs-to-epub.adoc

+ 7
- 7
content/posts/how-i-convert-pdfs-to-epub.adoc View File

@ -209,13 +209,13 @@ Once you are done, copy the result into Calibre.
Use the method from above to copy the footnotes into the now empty Emacs buffer
and clean them up until you have 1 paragraph per line. Footnotes need to be
hyperlink-able, so we can't just wrap them in plain `<p>` tags, they need IDs. I
like to use `<li epub:type="footnote" id="fn1">[…]</li>` if the footnote numbers
are increasing throughout the book or `<li epub:type="footnote"
like to use `<li epub:type="endnote" id="fn1">[…]</li>` if the footnote numbers
are increasing throughout the book or `<li epub:type="endnote"
id="fn1_1">[…]</li>` if they start with 1 in each chapter. We are going to use a
macro with a counter to generate consecutively numbered IDs. First, set the
counter to 1 with kbd:[C-x] kbd:[C-k] kbd:[C-c] `1`. Then, record this macro:
`<li epub:type="footnote" id="fn1_` kbd:[C-x] kbd:[C-k] kbd:[<tab>] `">`
`<li epub:type="endnote" id="fn1_` kbd:[C-x] kbd:[C-k] kbd:[<tab>] `">`
kbd:[<end>] `</li>` kbd:[<down>] kbd:[<down>] kbd:[<home>]
[TIP]
@ -224,14 +224,14 @@ out what a key combination does.
Call the macro until every footnote is wrapped and copy them to the end of the
chapter or the end of the book in Calibre. Wrap them in `<section
epub:type="footnotes" role="doc-footnotes"><ol>[…]</ol></section>`
epub:type="endnotes" role="doc-endnotes"><ol>[…]</ol></section>`
[NOTE]
If the notes appear at the bottom of each page, they are called “footnotes”
(`epub:type="footnote"`). If they appear at the end of each chapter or the end
of the book, they are called “endnotes”. (`epub:type="endnote"`). The difference
is that some e-book readers display footnotes on the same page where the link
to them is even if you put all footnotes at the end of the chapter / book.
of the book, they are called “endnotes”. (`epub:type="endnote"`). Some e-book
readers display footnotes on the same page where the link to them is even if you
put all footnotes at the end of the chapter / book.
=== Add references to footnotes


Loading…
Cancel
Save