1

I have the following issue with hyperref and accented characters that I can't work out:

\documentclass[12pt]{article}

\usepackage[utf8]{inputenc}
\usepackage{hyperref}

\begin{document}

\href{http://epfl.academia.edu/AlejandroAragón}{my academic profile}

\href{http://epfl.academia.edu/AlejandroArag\'{o}n}{my academic profile}

\href{http://epfl.academia.edu/AlejandroAragón}{my academic profile}

\end{document} 

None of the resulting links take me to the right link in the browser, and actually the first two are disabled (they don't do anything). Am I missing something?

SOLUTION

I just replaced it by the following line:

\href{http://epfl.academia.edu/AlejandroArag\%C3\%B3n}{my academic profile}
aaragon
  • 3,041

1 Answers1

1

You are missing \usepackage[T1]{fontenc} before \usepackage[utf8]{inputenc}

If you run this:

\documentclass[12pt]{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}

\begin{document}

\href{http://epfl.academia.edu/AlejandroAragón}{my academic profile}

\href{http://epfl.academia.edu/AlejandroArag\'{o}n}{my academic profile}

\href{http://epfl.academia.edu/AlejandroAragón}{my academic profile}

\end{document} 

Your output will have link 1 and 2 working perfectly. Link 3 seems broken.

Mario S. E.
  • 18,609