From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Orgmode Mailing List <emacs-orgmode@gnu.org>,
shripad sinari <shripad.sinari@gmail.com>
Subject: Re: Passing an image reference to source code block
Date: Tue, 27 Dec 2016 16:05:54 +0000 [thread overview]
Message-ID: <CAJ51ETqymEfQ7_xt7DVKJsCuz0ANZYmrvmSRN6aJ2o+9cqPk3g@mail.gmail.com> (raw)
In-Reply-To: <CAA_SOTYZxNPcuYro2_FmmKYib-n9yPr2C8E6O1iYb2bkMcmGVg@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
Can you pass \ref{fig:image} in? I think that is what you would do in
Latex.
On Mon, Dec 26, 2016 at 7:00 PM shripad sinari <shripad.sinari@gmail.com>
wrote:
> Hello all,
> I would like to know if there is a way to pass a reference for a figure to
> a source block as in the following example:
>
> ----x-----------x---
>
> * Section name
>
> some text
> #+CAPTION: Fig Caption
> #+NAME: fig:image
> [[file:img.jpg]]
> some reference to figure [[fig:image]]
>
> * other section
> reference to Section [[Section name]]
>
> #+BEGIN_SRC R :session *sample* default :exports results :results output
> latex :tangle yes :var plot=[[fig:image]]
> library(xtable)
> print(xtable(BOD
> , caption = paste("Link the image", plot,"to this table")))
> #+END_SRC
>
>
> ----x-----------x---
>
> I would like the caption of the table to point to the image, at the point
> where the word "plot" is located, in LaTeX export of the org file.
>
> Any help or other workarounds are appreciated. I am using org version
> 9.0.3 in GNU Emacs 24.5.1.
>
> Thanks for your help and regards,
>
> Shripad
> Tucson, AZ
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 2633 bytes --]
next prev parent reply other threads:[~2016-12-27 16:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-27 2:00 Passing an image reference to source code block shripad sinari
2016-12-27 16:05 ` John Kitchin [this message]
2016-12-27 18:12 ` shripad sinari
[not found] ` <CAJ51ETonOMi3UFfT4QwxUbqqFqed1rit9Z0HA5-Qt1QzARWdKA@mail.gmail.com>
[not found] ` <CAJ51ETrvoF=EvRKuAWB77m489EmxmG3KP5FOovpgRpe_qT3XHQ@mail.gmail.com>
2016-12-27 19:18 ` [Away message] " shripad sinari
2016-12-27 20:36 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJ51ETqymEfQ7_xt7DVKJsCuz0ANZYmrvmSRN6aJ2o+9cqPk3g@mail.gmail.com \
--to=jkitchin@andrew.cmu.edu \
--cc=emacs-orgmode@gnu.org \
--cc=shripad.sinari@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.