emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ken Mankoff <mankoff@gmail.com>
To: Org-mode mailing list <emacs-orgmode@gnu.org>
Subject: ASCII export w/ citations
Date: Thu, 01 Jan 2015 12:08:18 -0500	[thread overview]
Message-ID: <m2387ue8e5.fsf@gorgonzola.lan> (raw)

Hi,

I have the following setup for citing in Org documents:

(org-add-link-type
 "textcite"  (lambda (key) (org-open-file cby-references-file t nil key))
 (lambda (path desc format)
   (cond
    ((eq format 'latex) (format "\\textcite{%s}" path))
    ((eq format 'ascii) (format "@%s" path))
    )))
(org-add-link-type
 "cite"  (lambda (key) (org-open-file cby-references-file t nil key))
 (lambda (path desc format)
   (cond
    ((eq format 'latex) (format "\\autocite{%s}" path))
    ((eq format 'ascii) (format "[@%s]" path))
    )))

When I export to ASCII, things look mostly great. Except, at the bottom
of every section, I have the "raw" Org citations repeated. That is, if I
[[cite:Foo2001]] somewhere in the text, at the bottom I'll see:

[(Foo, 2001)] cite:Foo2001

Can anyone explain why ASCII export is repeating the "raw" cite commands
at the bottom of each section and/or how to turn this off?

Thanks,

  -k.
  

             reply	other threads:[~2015-01-01 17:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01 17:08 Ken Mankoff [this message]
2015-01-01 18:36 ` ASCII export w/ citations Nicolas Goaziou
2015-01-01 18:59   ` Ken Mankoff
2015-01-01 19:32     ` Ken Mankoff
2015-01-01 20:45     ` Nicolas Goaziou
2015-01-02 14:58       ` Ken Mankoff
2015-01-02 20:42         ` Nicolas Goaziou
2015-01-02 21:52           ` Ken Mankoff

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=m2387ue8e5.fsf@gorgonzola.lan \
    --to=mankoff@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).