From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manish Subject: Re: label and ref in latex export Date: Tue, 20 Jan 2009 08:00:20 +0530 Message-ID: References: <2A507D2B-DAD6-4DF4-9E37-F14357364C0B@uva.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LP6Nm-0007Mn-Sk for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 21:30:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LP6Nk-0007MU-G2 for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 21:30:25 -0500 Received: from [199.232.76.173] (port=56907 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LP6Nk-0007MR-8D for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 21:30:24 -0500 Received: from ti-out-0910.google.com ([209.85.142.186]:1304) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LP6Nj-0001Fo-OV for emacs-orgmode@gnu.org; Mon, 19 Jan 2009 21:30:24 -0500 Received: by ti-out-0910.google.com with SMTP id u5so2249014tia.10 for ; Mon, 19 Jan 2009 18:30:21 -0800 (PST) In-Reply-To: <2A507D2B-DAD6-4DF4-9E37-F14357364C0B@uva.nl> Content-Disposition: inline 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: Carsten Dominik Cc: Emacs-orgmode mailing list On Tue, Jan 20, 2009 at 2:17 AM, Carsten Dominik wrote: > > 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. I did not realize that I could put that literal LaTeX in text which can then be processed by PDFLaTeX. > > > And the ATTR_LaTeX: has to be *before* the link to the figure. Yes, I switched it by mistake while creating the example. Thank you. -- Manish