[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Citation syntax: a revised proposal
From: |
Thomas S. Dye |
Subject: |
Re: [O] Citation syntax: a revised proposal |
Date: |
Sun, 01 Mar 2015 19:48:36 -1000 |
Aloha Aaron,
Aaron Ecay <address@hidden> writes:
> By way of illustration, Biblatex (AFAICT) doesn’t provide a possessive
> citation command, which was mentioned by someone in this thread (or its
> predecessor) as a desideratum. I’d expect a savvy latex user to put in
> their preamble:
>
> \newcommand{\citeposs}[1]{\citeauthor{#1}’s (\citeyear{#1})}
>
> That doesn’t really work in org. (It could be put together with an org
> macro, but would lose the kind of click-to-view functionality that
> org-ref already provides and which would be ported to the new syntax as
> well.)
#+name: define-citeposs-link
#+begin_src emacs-lisp :results silent :exports none
(org-add-link-type
"citeposs" 'ebib-open-org-link
(lambda (path desc format)
(cond
((eq format 'html)
(format "(<cite>%s</cite>)" path))
((eq format 'latex)
(format "\\citeauthor{%s}'s (\\citeyear{%s})" path path)))))
#+end_src
I haven't tested this, but I think it would work in Org mode.
All the best,
Tom
--
Thomas S. Dye
http://www.tsdye.com
- Re: [O] Citation syntax: a revised proposal, (continued)
- Re: [O] Citation syntax: a revised proposal, Aaron Ecay, 2015/03/10
- Re: [O] Citation syntax: a revised proposal, Richard Lawrence, 2015/03/11
- Re: [O] Citation syntax: a revised proposal, Richard Lawrence, 2015/03/13
- Re: [O] Citation syntax: a revised proposal, Richard Lawrence, 2015/03/17
- Re: [O] Citation syntax: a revised proposal, Andreas Leha, 2015/03/17
- Re: [O] Citation syntax: a revised proposal, Richard Lawrence, 2015/03/17
- Re: [O] Citation syntax: a revised proposal, Andreas Leha, 2015/03/17
- Re: [O] Citation syntax: a revised proposal, Richard Lawrence, 2015/03/17
- Re: [O] Citation syntax: a revised proposal, Matt Price, 2015/03/17
- Re: [O] Citation syntax: a revised proposal, Richard Lawrence, 2015/03/18
Re: [O] Citation syntax: a revised proposal,
Thomas S. Dye <=
Re: [O] Citation syntax: a revised proposal, Sebastien Vauban, 2015/03/09