emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* ASCII export w/ citations
@ 2015-01-01 17:08 Ken Mankoff
  2015-01-01 18:36 ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Ken Mankoff @ 2015-01-01 17:08 UTC (permalink / raw)
  To: Org-mode mailing list

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.
  

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

end of thread, other threads:[~2015-01-02 21:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-01 17:08 ASCII export w/ citations Ken Mankoff
2015-01-01 18:36 ` 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

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