From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ASCII export w/ citations Date: Thu, 01 Jan 2015 19:36:08 +0100 Message-ID: <87r3ves607.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6kaW-0002OY-3v for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 13:35:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6kaR-0003JJ-4k for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 13:35:12 -0500 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:40061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6kaQ-0003Ih-Vj for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 13:35:07 -0500 In-Reply-To: (Ken Mankoff's message of "Thu, 01 Jan 2015 12:08:18 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Ken Mankoff Cc: Org-mode mailing list Hello, Ken Mankoff 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