Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid linking URL in Latex

Tags:

latex

hyperref

I'm using hyperref in my latex document. In the references I have an URL, and the hyperref package creates a click able link automatically.

However, I need that that URL is not linked; but the rest of the document internal links should be.

I cannot find a way of just tell latex that avoid that one. For the references, I'm using a bib file.

I already try the \nolinkurl{ulr} macro, but in the final pdf the link is created anyway.

like image 488
adn Avatar asked Mar 09 '11 00:03

adn


People also ask

How do I remove a citation link in LaTeX?

You can add \hypersetup{nolinks=true} to get rid of all hyperlinks in your document.

How do I make a clickable URL in LaTeX?

Links to a web address or email can added to a LaTeX file using the \url command to display the actual link or \href to use a hidden link and show a word/sentence instead. There are two commands in the example that generate a link in the final document: \href{http://www.overleaf.com}{Something Linky}

Can we change color of a hyperlink using LaTeX if so how LaTeX?

Changing LaTeX Hyperlink Color Generally, default color is OK. However, if you wish to change the default settings of hyperlink color, you have to use \hypersetup command in your document preamble.


1 Answers

Are you sure that it is a problem with your pdf and not with the pdf viewer?

To test, I created this simple LaTeX document. In the built-in Chrome pdf viewer, all three urls are linked. In Adobe Reader, only the \url{} one is actually linked. Foxit also only creates a link for the explicit \url{} macro.

\documentclass{article}
\usepackage{hyperref}
\begin{document}
This one should link \url{http://www.google.com}

This one should explicitly not link \nolinkurl{http://www.google.com}

This one is absolutely plain text http://www.google.com
\end{document}
like image 130
Pyrodogg Avatar answered Sep 22 '22 04:09

Pyrodogg