josephwright / beamer

A LaTeX class for producing presentations and slides
Other
1.44k stars 143 forks source link

Select bibicons based on biblatex entry types #646

Open samcarter opened 4 years ago

samcarter commented 4 years ago

It would be nice to have the bibicons corresponding to the biblatex entry type instead of the default article icon for all entries.

\documentclass{beamer}

\usepackage[style=authortitle]{biblatex}
\addbibresource{biblatex-examples.bib}

\begin{document}

\begin{frame}
  \frametitle{title}
  test 
  \nocite{knuth:ct:a,sigfridsson,baez/online}
  \printbibliography
\end{frame}

\end{document}
josephwright commented 4 years ago

That happens for natbib: I've never got round to sorting it for biblatex.

samcarter commented 4 years ago

@josephwright I think I have a quick hack: https://github.com/samcarter/beamer/commit/e39b79d2e410b668c9af363aa03ee3e5f7c562c6

(just taking book and online as a proof of concept, I'll have to check the whole list of default entry types)

samcarter commented 4 years ago

... and I need to find a way to not overwrite numeric labels ...

samcarter commented 4 years ago

One could avoid the problem about overwriting other styles by cheating with the pgfimage

https://github.com/samcarter/beamer/commit/ccf7cbb7a3f1b4bef9c2f46d59a388dfc3f582d3

.... but that's rather ugly ...