Forum How do I...?

creating Table of contents with extenal html

illori
I have a TOC I have created basic formatting similar to the following
<p><a href="#Registering">Registering</a><br />
1. <a href="#When_and_How_to_Register">When and How to Register</a><br />
2. <a href="#The_Registration_Screen">The Registration Screen</a><br />
3. <a href="#Activating_A_New_Account">Activating A New Account</a><br />
</p>


my TOC page is separate from the other pages that are added to my PDF.

for example one page that I add to my PDF is http://wiki.simplemachines.org/smf/index.php?title=Registering

Using the code for the TOC above it shows up just fine in my PDF as well as does the text and links from the link to our wiki. The only issue i have is our TOC in the PDF looks like links but i can not click on any of them, the cursor does not change to a "hand" in Adobe Reader so i can click on them. Am I missing something to make the TOC actually link to the anchors that are elsewhere in the PDF?

I am used the prince-9.0r2-setup.exe to install prince, I have been using the command line to generate the PDF if that matters any. I also tested the same files on kubuntu with the same result.

Thanks.
mikeday
These links will work if they are in the same file, but if they are in different files you will need to include the filename in the link. For example, if you have toc.html and book.html, the links in toc.html will look like "book.html#Registering" and so on.
illori
if the link is to a website remote from where the file is, how to link that? would Registering#Registering work? there is no .html file name to link. if i put the whole link then it would link to the website and not the location in the PDF.
mikeday
In that case the link can be:
<a href="http://wiki.simplemachines.org/smf/index.php?title=Registering#Registering">Registering</a>

I assume you are running Prince with multiple input files, like this:
$ prince -o output.pdf toc.html http://wiki.simplemachines.org/smf/index.php?title=Registering
illori
Ah thanks, I thought I had tried that before and it did not work, but that is working now.