TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to list my references in a beamer presentation using thebibliography environment, with the nice little

  • book icon (\beamertemplatebookbibitems) and

  • article icon (\beamertemplatearticlebibitems)

in front of each source.

Is there an icon for websites too? something like \beamertemplatewebsitebibitems? If not, is there a way to implement this easily ?

share|improve this question
up vote 40 down vote accepted

There's the online option for the bibliography item template; an example showing the predefined options:



\setbeamertemplate{bibliography item}[online]
\bibitem{A} ItemA
\setbeamertemplate{bibliography item}[book]
\bibitem{B} ItemB
\setbeamertemplate{bibliography item}[article]
\bibitem{C} ItemC
\setbeamertemplate{bibliography item}[triangle]
\bibitem{D} ItemD
\setbeamertemplate{bibliography item}[text]
\bibitem{E} ItemE


enter image description here

Of course, you can also use your own image(s):



\setbeamertemplate{bibliography item}{\includegraphics[width=1.5em]{ctanlion}}
\bibitem{A} CTAN lion drawing by Duane Bibby.


enter image description here

share|improve this answer
when i compile your exact same code, i get an article icon instead of the online icon. the other icons are okay. no compilation error at all. i noticed that using [onlinee], [bookk] or [some_string] produces article icons as well without error messages. am i using an old version of some package ? i use Texmaker 3.3.4 on Win XP and MiKTeX 2.9.3888 – Fry Aug 22 '12 at 7:51
And i think i have Biblatex installed, because when i type kpsewhich biblatex.sty to cmd.exe i get: C:/Program Files/Latex/Installation/tex/latex/biblatex/biblatex.sty – Fry Aug 22 '12 at 8:10
Workaround: got my own online icon (google) and included it like you described. perfect. – Fry Aug 22 '12 at 10:19
@Fry yes, if online doesn't give you the icon that appears in the image of my answer, you might have an old version of some package(s): update your system (MikTeX has a package manager for that (I don't use MikTeX)). My answer has nothing to do with biblatex; you are generating your bibliography without it as you said in your question, so my answer works independently of biblatex. Yes, as I mentioned in my answer, you can use your own images. – Gonzalo Medina Aug 22 '12 at 16:30

With biblatex you can extend the bibliography item template to automatically select the appropriate icon.


\setbeamertemplate{bibliography item}{%
  \ifboolexpr{ test {\ifentrytype{book}} or test {\ifentrytype{mvbook}}
    or test {\ifentrytype{collection}} or test {\ifentrytype{mvcollection}}
    or test {\ifentrytype{reference}} or test {\ifentrytype{mvreference}} }
    {\setbeamertemplate{bibliography item}[book]}
       {\setbeamertemplate{bibliography item}[online]}
       {\setbeamertemplate{bibliography item}[article]}}%
  \usebeamertemplate{bibliography item}}

     {\settowidth{\labelwidth}{\usebeamertemplate{bibliography item}}%


enter image description here

share|improve this answer
Ah, this is nice! – Gonzalo Medina Aug 21 '12 at 15:59
@GonzaloMedina Thanks. I've been waiting to pull this out of my custom beamer style for awhile now. – Audrey Aug 21 '12 at 16:03
How can we put two bibitems (that is in form of icons) horizontally after some spaces? – Deepesh Patel Jun 13 '14 at 16:54

Your Answer


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.