emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Neal Becker <ndbecker2@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: beamer: need to add latex for footnote citation
Date: Tue, 22 Apr 2014 10:30:40 -0400	[thread overview]
Message-ID: <lj5ueg$1jb$1@ger.gmane.org> (raw)
In-Reply-To: lj5t1b$3si$1@ger.gmane.org

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	other threads:[~2014-04-22 14:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-22 13:25 beamer: need to add latex for footnote citation Neal Becker
2014-04-22 13:56 ` Otto Pichlhöfer
2014-04-22 14:06   ` Neal Becker
2014-04-22 14:30     ` Neal Becker [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='lj5ueg$1jb$1@ger.gmane.org' \
    --to=ndbecker2@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).