summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty')
-rw-r--r--macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty23
1 files changed, 23 insertions, 0 deletions
diff --git a/macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty b/macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty
index adf021aae7..c0d85832b5 100644
--- a/macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty
+++ b/macros/latex/contrib/beamer/base/beamerbaselocalstructure.sty
@@ -495,6 +495,29 @@
{\ifcsundef{abx@field@title}{}{\ifpunct{}{\midsentence\newunitpunct}}%
\newblock\unspace\usebeamercolor[fg]{bibliography entry note}}{}{}}
{}}
+
+% Adding patches to some biblatex styles
+\csappto{blx@filehook@postload@numeric.bbx}{%
+ \mode<presentation>{\setbeamertemplate{bibliography item}{\insertbiblabel}}}
+\csappto{blx@filehook@postload@alphabetic.bbx}{%
+ \mode<presentation>{\setbeamertemplate{bibliography item}{\insertbiblabel}}}
+\csappto{blx@filehook@postload@authoryear.bbx}{%
+ \mode<presentation>{%
+ \newlength{\beamer@bibiconwidth}
+ \settowidth\beamer@bibiconwidth{\usebeamertemplate*{bibliography item}}
+ \setlength{\labelwidth}{-\beamer@bibiconwidth}
+ \addtolength{\labelwidth}{2\labelsep}
+ \addtolength{\bibhang}{\labelsep}
+ }}
+\csappto{blx@filehook@postload@authortitle.bbx}{%
+ \mode<presentation>{%
+ \newlength{\beamer@bibiconwidth}
+ \settowidth\beamer@bibiconwidth{\usebeamertemplate*{bibliography item}}
+ \setlength{\labelwidth}{-\beamer@bibiconwidth}
+ \addtolength{\labelwidth}{2\labelsep}
+ \addtolength{\bibhang}{\labelsep}
+ }}
+
\mode
<article>