From: Aaron Ecay <aaronecay@gmail.com>
To: John Kitchin <jkitchin@andrew.cmu.edu>, emacs-orgmode@gnu.org
Subject: Re: error exporting with reference to table in another file
Date: Tue, 23 Sep 2014 23:32:31 -0400 [thread overview]
Message-ID: <8738bhofqo.fsf@gmail.com> (raw)
In-Reply-To: <m2bnqaqd6w.fsf@andrew.cmu.edu>
[-- 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
next prev parent reply other threads:[~2014-09-24 3:32 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 [this message]
2014-09-24 20:56 ` John Kitchin
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=8738bhofqo.fsf@gmail.com \
--to=aaronecay@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jkitchin@andrew.cmu.edu \
/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).