emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: emacs-orgmode@gnu.org
Subject: Re: error exporting with reference to table in another file
Date: Wed, 24 Sep 2014 16:56:08 -0400	[thread overview]
Message-ID: <m261gc68lz.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <8738bhofqo.fsf@gmail.com> (Aaron Ecay's message of "Tue, 23 Sep 2014 23:32:31 -0400")

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

      reply	other threads:[~2014-09-24 20:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m261gc68lz.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).