emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: zenlines@gmail.com
To: emacs-orgmode@gnu.org
Subject: Re: table references in org-babel AND latex
Date: Fri, 19 Jul 2013 12:51:09 +0200	[thread overview]
Message-ID: <51E91A1D.2010507@gmail.com> (raw)
In-Reply-To: <51E5A677.7010904@gmail.com>

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, zenlines@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/)
>
>
>

      reply	other threads:[~2013-07-19 10:51 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 ` table references in org-babel AND latex zenlines
2013-07-19 10:51   ` zenlines [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=51E91A1D.2010507@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).