From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: [PATCH 3/5] ob-R: change the file extension for tikz figures Date: Wed, 20 Feb 2013 23:02:24 -0500 Message-ID: <1361419346-23146-4-git-send-email-aaronecay@gmail.com> References: <1361419346-23146-1-git-send-email-aaronecay@gmail.com> Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8NMw-0001OG-8F for emacs-orgmode@gnu.org; Wed, 20 Feb 2013 23:02:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U8NMv-000385-8H for emacs-orgmode@gnu.org; Wed, 20 Feb 2013 23:02:50 -0500 Received: from mail-ve0-f178.google.com ([209.85.128.178]:42457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U8NMv-000380-49 for emacs-orgmode@gnu.org; Wed, 20 Feb 2013 23:02:49 -0500 Received: by mail-ve0-f178.google.com with SMTP id db10so7536872veb.37 for ; Wed, 20 Feb 2013 20:02:48 -0800 (PST) In-Reply-To: <1361419346-23146-1-git-send-email-aaronecay@gmail.com> 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: emacs-orgmode@gnu.org Because figures are included for export for a link, it is not desirable to have R-generated tikz figures have the extension .tex. Links to .tex files should (and currently are) inserted as a hyperlink in the LaTeX output. Links to .tikz files should be \input so that they draw as graphics. (A following patch implements this functionality.) This could also allow other backends (e.g. HTML) to compile .tikz files to images for inclusion, while retaining links to .tex files as links. --- lisp/ob-R.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-R.el b/lisp/ob-R.el index 8db0853..9875f81 100644 --- a/lisp/ob-R.el +++ b/lisp/ob-R.el @@ -237,7 +237,7 @@ current code buffer." '((:bmp . "bmp") (:jpg . "jpeg") (:jpeg . "jpeg") - (:tex . "tikz") + (:tikz . "tikz") (:tiff . "tiff") (:png . "png") (:svg . "svg") -- 1.8.1.4