Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
sw3quant
Posts: 76 Joined: Tue Nov 02, 2010 11:40 pm
Post
by sw3quant » Thu Oct 03, 2013 1:34 pm
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 (53.05 KiB) Viewed 10775 times
mayankmi
Posts: 45 Joined: Sat Apr 20, 2013 7:52 pm
Post
by mayankmi » Thu Oct 03, 2013 7:46 pm
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
Post
by sw3quant » Thu Oct 03, 2013 7:54 pm
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
Post
by mayankmi » Sat Oct 05, 2013 8:24 am
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}