Commits

Alan Munn  committed c7c9e29

Added corrections to bibliography item handling based on discussion here: http://tex.stackexchange.com/q/47540/2693. Code provided by Audrey.

  • Participants
  • Parent commits 0db9e81

Comments (0)

Files changed (1)

File base/beamerbaselocalstructure.sty

         \usebeamerfont{bibliography entry note}%
         \usebeamertemplate{bibliography entry note}}}}%
   \leavevmode\setbox\beamer@tempbox=\hbox{}\ht\beamer@tempbox=1.5em\box\beamer@tempbox}
- 	
-\AtBeginDocument{
+
+% The following code provided by Audrey http://tex.stackexchange.com/q/47540/2693	
+\AtBeginDocument{%
   \@ifpackageloaded{biblatex}
-    {
-      \apptocmd\blx@env@bibliography{\let\makelabel\beamer@biblabeltemplate}{}{}
-      \pretocmd{\abx@macro@author}{\usebeamercolor[fg]{bibliography entry author}}{}{}
-      \pretocmd{\abx@macro@editor}{\usebeamercolor[fg]{bibliography entry author}}{}{}
-      \pretocmd{\abx@macro@title}{\blx@unitpunct\blx@postpunct\newblock\usebeamercolor[fg]{bibliography entry title}}{}{}
-      \apptocmd{\abx@macro@title}{\blx@unitpunct\blx@postpunct\newblock\usebeamercolor[fg]{bibliography entry note}}{}{}
-    }
+    {\apptocmd{\blx@env@bibliography}
+       {\let\makelabel\beamer@biblabeltemplate}{}{}
+     \apptocmd{\abx@macro@begentry}{\usebeamercolor[fg]{bibliography entry author}}{}{}
+     \pretocmd{\abx@macro@title}
+        {\ifcsundef{abx@name@labelname}{}{\blx@unitpunct\blx@postpunct}%
+         \newblock\usebeamercolor[fg]{bibliography entry title}}{}{}
+     \apptocmd{\abx@macro@title}
+        {\ifcsundef{abx@field@title}{}{\blx@unitpunct\blx@postpunct}%
+         \newblock\usebeamercolor[fg]{bibliography entry note}}{}{}}
     {}
 }