Hi there,
sorry for the junk I sent regarding table references in org-babel AND
latex. Org-mode is awesome. In such a case, it is not necessary to
identify something by what it is in the classical LaTeX way and just
label it (#+name:). Org-mode recognizes just what it is and the labels
refer either to a table or figure, which have their class-based
numberings. Sorry for the crap. It may still be helpful to include that
code block header variables (#+HEADERS: :var) can't be assigned with a
name including ":".
Best,
Brian
On 07/16/2013 10:00 PM, zenli...@gmail.com wrote:
Hi There,
it might be nice to include documentation about table references in
org-babel AND latex, i.e.:
+begin_example
numbers in table [[tab:Table]] are important.
#+CAPTION: Description of system
#+NAME: tab:Table
| Code |
|------|
| 1 |
| 2 |
| 4 |
| 8 |
| 16 |
| 32 |
| 64 |
| 128 |
| NaN |
#+begin_src R :session :var FlaggingTable=tab:FlaggingTable :results
silent :eval no-export
write.csv(FlaggingTable, file=file.path(doc.dir, "FlaggingTable.csv"))
#+end_src
Won't work, but
#+begin_src R :session :var FlaggingTable="tab:FlaggingTable" :results
silent :eval no-export
write.csv(FlaggingTable, file=file.path(doc.dir, "FlaggingTable.csv"))
#+end_src
will!
+end_example
Maybe I missed something somewhere, it would be nice to see it as a
footnote, to keep others sane :).
Best,
Brian
GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll
bars) of 2013-05-15 on DDM03958
Org-mode version 8.0.5 (8.0.5-6-g426917-elpa @
~/.emacs.d/elpa/org-20130708/)