Text Formatting\href pointing on html page

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
71GA
Posts: 5
Joined: Fri Aug 27, 2010 8:40 pm

\href pointing on html page

Post by 71GA »

Hello i am new to LaTeX and have a problem. I have a homepage where i have multiple PDF documents written in LaTeX. I would like to connect them with href, but i would like to use relative href, so that my page once put on another server still works.

Problem is that PDF files are in lower folders so i have to go up multiple levels to get to index page.

I ve tried using command

Code: Select all

\href{../../index.html}{home page}
to go up 2 levels and find index page there, but this aint working for me. Anyone knows a solution?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

71GA
Posts: 5
Joined: Fri Aug 27, 2010 8:40 pm

\href pointing on html page

Post by 71GA »

SOLVED!

I needed to set base url. Do this by typing

Code: Select all

\hyperbaseurl{url to the map where tex document is located}
in a head of a document

GG Me :)
Post Reply