GeneralWebsite Links Using '%' Symbol Not Compiling

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Sportchek_07
Posts: 3
Joined: Fri Nov 15, 2013 11:35 pm

Website Links Using '%' Symbol Not Compiling

Post by Sportchek_07 »

Hello,

I have recently discovered that when trying to insert links to pdf or image files which use the '%' symbol into my latex code do not compile properly because everything after the '%' symbol are highlighted red and aren't read as code.
I have tried to download the pdf files and link them through my computer, but I constantly send the pdfs I make to my company on a regular basis, and sending all attached pdfs into a folder through email is a waste of time, and sometimes exceeds my email size limit so I am using url links now.

An example would be:

Code: Select all

http://www.example.com/this20%is20%an20%example.pdf
I am using the following code:

Code: Select all

\usepackage{hyperref}
\href{www.example.com/this20%is20%an20%example.pdf}{(Link)}
Any ideas?

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

Sportchek_07
Posts: 3
Joined: Fri Nov 15, 2013 11:35 pm

Re: Website Links Using '%' Symbol Not Compiling

Post by Sportchek_07 »

Also, using the '&' symbol doesn't get read and doesn't compile
User avatar
tom
Posts: 73
Joined: Thu Apr 18, 2013 4:02 am

Website Links Using '%' Symbol Not Compiling

Post by tom »

Have a look at the answer to a similar question here.

Hope it helps!
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Website Links Using '%' Symbol Not Compiling

Post by josephwright »

Please add a minimal working example showing how you are using this: the

Code: Select all

\href
command should deal correctly with percents.
Joseph Wright
Post Reply