Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have prepared a beamer presentation for a seminar. I already have presented, but in trying to change traditionally-cited references (with a number superscript and the reference typesetted at the end of the presentation), I used biblatex's \footcite. Consider this frame snippet:

\documentclass[10pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amssymb}
\usepackage{colortbl}
\usepackage[spanish,es-tabla]{babel}  
\usepackage{wasysym}
\usepackage[style=verbose,autocite=footnote,maxnames=10,babel=hyphen,hyperref=true,abbreviate=false,backend=biber,mcite]{biblatex}
\addbibresource{references.bib}

\usepackage{pgf}
\usepackage{booktabs}
\usepackage{multirow}

\setlength{\columnsep}{.2cm}
\def\newblock{\hskip .11em plus .33em minus .07em}
\mode<presentation>
{
  \usetheme[width=4em]{PaloAlto}
  \usecolortheme{crane}
}
\title{Title}
\subtitle{Sub} 
\author[me]{me}
\date{\today}

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

    %%%%%%% MAIN CODE %%%%%%
\begin{frame}{The FDTD Method}
    \begin{columns}
        \begin{column}{0.4\textwidth}
          \begin{itemize}
              \item Discretization of both space and time by central differences.
                \item Yee Cell %\footcite{Taflove2000}. 
            \end{itemize}
        \end{column}

    \begin{column}{0.5\textwidth}
        \begin{figure}
          \centering
          \includegraphics[width=0.9\columnwidth]{some_figure}
          \caption{Unit Yee Cell.}
        \end{figure}
    \end{column}

    \end{columns}
\end{frame}

\end{document}

Put any PDF, PNG or JPG file named some_figure together with this .tex file. The content of the references.bib file (just to enable compilation) are:

@Book{Taflove2000,
    Day = {{30}},
    Edition = {{2nd}},
    Month = {{jun}},
    Publisher = {{Artech House Publishers}},
    author = {Taflove, Allen and Hagness, Susan C.},
    title = {{Computational Electrodynamics: The Finite-Difference Time-Domain Method}},
    year = {{2000}},
}

With the comment in place (that is, when not citing with \footcite) the second column containing the figure appears in the PDF output correctly. But, when the comment is removed, the citation appears at the footer of the frame, but the second column goes into oblivion along with the figure. Does anyone know how to solve this?

share|improve this question
1  
Welcome to TeX.SX! Please, add a minimal preamble in order that the code can be compiled. –  egreg Feb 11 '12 at 18:23
2  
It's the usual problem of footnotes in tabular material; you should use \footnotemark in the column environment and \footcitetext{Taflove2000} after \end{column}, but the result is not pretty. –  egreg Feb 11 '12 at 22:24
    
@egreg thanks a lot! It is certainly not a general solution, but hey, it works!. Are we waiting for someone to come up with the general solution as the answer for this question? –  Luis E. Feb 11 '12 at 22:42
1  
I'm not at all satisfied with the position of the footnote, are you? But I'm not an expert in these Beamer details. –  egreg Feb 11 '12 at 22:46

2 Answers 2

up vote 5 down vote accepted

One can avoid the problem by using the \footnotemark-\footnotetext mechanism:

\begin{column}{0.4\textwidth}
  \begin{itemize}
    \item Discretization of both space and time by central differences.
    \item Yee Cell\footnotemark
  \end{itemize}
\end{column}
\footcitetext{Taflove2000}

However this poses another problem: the text of the footnote may go over the navigation symbols, so another adjustment suggested by lockstep is needed (see this answer): the following code should go in the preamble

\addtobeamertemplate{footnote}{\vspace{-6pt}\advance\hsize-0.5cm}{\vspace{6pt}}
\makeatletter
% Alternative A: footnote rule
\renewcommand*{\footnoterule}{\kern -3pt \hrule \@width 2in \kern 8.6pt}
% Alternative B: no footnote rule
% \renewcommand*{\footnoterule}{\kern 6pt}
\makeatother

Choose your pick. I've modified the code adding also something for reducing the text width for the footnotes, or they will go all the way to the margin.

There are some errors in your .bib entry:

@Book{Taflove2000,
    Day = {30},
    Edition = {2nd},
    Month = {jun},
    Publisher = {Artech House Publishers},
    author = {Taflove, Allen and Hagness, Susan C.},
    title = {{Computational Electrodynamics: The Finite-Difference Time-Domain Method}},
    year = {2000},
}

Too many braces: Biber and biblatex are not able to understand properly the data.

share|improve this answer
    
Thanks for the heads up on the .bib formatting for biber processing. I'll be correcting the file for that. –  Luis E. Feb 12 '12 at 14:08
    
@LuisE. Note that the content of the edition field normally should be an integer with biblatex. –  lockstep Feb 12 '12 at 14:11

Here's a complete example incorporating the fixes proposed by egreg and me:

\documentclass[10pt]{beamer}

\usetheme[width=4em]{PaloAlto}
\usecolortheme{crane}

\addtobeamertemplate{footnote}{\vspace{-6pt}\advance\hsize-0.5cm}{\vspace{6pt}}
\makeatletter
% Alternative A: footnote rule
\renewcommand*{\footnoterule}{\kern -3pt \hrule \@width 2in \kern 8.6pt}
% Alternative B: no footnote rule
% \renewcommand*{\footnoterule}{\kern 6pt}
\makeatother

\usepackage[utf8]{inputenc}
\usepackage[spanish,es-tabla]{babel}  
\usepackage[style=verbose,autocite=footnote]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@Book{Taflove2000,
    Day = {30},
    Edition = {2},
    Month = {jun},
    Publisher = {Artech House Publishers},
    author = {Taflove, Allen and Hagness, Susan C.},
    title = {Computational Electrodynamics: The Finite-Difference Time-Domain Method},
    year = {2000},
}
\end{filecontents}

\addbibresource{\jobname.bib}

\begin{document}

\begin{frame}{The FDTD Method}
  \begin{columns}
    \begin{column}{0.4\textwidth}
      \begin{itemize}
      \item Discretization of both space and time by central differences.
      \item Yee Cell.\footnotemark 
      \end{itemize}
    \end{column}

    \begin{column}{0.5\textwidth}
      \begin{figure}
      \centering
      \rule{0.9\columnwidth}{2cm}% placeholder for graphic
      \caption{Unit Yee Cell.}
      \end{figure}
    \end{column}
  \end{columns}
\footcitetext{Taflove2000}
\end{frame}

\end{document}

enter image description here

share|improve this answer
    
Very interesting use of the filecontents package, I didn't know about it. Thank you! –  Luis E. Feb 12 '12 at 14:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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