emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* error exporting with reference to table in another file
@ 2014-09-20 19:55 John Kitchin
  2014-09-24  3:32 ` Aaron Ecay
  0 siblings, 1 reply; 3+ messages in thread
From: John Kitchin @ 2014-09-20 19:55 UTC (permalink / raw)
  To: emacs-orgmode

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/)

Any thoughts on what is causing this? Thanks,



-- 
-----------------------------------
John Kitchin
http://kitchingroup.cheme.cmu.edu

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error exporting with reference to table in another file
  2014-09-20 19:55 error exporting with reference to table in another file John Kitchin
@ 2014-09-24  3:32 ` Aaron Ecay
  2014-09-24 20:56   ` John Kitchin
  0 siblings, 1 reply; 3+ messages in thread
From: Aaron Ecay @ 2014-09-24  3:32 UTC (permalink / raw)
  To: John Kitchin, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]

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.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: export-test1.org --]
[-- Type: text/x-org, Size: 393 bytes --]

#+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 |

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #3: supporting-information.org --]
[-- Type: text/x-org, Size: 254 bytes --]

#+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 |

[-- Attachment #4: Type: text/plain, Size: 15 bytes --]

-- 
Aaron Ecay

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: error exporting with reference to table in another file
  2014-09-24  3:32 ` Aaron Ecay
@ 2014-09-24 20:56   ` John Kitchin
  0 siblings, 0 replies; 3+ messages in thread
From: John Kitchin @ 2014-09-24 20:56 UTC (permalink / raw)
  To: emacs-orgmode

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 <aaronecay@gmail.com> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-24 20:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-20 19:55 error exporting with reference to table in another file John Kitchin
2014-09-24  3:32 ` Aaron Ecay
2014-09-24 20:56   ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).