Quote:
Originally Posted by rjwse@aol.com
A new feature in calibre lets you produce hyperlinks with a saved template. I have searched the user documentation of calibre and have not seen a tutorial to this. I am confused on how to use this. I would be grateful if someone could provide detailed instructions how to make use of this. I cannot understand the far-right panel "choose a location (anchor) in the file" nor how to set up in general. Best regards, Pop
|
I guess you are interested on the the Template feature, right?
Since your post title is about endnotes, let me give you an example:
Take a look at this normal text inside a chapter:
Code:
<p>This is a normal text with an endnote reference1</p>
Supose your reference is the number "1" left in there:
- Select the text you want to be your clickable link (in this case: "1")
- Click on the button "Insert Hyperlink"
- On the new window, choose the file you will link to and its anchor (see @Tex2002ans detailed explanation above)
- Now, on the template field, you must create a pattern that will be repeatable for all you hyperlinks
Since you want to format endnotes, here is an example of a template for an endnote on a EPUB3 file:
Code:
<a href="_TARGET_" class="notes" epub:type="noteref" role="doc-noteref" title="Endnote reference" id="noteref__TEXT_">_TEXT_</a>
Every link will have this structure, so you don't have to repeat it everytime. This is just an example and you can change it to fit your needs.
The only thing I suggest is not to use
<sup> on you code. Use css 'vertical-align' instead:
Code:
a.notes {
vertical-align: super;
line-height: normal;
font-size: smaller;
}