From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neal Becker Subject: Re: beamer: need to add latex for footnote citation Date: Tue, 22 Apr 2014 10:30:40 -0400 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43418) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcbix-00041T-83 for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 10:31:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wcbip-0001j0-KJ for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 10:31:03 -0400 Received: from plane.gmane.org ([80.91.229.3]:50006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wcbip-0001iv-DQ for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 10:30:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wcbio-0000M9-FW for emacs-orgmode@gnu.org; Tue, 22 Apr 2014 16:30:54 +0200 Received: from exa2-in-fw-01-epn.hns.com ([139.85.223.11]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 16:30:54 +0200 Received: from ndbecker2 by exa2-in-fw-01-epn.hns.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 22 Apr 2014 16:30:54 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Neal Becker wrote: > Otto Pichlhöfer wrote: > >> Neal Becker gmail.com> writes: >> >>> >>> If I edit the latex, this will do what I want: >>> >>> - Extend differential detection to exploit differences over different >>> symbol intervals (spans) >>> \footfullcite{gpdi} >>> >>> This adds a biblatex citation as a footnote on the frame. >>> >>> How can I do this within emacs org? >>> >>> >> >> >> #+BEAMER_HEADER: \usepackage[style=nejm, url=false, backend=biber]{biblatex} >> >> ...in the header works for me. >> >> Regards, > > My problem is how to add the citation? > > If I put > #+Latex: \footfullcite{gpdi} > > Then the footnotemark (1) will appear on the start of a newline, not at the > end of the previous sentence where it belongs. Looks like what I needed was: 1. install emacs-bib 2. in .emacs: (org-add-link-type "ebib" 'ebib) (org-add-link-type "footfullcite" 'ebib (lambda (path desc format) (cond ((eq format 'html) (format "(%s)" path)) ((eq format 'latex) (if (or (not desc) (equal 0 (search "footfullcite:" desc))) (format "\\footfullcite{%s}" path) (format "\\footfullcite[%s][%s]{%s}" (cadr (split-string desc ";")) (car (split-string desc ";")) path)))))) Then I can use [[fullfootcite:gpdi]] to get my footnote citation