emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] beamer: need to add latex for footnote citation


From: Neal Becker
Subject: Re: [O] beamer: need to add latex for footnote citation
Date: Tue, 22 Apr 2014 10:30:40 -0400
User-agent: KNode/4.12.4

Neal Becker wrote:

> Otto Pichlhöfer wrote:
> 
>> Neal Becker <ndbecker2 <at> 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 "(<cite>%s</cite>)" 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]