Document Classesurl package doesn't like tildes and underscores?

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
yostsa
Posts: 11
Joined: Sat Apr 12, 2008 8:04 pm

url package doesn't like tildes and underscores?

Post by yostsa »

I'm trying to use web links in a document I'm prepping for an IEEE journal. The URLs show up ok in the PDF output with PDFLaTeX, but the links don't work. Here's a test file to demonstrate. testurl2.pdf (attached) is what I get.

\documentclass{IEEEtran}
\usepackage{url}

\begin{document}
\url{http://mme.uwaterloo.ca/~mechatro/}

\url{http://mech-eng.curtin.edu.au/ugrad_mechatronic.cfm}
\end{document}

I thought maybe it was related to the IEEE document class, so I tried the following, with output as shown on testurl.pdf (attached):

\documentclass{article}
\usepackage{url}

\begin{document}
\url{http://mme.uwaterloo.ca/~mechatro/}

\url{http://mech-eng.curtin.edu.au/ugrad_mechatronic.cfm}
\end{document}

This time the links don't even seem to be formed, as nothing pops up when I hover over the URLs.

Any ideas? Thanks!
Attachments
testurl2.pdf
(13.11 KiB) Downloaded 433 times
testurl.pdf
(9.27 KiB) Downloaded 441 times
-- Sandy

Recommended reading 2024:

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

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

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

url package doesn't like tildes and underscores?

Post by Stefan Kottwitz »

Ho yostsa,

it will work if you use the hyperref package.

Stefan
LaTeX.org admin
yostsa
Posts: 11
Joined: Sat Apr 12, 2008 8:04 pm

Re: url package doesn't like tildes and underscores?

Post by yostsa »

Thanks so much...worked great...I had been avoiding hyperref because it has so many options to confuse me, but it's not so hard after all.
-- Sandy
Post Reply