emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] error exporting with reference to table in another file


From: John Kitchin
Subject: Re: [O] error exporting with reference to table in another file
Date: Wed, 24 Sep 2014 16:56:08 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (darwin)

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 <address@hidden> writes:

> Hi John,
>
> 2014ko irailak 20an, John Kitchin-ek idatzi zuen:
>> 
>> Hi all,
>> 
>> I have this ina n org-file:
>> 
>> 
>> #+NAME: anatase-tio2-elisp
>> #+BEGIN_SRC emacs-lisp :var data=supporting-information.org:TiO2-data
>> (remove-if-not (lambda (x) (string= "anatase" (nth 1 x))) 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 |
>> 
>> The code works fine, but when I try to export to a pdf or html I get errors
>> like:
>> 
>> org-babel-exp processing... [2 times]
>> org-babel-ref-resolve: Reference 'TiO2-data' not found in this buffer
>> 
>> Here is my org-version:
>> 
>> 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’m 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.
>
> #+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 |
>
> #+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 |

-- 
-----------------------------------
John Kitchin
Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



reply via email to

[Prev in Thread] Current Thread [Next in Thread]