From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ken Mankoff Subject: ASCII export w/ citations Date: Thu, 01 Jan 2015 12:08:18 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6jEV-00014v-HA for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 12:08:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y6jES-0002JL-CY for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 12:08:23 -0500 Received: from mail-qc0-x22e.google.com ([2607:f8b0:400d:c01::22e]:52640) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y6jES-0002JF-8t for emacs-orgmode@gnu.org; Thu, 01 Jan 2015 12:08:20 -0500 Received: by mail-qc0-f174.google.com with SMTP id c9so12410573qcz.5 for ; Thu, 01 Jan 2015 09:08:19 -0800 (PST) Received: from gorgonzola.lan (ool-2f1279c2.dyn.optonline.net. [47.18.121.194]) by mx.google.com with ESMTPSA id 4sm23806568qgh.22.2015.01.01.09.08.19 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Jan 2015 09:08:19 -0800 (PST) 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: 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.