emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Citation syntax: a revised proposal


From: Rasmus
Subject: Re: [O] Citation syntax: a revised proposal
Date: Mon, 16 Feb 2015 19:49:24 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

John Kitchin <address@hidden> writes:

> They are probably minor, but for example I am not sure how easy it would
> be to sort a multicite with all of the syntax options. I guess it can be
> done, I just do not see it clearly. It may not be necessary to do this
> either.

Out of curiosity:

Why would this be hard?  Would it amount to more than replacing identity
in the below snippet with something that gets the true author?  You can
split out global pre and post note beforehand and reinsert it.  I'm
probably missing something.

(sort '((:key "foo" :pre "pre")
        (:key "bar" :post "pp. 22")
        (:key "baz"))
      (lambda (a b) (string-collate-lessp
                (funcall 'identity (plist-get a :key))
                (funcall 'identity (plist-get b :key)))))

—Rasmus

-- 
A clever person solves a problem. A wise person avoids it




reply via email to

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