6

I use biblatex with citestyle=verbose inside beamer.

With this style, the name of the author is automatically colored, and also the title. That is a nice feature ... except if you cite your a work inside a title of a beamer block: you can't read anything, because it becomes, with for example the Darmstadt theme, blue on blue.

See my minimal example following:

\documentclass{beamer}
\usepackage{fontspec}
\usetheme{Darmstadt}
\usepackage[citestyle=verbose]{biblatex}

\addbibresource{biblio.bib}
\begin{filecontents}{biblio.bib}
@book{Augustin,
    Author={Augustin},
    Title={La cité de Dieu}
}
\end{filecontents}
\begin{document}
\begin{frame}
\begin{block}{\cite{Augustin}}

blabla
\end{block}
\end{frame}
\end{document}

Any idea to disable this feature of coloring ?

2
6
+50

Based on the answer https://tex.stackexchange.com/a/123145/36296 you can work around this problem by defining your custom cite command to be used in the block title. Like this, you can keep the nice colouring feature for the rest of the presentation.

\documentclass{beamer}
\usetheme{Darmstadt}
\usepackage[citestyle=verbose,backend=biber]{biblatex}

\begin{filecontents}{biblio.bib}
    @book{Augustin,
        Author={Augustin},
        Title={La cite de Dieu}
    }
\end{filecontents}

\addbibresource{biblio.bib}

\DeclareCiteCommand{\customcite}
  {\boolfalse{citetracker}%
   \boolfalse{pagetracker}%
   \usebibmacro{prenote}}
  {\ifciteindex
     {\indexnames{labelname}%
      \indexfield{indextitle}}
     {}%
   \printnames{labelname}%
   \setunit{\labelnamepunct}%
   \printfield[citetitle]{labeltitle}%
   \newunit
   \printfield{year}}
  {\multicitedelim}
  {\usebibmacro{postnote}}


\begin{document}

    \begin{frame}
        \begin{block}{\customcite{Augustin}}
            blabla \cite{Augustin}
        \end{block}
    \end{frame}

    \begin{frame}[t,allowframebreaks]
        \frametitle{References}
        \printbibliography
    \end{frame}

\end{document}

enter image description here

1
  • yes, that work! just before sending the bounty, I will wait if other people have other solution... – Maïeul Aug 14 '14 at 18:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.