From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aaron Ecay Subject: Re: error exporting with reference to table in another file Date: Tue, 23 Sep 2014 23:32:31 -0400 Message-ID: <8738bhofqo.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWdJw-0006TT-E8 for emacs-orgmode@gnu.org; Tue, 23 Sep 2014 23:32:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWdJn-0005GL-BZ for emacs-orgmode@gnu.org; Tue, 23 Sep 2014 23:32:48 -0400 Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:35247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWdJn-0005FB-6o for emacs-orgmode@gnu.org; Tue, 23 Sep 2014 23:32:39 -0400 Received: by mail-qa0-f49.google.com with SMTP id n8so2583750qaq.22 for ; Tue, 23 Sep 2014 20:32:33 -0700 (PDT) In-Reply-To: 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: John Kitchin , emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi John, 2014ko irailak 20an, John Kitchin-ek idatzi zuen: >=20 > Hi all, >=20 > I have this ina n org-file: >=20 >=20 > #+NAME: anatase-tio2-elisp > #+BEGIN_SRC emacs-lisp :var data=3Dsupporting-information.org:TiO2-data > (remove-if-not (lambda (x) (string=3D "anatase" (nth 1 x))) data) > #+END_SRC >=20 > #+RESULTS: anatase-tio2-elisp > | TiO$_2$ | anatase | LDA | -2802.73 | 33.62 | 187.4 | > | TiO$_2$ | anatase | AM05 | -2741.12 | 34.33 | 178.26 | > | TiO$_2$ | anatase | PBEsol | -2763.61 | 34.25 | 178.71 | > | TiO$_2$ | anatase | PBE | -2781.16 | 35.13 | 171.42 | >=20 > The code works fine, but when I try to export to a pdf or html I get erro= rs > like: >=20 > org-babel-exp processing... [2 times] > org-babel-ref-resolve: Reference 'TiO2-data' not found in this buffer >=20 > Here is my org-version: >=20 > Org-mode version 8.2.7c (8.2.7c-25-g1faeb4-elpa @ > /Users/jkitchin/Dropbox/kitchingroup/jmax/elpa/org-20140811/) FWIW I cannot reproduce this in emacs -Q, even with the same commit checked out. I=E2=80=99m attaching to this message the test files I used, in case = anyone else wants to try. I did (setq org-confirm-babel-evaluate nil) before doing the export. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=export-test1.org #+NAME: anatase-tio2-elisp #+BEGIN_SRC emacs-lisp :var data=supporting-information.org:TiO2-data :exports both data #+END_SRC #+RESULTS: anatase-tio2-elisp | TiO$_2$ | anatase | LDA | -2802.73 | 33.62 | 187.4 | | TiO$_2$ | anatase | AM05 | -2741.12 | 34.33 | 178.26 | | TiO$_2$ | anatase | PBEsol | -2763.61 | 34.25 | 178.71 | | TiO$_2$ | anatase | PBE | -2781.16 | 35.13 | 171.42 | --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=supporting-information.org #+name: TiO2-data | TiO$_2$ | anatase | LDA | -2802.73 | 33.62 | 187.4 | | TiO$_2$ | anatase | AM05 | -2741.12 | 34.33 | 178.26 | | TiO$_2$ | anatase | PBEsol | -2763.61 | 34.25 | 178.71 | | TiO$_2$ | anatase | PBE | -2781.16 | 35.13 | 171.42 | --=-=-= Content-Type: text/plain -- Aaron Ecay --=-=-=--