emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Ken Mankoff <mankoff@gmail.com>
Cc: Org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: ASCII export w/ citations
Date: Thu, 01 Jan 2015 19:36:08 +0100	[thread overview]
Message-ID: <87r3ves607.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <m2387ue8e5.fsf@gorgonzola.lan> (Ken Mankoff's message of "Thu, 01 Jan 2015 12:08:18 -0500")

Hello,

Ken Mankoff <mankoff@gmail.com> writes:

> 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?

See `org-ascii-links-to-notes'.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2015-01-01 18:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-01 17:08 ASCII export w/ citations Ken Mankoff
2015-01-01 18:36 ` Nicolas Goaziou [this message]
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=87r3ves607.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=mankoff@gmail.com \
    /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).