From: Vikas Rawal <vikaslists@agrarianresearch.org>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: label and ref in latex export
Date: Thu, 11 Oct 2012 10:21:32 +0900 [thread overview]
Message-ID: <20121011012131.GA20544@panahar> (raw)
The following has been taken from my org file.
-------------
#+CAPTION: Average output, cost and net income per acre, by area, (2005-06 prices)
#+LABEL: tab:avprofit
#+ATTR_LATEX: table * tabulary width=\textwidth align=l|RRRR
#+BEGIN_SRC R :results value raw :colnames yes :hline yes
subset(a,Crop_group=="Paddy")->a
a[,c(8:10)]*a[,6]/a[,7]->a[,c(8:10)]
vtab1(a,8,10,1,wtd.mean)->a1
round(as.numeric(as.character(a1[,2])))->a1[,2]
round(as.numeric(as.character(a1[,3])))->a1[,3]
round(as.numeric(as.character(a1[,4])))->a1[,4]
names(a1)<-c("Area","output","Cost","Net income")
#+END_SRC
\ref{tab:avprofit} shows that the average levels of are highest in
Area 7.
------------------
When I export it to latex/pdf, \ref{tab:avprofit} is just shown as ??.
What am I not doing correctly?
Also, is it okay if the text where the table is referenced comes
before the table (and therefore its label) itself?
Vikas
next reply other threads:[~2012-10-11 1:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 1:21 Vikas Rawal [this message]
2012-10-11 3:04 ` label and ref in latex export Thomas S. Dye
2012-10-11 3:53 ` Vikas Rawal
2012-10-11 7:15 ` Thomas S. Dye
2012-10-11 8:34 ` Vikas Rawal
-- strict thread matches above, loose matches on Subject: below --
2009-01-19 19:26 Manish
2009-01-19 20:47 ` Carsten Dominik
2009-01-20 2:30 ` Manish
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=20121011012131.GA20544@panahar \
--to=vikaslists@agrarianresearch.org \
--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).