emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* label and ref in latex export
@ 2009-01-19 19:26 Manish
  2009-01-19 20:47 ` Carsten Dominik
  0 siblings, 1 reply; 8+ messages in thread
From: Manish @ 2009-01-19 19:26 UTC (permalink / raw)
  To: Emacs-orgmode mailing list

Hello,

How do I refer to labels created for tables and figures in Org mode so
it appears in LaTeX export?

Currently I am using a BEGIN_LaTeX and END_LaTeX to enclose \ref like
so.  I am sure this is not how it was intended to be used but I couldn't
locate anything in documentation.

,----
| Please see figure
| #+BEGIN_LaTeX
| \ref{fig:results}
| #+END_LaTeX
|
| #+CAPTION: Business Transaction over Business Units
| #+LABEL: fig:results
| [[./xxxxx.png]]
| #+ATTR_LaTeX: scale=0.7
`----

Thanks,
-- 
Manish

^ permalink raw reply	[flat|nested] 8+ messages in thread
* label and ref in latex export
@ 2012-10-11  1:21 Vikas Rawal
  2012-10-11  3:04 ` Thomas S. Dye
  0 siblings, 1 reply; 8+ messages in thread
From: Vikas Rawal @ 2012-10-11  1:21 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-11  8:35 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-19 19:26 label and ref in latex export Manish
2009-01-19 20:47 ` Carsten Dominik
2009-01-20  2:30   ` Manish
2012-10-11  1:21 Vikas Rawal
2012-10-11  3:04 ` 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

Code repositories for project(s) associated with this 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).