emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* beamer: need to add latex for footnote citation
@ 2014-04-22 13:25 Neal Becker
  2014-04-22 13:56 ` Otto Pichlhöfer
  0 siblings, 1 reply; 4+ messages in thread
From: Neal Becker @ 2014-04-22 13:25 UTC (permalink / raw)
  To: emacs-orgmode

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: beamer: need to add latex for footnote citation
  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
  0 siblings, 1 reply; 4+ messages in thread
From: Otto Pichlhöfer @ 2014-04-22 13:56 UTC (permalink / raw)
  To: emacs-orgmode

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,

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: beamer: need to add latex for footnote citation
  2014-04-22 13:56 ` Otto Pichlhöfer
@ 2014-04-22 14:06   ` Neal Becker
  2014-04-22 14:30     ` Neal Becker
  0 siblings, 1 reply; 4+ messages in thread
From: Neal Becker @ 2014-04-22 14:06 UTC (permalink / raw)
  To: emacs-orgmode

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: beamer: need to add latex for footnote citation
  2014-04-22 14:06   ` Neal Becker
@ 2014-04-22 14:30     ` Neal Becker
  0 siblings, 0 replies; 4+ messages in thread
From: Neal Becker @ 2014-04-22 14:30 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-04-22 14:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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

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).