GeneralNo warning when using invalid \href path

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Dorian_Gray
Posts: 2
Joined: Fri Aug 16, 2013 8:38 am

No warning when using invalid \href path

Post by Dorian_Gray »

Hello there,
I am new to this website (as well as to LaTeX).
I have one major file in which i have made references to some more detailed .pdf files on different topics. I have done this using \href{run:path}{text}. But I was thinking that it would be really helpful if LaTeX gives some kind of warning if the ''path'' is invalid. Unfortunately, when i use invalid path, i do not receive any errors/warnings. Any idea on how can I make LaTeX do this?

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

cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

No warning when using invalid \href path

Post by cgnieder »

Hi Dorian_Gray,

Welcome to the LaTeX community?
Dorian_Gray wrote:[...] I have done this using \href{run:path}{text}. But I was thinking that it would be really helpful if LaTeX gives some kind of warning if the ''path'' is invalid. [...]
How should LaTeX do this? It would need to access the link, probably ping it and see what the response is. At least if we're talking about websites. In principle a link can also be a mailto:<email address> link or a path on your computer which IMHO LaTeX really shouldn't be allowed to access.

Regards
site moderator & package author
Post Reply