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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
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