From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: error exporting with reference to table in another file Date: Wed, 24 Sep 2014 16:56:08 -0400 Message-ID: References: <8738bhofqo.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56632) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWtbp-0007eB-CS for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 16:56:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XWtbj-0000NJ-Lu for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 16:56:21 -0400 Received: from smtp.andrew.cmu.edu ([128.2.157.37]:60385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XWtbj-0000N1-Hk for emacs-orgmode@gnu.org; Wed, 24 Sep 2014 16:56:15 -0400 Received: from Johns-MacBook-Air.local (KITCHIN-TIMEMACHINE.CHEME.CMU.EDU [128.2.54.215]) (user=jkitchin mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.8/8.14.8) with ESMTP id s8OKu83u026404 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Wed, 24 Sep 2014 16:56:08 -0400 In-Reply-To: <8738bhofqo.fsf@gmail.com> (Aaron Ecay's message of "Tue, 23 Sep 2014 23:32:31 -0400") 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 Thanks for checking. It turns out to be a silly problem that is my fault. I extracted attachments out of two different PDF files into the same directory, and both PDF files had an attachment called supporting-information.org. So the first one is what had the TiO2-data table, and it got overwritten by the second file. So, of course, it was missing ;) Sorry for the noise. Aaron Ecay writes: > 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 err= ors >> 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 check= ed > out. I=E2=80=99m attaching to this message the test files I used, in cas= e anyone > else wants to try. I did (setq org-confirm-babel-evaluate nil) before > doing the export. > > #+NAME: anatase-tio2-elisp > #+BEGIN_SRC emacs-lisp :var data=3Dsupporting-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 | > > #+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 | --=20 ----------------------------------- John Kitchin Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu