emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: zenlines@gmail.com
To: emacs-orgmode@gnu.org
Subject: table references in org-babel AND latex
Date: Tue, 16 Jul 2013 22:00:55 +0200	[thread overview]
Message-ID: <51E5A677.7010904@gmail.com> (raw)
In-Reply-To: <5187AEA7.6090702@gmail.com>

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

  parent reply	other threads:[~2013-07-16 20:07 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06 13:22 latex export of words starting with a superscript Brian
2013-05-06 21:37 ` Marcin Borkowski
2013-07-15 15:06 ` tab-completion of org-babel code blocks zenlines
2013-07-15 15:44   ` Nicolas Goaziou
2013-07-16 20:00 ` zenlines [this message]
2013-07-19 10:51   ` table references in org-babel AND latex zenlines

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=51E5A677.7010904@gmail.com \
    --to=zenlines@gmail.com \
    --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).