emacs-orgmode
[Top][All Lists]

## Re: [Orgmode] label and ref in latex export

 From: Manish Subject: Re: [Orgmode] label and ref in latex export Date: Tue, 20 Jan 2009 08:00:20 +0530

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.
>>
>> ,----
>> | #+BEGIN_LaTeX
>> | \ref{fig:results}
>> | #+END_LaTeX
>> |
>> | #+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

`