emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: "Clément B." <clement@inventati.org>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: State of the art in citations
Date: Sun, 27 Apr 2014 11:26:35 -0400	[thread overview]
Message-ID: <m2oazm7pzo.fsf@gmail.com> (raw)
In-Reply-To: <87iopuomcq.fsf@gaillac.origami>


On 2014-04-27 at 10:53, Clément B. wrote:
> Hi Ken,
>
>> When I export this to LaTeX, it is not treated as a proper LaTeX
>> citation. The text is just the "%A (%y)" part. Is there some way to
>> export so that the ref:%l turns into a \cite{%l}?
>
> The "ref" is a custom link type, you can define those in org with
> `org-add-link-type`, and they allow control over the export
> behaviour. See the previous posts in this thread for an example.

Ah! Got it. This is really nice. Thank you. 

I find the best way to support ODT is simply add something like this:

      ((eq format 'odt)
       (format "(%s)" desc))

This doesn't create a bibliography section, but that section is awkward
to export to anyway. It requires the 3rd party Org hack that isn't
officially supported, java, jabref, is awfully slow (~2
seconds/reference), etc. I now put the references inline as above, and
then manually add the references by exporting to PDF and copying/paste
that reference section. 

Not great, but less of a hack than ODT-supported references, and working
with ODT/Word is a hack anyway.

Still looking into "lastname (Year)" format...

  -k.

  reply	other threads:[~2014-04-27 15:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-27 14:53 State of the art in citations Clément B.
2014-04-27 15:26 ` Ken Mankoff [this message]
2014-04-27 16:05   ` Clément B.
2014-04-27 16:10     ` Ken Mankoff
  -- strict thread matches above, loose matches on Subject: below --
2014-04-26 18:26 Clément B.
2014-04-28  1:53 ` Richard Lawrence
2014-04-26 16:56 Clément B.
2014-04-27 13:08 ` Leonard Randall
2014-04-27 14:14   ` Clément B.
2014-04-27 14:41     ` Ken Mankoff
2014-04-27 16:01     ` Thomas S. Dye
2014-04-27 16:16       ` Ken Mankoff
2014-04-27 16:57         ` Clément B.
2014-04-27 19:20           ` John Kitchin
2014-04-27 21:30             ` Clément B.
2014-04-28 13:57             ` Julian M. Burgos
2014-04-28 13:56   ` Julian M. Burgos
2014-04-29  9:30 ` Vikas Rawal Lists
2014-04-29 15:36   ` Richard Lawrence
2014-04-29  9:30 ` Vikas Rawal Lists
2014-04-25 12:11 Julian M. Burgos
2014-04-25 15:42 ` Grant Rettke

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=m2oazm7pzo.fsf@gmail.com \
    --to=mankoff@gmail.com \
    --cc=clement@inventati.org \
    --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).