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 471 times
testurl.pdf
(9.27 KiB) Downloaded 486 times
-- Sandy

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
Stefan Kottwitz
Site Admin
Posts: 10360
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