From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: label and ref in latex export Date: Mon, 19 Jan 2009 21:47:40 +0100 Message-ID: <2A507D2B-DAD6-4DF4-9E37-F14357364C0B@uva.nl> References: Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LP12D-0005sw-8A for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 15:47:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LP12A-0005oi-M4 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 15:47:47 -0500 Received: from [199.232.76.173] (port=33001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LP12A-0005oD-As for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 15:47:46 -0500 Received: from mail-ew0-f20.google.com ([209.85.219.20]:64169) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LP129-0007Bt-SU for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 15:47:46 -0500 Received: by ewy13 with SMTP id 13so710253ewy.18 for ; Mon, 19 Jan 2009 12:47:43 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Manish Cc: Emacs-orgmode mailing list On Jan 19, 2009, at 8:26 PM, Manish wrote: > 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 > `---- Just write \ref{fig:results} anywhere in the text and you should be fine. And the ATTR_LaTeX: has to be *before* the link to the figure. - Carsten