Beamer Bibliography Icon












57















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





























    57















    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



























      57












      57








      57


      35






      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
















      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 ?







      beamer bibliographies






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 21 '12 at 16:01









      Gonzalo Medina

      403k4113191583




      403k4113191583










      asked Aug 21 '12 at 15:42









      FryFry

      7971916




      7971916






















          2 Answers
          2






          active

          oldest

          votes


















          62














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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          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
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here



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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          setbeamertemplate{bibliography item}{includegraphics[width=1.5em]{ctanlion}}
          bibitem{A} CTAN lion drawing by Duane Bibby.
          end{thebibliography}
          end{frame}

          end{document}


          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



















          42














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



          documentclass{beamer}
          usepackage[style=authoryear]{biblatex}
          usepackage{hyperref}

          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]}
          {ifentrytype{online}
          {setbeamertemplate{bibliography item}[online]}
          {setbeamertemplate{bibliography item}[article]}}%
          usebeamertemplate{bibliography item}}

          defbibenvironment{bibliography}
          {list{}
          {settowidth{labelwidth}{usebeamertemplate{bibliography item}}%
          setlength{leftmargin}{labelwidth}%
          setlength{labelsep}{biblabelsep}%
          addtolength{leftmargin}{labelsep}%
          setlength{itemsep}{bibitemsep}%
          setlength{parsep}{bibparsep}}}
          {endlist}
          {item}

          addbibresource{biblatex-examples.bib}
          begin{document}
          nocite{glashow,markey,knuth:ct:a,knuth:ct:b,companion,bertram,ctan}
          begin{frame}[noframenumbering,plain,allowframebreaks]{References}
          printbibliography
          end{frame}
          end{document}


          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








          • 1





            Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

            – Waldir Leoncio
            Jun 15 '17 at 14:16











          • @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

            – gr4nt3d
            Jan 4 '18 at 23:34












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "85"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f68080%2fbeamer-bibliography-icon%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          62














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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          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
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here



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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          setbeamertemplate{bibliography item}{includegraphics[width=1.5em]{ctanlion}}
          bibitem{A} CTAN lion drawing by Duane Bibby.
          end{thebibliography}
          end{frame}

          end{document}


          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
















          62














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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          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
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here



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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          setbeamertemplate{bibliography item}{includegraphics[width=1.5em]{ctanlion}}
          bibitem{A} CTAN lion drawing by Duane Bibby.
          end{thebibliography}
          end{frame}

          end{document}


          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














          62












          62








          62







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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          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
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here



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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          setbeamertemplate{bibliography item}{includegraphics[width=1.5em]{ctanlion}}
          bibitem{A} CTAN lion drawing by Duane Bibby.
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here






          share|improve this answer















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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          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
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here



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



          documentclass{beamer}

          begin{document}

          begin{frame}
          begin{thebibliography}{9}
          setbeamertemplate{bibliography item}{includegraphics[width=1.5em]{ctanlion}}
          bibitem{A} CTAN lion drawing by Duane Bibby.
          end{thebibliography}
          end{frame}

          end{document}


          enter image description here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Aug 21 '12 at 15:55

























          answered Aug 21 '12 at 15:48









          Gonzalo MedinaGonzalo Medina

          403k4113191583




          403k4113191583













          • 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



















          • 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

















          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





          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







          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





          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





          @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











          42














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



          documentclass{beamer}
          usepackage[style=authoryear]{biblatex}
          usepackage{hyperref}

          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]}
          {ifentrytype{online}
          {setbeamertemplate{bibliography item}[online]}
          {setbeamertemplate{bibliography item}[article]}}%
          usebeamertemplate{bibliography item}}

          defbibenvironment{bibliography}
          {list{}
          {settowidth{labelwidth}{usebeamertemplate{bibliography item}}%
          setlength{leftmargin}{labelwidth}%
          setlength{labelsep}{biblabelsep}%
          addtolength{leftmargin}{labelsep}%
          setlength{itemsep}{bibitemsep}%
          setlength{parsep}{bibparsep}}}
          {endlist}
          {item}

          addbibresource{biblatex-examples.bib}
          begin{document}
          nocite{glashow,markey,knuth:ct:a,knuth:ct:b,companion,bertram,ctan}
          begin{frame}[noframenumbering,plain,allowframebreaks]{References}
          printbibliography
          end{frame}
          end{document}


          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








          • 1





            Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

            – Waldir Leoncio
            Jun 15 '17 at 14:16











          • @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

            – gr4nt3d
            Jan 4 '18 at 23:34
















          42














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



          documentclass{beamer}
          usepackage[style=authoryear]{biblatex}
          usepackage{hyperref}

          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]}
          {ifentrytype{online}
          {setbeamertemplate{bibliography item}[online]}
          {setbeamertemplate{bibliography item}[article]}}%
          usebeamertemplate{bibliography item}}

          defbibenvironment{bibliography}
          {list{}
          {settowidth{labelwidth}{usebeamertemplate{bibliography item}}%
          setlength{leftmargin}{labelwidth}%
          setlength{labelsep}{biblabelsep}%
          addtolength{leftmargin}{labelsep}%
          setlength{itemsep}{bibitemsep}%
          setlength{parsep}{bibparsep}}}
          {endlist}
          {item}

          addbibresource{biblatex-examples.bib}
          begin{document}
          nocite{glashow,markey,knuth:ct:a,knuth:ct:b,companion,bertram,ctan}
          begin{frame}[noframenumbering,plain,allowframebreaks]{References}
          printbibliography
          end{frame}
          end{document}


          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








          • 1





            Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

            – Waldir Leoncio
            Jun 15 '17 at 14:16











          • @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

            – gr4nt3d
            Jan 4 '18 at 23:34














          42












          42








          42







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



          documentclass{beamer}
          usepackage[style=authoryear]{biblatex}
          usepackage{hyperref}

          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]}
          {ifentrytype{online}
          {setbeamertemplate{bibliography item}[online]}
          {setbeamertemplate{bibliography item}[article]}}%
          usebeamertemplate{bibliography item}}

          defbibenvironment{bibliography}
          {list{}
          {settowidth{labelwidth}{usebeamertemplate{bibliography item}}%
          setlength{leftmargin}{labelwidth}%
          setlength{labelsep}{biblabelsep}%
          addtolength{leftmargin}{labelsep}%
          setlength{itemsep}{bibitemsep}%
          setlength{parsep}{bibparsep}}}
          {endlist}
          {item}

          addbibresource{biblatex-examples.bib}
          begin{document}
          nocite{glashow,markey,knuth:ct:a,knuth:ct:b,companion,bertram,ctan}
          begin{frame}[noframenumbering,plain,allowframebreaks]{References}
          printbibliography
          end{frame}
          end{document}


          enter image description here






          share|improve this answer













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



          documentclass{beamer}
          usepackage[style=authoryear]{biblatex}
          usepackage{hyperref}

          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]}
          {ifentrytype{online}
          {setbeamertemplate{bibliography item}[online]}
          {setbeamertemplate{bibliography item}[article]}}%
          usebeamertemplate{bibliography item}}

          defbibenvironment{bibliography}
          {list{}
          {settowidth{labelwidth}{usebeamertemplate{bibliography item}}%
          setlength{leftmargin}{labelwidth}%
          setlength{labelsep}{biblabelsep}%
          addtolength{leftmargin}{labelsep}%
          setlength{itemsep}{bibitemsep}%
          setlength{parsep}{bibparsep}}}
          {endlist}
          {item}

          addbibresource{biblatex-examples.bib}
          begin{document}
          nocite{glashow,markey,knuth:ct:a,knuth:ct:b,companion,bertram,ctan}
          begin{frame}[noframenumbering,plain,allowframebreaks]{References}
          printbibliography
          end{frame}
          end{document}


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 21 '12 at 15:59









          AudreyAudrey

          25.1k292146




          25.1k292146













          • 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








          • 1





            Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

            – Waldir Leoncio
            Jun 15 '17 at 14:16











          • @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

            – gr4nt3d
            Jan 4 '18 at 23:34



















          • 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








          • 1





            Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

            – Waldir Leoncio
            Jun 15 '17 at 14:16











          • @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

            – gr4nt3d
            Jan 4 '18 at 23:34

















          Ah, this is nice!

          – Gonzalo Medina
          Aug 21 '12 at 15:59





          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





          @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







          How can we put two bibitems (that is in form of icons) horizontally after some spaces?

          – Deepesh Patel
          Jun 13 '14 at 16:54






          1




          1





          Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

          – Waldir Leoncio
          Jun 15 '17 at 14:16





          Wonderful! In the meantime, your code solved an issue I was having where the bib icons were bleeding over the left margin. I'm glad I came upon this while searching for something else. XD

          – Waldir Leoncio
          Jun 15 '17 at 14:16













          @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

          – gr4nt3d
          Jan 4 '18 at 23:34





          @Audrey, wonderful solution! However, I am using a modification from here and here renewcommand*{bibfont}{tiny} renewcommand{pgfuseimage}[1]{lower-3pthbox{hskip15pt{scalebox{.5}{includegraphics{#1}}}hskip-10pt}} and added webpage to your ifentrytype{online}. With this setup, somehow the globe symbol is not scaled. How can I fix that?

          – gr4nt3d
          Jan 4 '18 at 23:34


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f68080%2fbeamer-bibliography-icon%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?