Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I would like to insert the following text:

\href{http://en.wikipedia.org/wiki/List_of_successful_coups_d'état}{http://en.wikipedia.org/wiki/List\_of\_successful\_coups\_d'état}

However, that doesn't work because of the special character é in the first entry. Is there any way to get it working? I am not using \url because I don't want it to be formatted. But if someone knows how to prevent \url from changing the font, that would solve the problem, too.

Thanks.

share|improve this question
    
Welcome to TeX.SX. Please provide a minimmal example (ME) that includes the entire LaTeX source and that demonstrates the problem. –  Marc van Dongen Dec 16 '12 at 12:44
3  
If you've loaded \usepackage[utf8]{inputenc} and \usepackage[T1]{fontenc}, it should work without problems. –  Jake Dec 16 '12 at 12:52
2  
For your second question: Typeset URL in a non-typewriter font –  Jake Dec 16 '12 at 12:53
2  
Use %E9 instead of é in the first argument. This is called URL encoding. –  cyberSingularity Dec 16 '12 at 12:58
add comment

1 Answer

To summarise the suggestions in the comments, the following should all work if your file is saved with a UTF8 encoding:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\begin{document}
\href{http://en.wikipedia.org/wiki/List_of_successful_coups_d'état}{http://en.wikipedia.org/wiki/List\_of\_successful\_coups\_d'état}

\href{http://en.wikipedia.org/wiki/List_of_successful_coups_d'\%E9tat}{http://en.wikipedia.org/wiki/List\_of\_successful\_coups\_d'état}

\urlstyle{same}
\url{http://en.wikipedia.org/wiki/List_of_successful_coups_d'état}
\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.