BibTeX, biblatex and biberHyperlink Icon in References

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Hyperlink Icon in References

Post by sw3quant »

I am generating a PDF document with a reference. Attached to the reference is a weblink. I do not wish the hyperlink to contain words, just a small www globe icon (blue/ green in color, as commonly seen on many PDF documents).

How can I achieve this?

thank you

My MWE is here:

Code: Select all

\documentclass[10pt]{article}
\usepackage{url}
\usepackage{lipsum}
\usepackage[numbers]{natbib}
\usepackage{hyperref}
\usepackage{graphicx}
\begin{document}

\lipsum[1] \citep{blah}

\bibliographystyle{unsrt}
\begin{thebibliography}{1}

\bibitem{blah}
Jo Blogs.
\newblock title .
\newblock {\em journal}, 2012.
\newblock \href{http://www.wikibooks.org}{I want this to be an icon}.

\end{thebibliography}

\end{document}
temp.jpg
temp.jpg (53.05 KiB) Viewed 10775 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm

Hyperlink Icon in References

Post by mayankmi »

Code: Select all


\documentclass[10pt]{article}
\usepackage{url}
\usepackage{lipsum}
\usepackage[numbers]{natbib}
\usepackage{marvosym} %use this pack
\usepackage{hyperref}
\usepackage{graphicx}
\begin{document}

\lipsum[1] \citep{blah}

\bibliographystyle{unsrt}
\begin{thebibliography}{1}

\bibitem{blah}
Jo Blogs.
\newblock title .
\newblock {\em journal}, 2012.
\newblock \Mundus~\url{http://www.wikibooks.org}.

\end{thebibliography}

\end{document}
sw3quant
Posts: 76
Joined: Tue Nov 02, 2010 11:40 pm

Re: Hyperlink Icon in References

Post by sw3quant »

thank you. But not quite what I need.

Your approach gives the small globe followed by the hyperlink. I wanted the globe itself to be the hyperlink.

Also: is it possible to get the globe in color?

Can these be achieved?

thank you!!!
mayankmi
Posts: 45
Joined: Sat Apr 20, 2013 7:52 pm

Hyperlink Icon in References

Post by mayankmi »

Perhaps this is what you want.

Code: Select all

\documentclass[10pt]{article}
\usepackage{url}
\usepackage{lipsum}
\usepackage[numbers]{natbib}
\usepackage{marvosym} %use this pack
\usepackage{hyperref}
\usepackage{xcolor} %for color
\usepackage{graphicx}
\begin{document}

\lipsum[1] \citep{blah}

\bibliographystyle{unsrt}
\begin{thebibliography}{1}

\bibitem{blah}
Jo Blogs.
\newblock title .
\newblock {\em journal}, 2012.
\newblock \Mundus~\url{http://www.wikibooks.org}.
\bibitem{blah1}
Jo Blogss.
\newblock title .
\newblock {\em journal}, 2013a.
\href{http://www.wikibooks.org}{\color{blue}\Mundus}
\end{thebibliography}

\end{document}
Post Reply