all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* caption lost
@ 2022-06-10 15:03 Katarzyna Chauvat
  2022-06-11 13:30 ` Vikas Rawal
  2022-06-11 13:40 ` Antonio Carlos Padoan Junior
  0 siblings, 2 replies; 3+ messages in thread
From: Katarzyna Chauvat @ 2022-06-10 15:03 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]

Hi,

I would like to ask you for some advice.
I am a beginner in org-mode. I try to
include in  my text a Figure produced
by R block code, just like this:

#+caption: My caption
#+label: fig:MyFigure
#+begin_src R :exports results :results output graphics :file MyFigure.pdf
:width 4.8 :height 6.5 :pointsize 7
plot(1:5,1:5)
 #+end_src

The figure is produced and integrated in the text but
I have lost my caption : how should I change my command to get it?

Thank you in advance for your help.
Best regards
Katarzyna

[-- Attachment #2: Type: text/html, Size: 748 bytes --]

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

* Re: caption lost
  2022-06-10 15:03 caption lost Katarzyna Chauvat
@ 2022-06-11 13:30 ` Vikas Rawal
  2022-06-11 13:40 ` Antonio Carlos Padoan Junior
  1 sibling, 0 replies; 3+ messages in thread
From: Vikas Rawal @ 2022-06-11 13:30 UTC (permalink / raw)
  To: Katarzyna Chauvat; +Cc: org-mode mailing list

[-- Attachment #1: Type: text/plain, Size: 485 bytes --]

>
>
> #+caption: My caption
> #+label: fig:MyFigure
> #+begin_src R :exports results :results output graphics :file MyFigure.pdf
> :width 4.8 :height 6.5 :pointsize 7
> plot(1:5,1:5)
>  #+end_src
>
>
The figure is produced and integrated in the text but
>

#+CAPTION: line should be added to the output and not to the code block. As
follows.

#+CAPTION: My caption.
[[file:MyFigure.pdf]]

That is, you evaluate the code block, and once the output is created, add
caption to it.

Vikas

[-- Attachment #2: Type: text/html, Size: 1016 bytes --]

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

* Re: caption lost
  2022-06-10 15:03 caption lost Katarzyna Chauvat
  2022-06-11 13:30 ` Vikas Rawal
@ 2022-06-11 13:40 ` Antonio Carlos Padoan Junior
  1 sibling, 0 replies; 3+ messages in thread
From: Antonio Carlos Padoan Junior @ 2022-06-11 13:40 UTC (permalink / raw)
  To: Katarzyna Chauvat; +Cc: emacs-orgmode

Katarzyna Chauvat <kasiachauvat@gmail.com> writes:

Hi, try to associate "caption" (and perhaps "label") to the #+RESULTS: block
instead of the source code block.


> Hi,
>
> I would like to ask you for some advice.
> I am a beginner in org-mode. I try to
> include in  my text a Figure produced
> by R block code, just like this:
>
> #+caption: My caption
> #+label: fig:MyFigure
> #+begin_src R :exports results :results output graphics :file
> MyFigure.pdf :width 4.8 :height 6.5 :pointsize 7
> plot(1:5,1:5)
>  #+end_src
>
> The figure is produced and integrated in the text but
> I have lost my caption : how should I change my command to get it?
>
> Thank you in advance for your help.
> Best regards
> Katarzyna
>
>

-- 
Antonio Carlos PADOAN JUNIOR
GPG fingerprint:
243F 237F 2DD3 4DCA 4EA3  1341 2481 90F9 B421 A6C9


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

end of thread, other threads:[~2022-06-11 13:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10 15:03 caption lost Katarzyna Chauvat
2022-06-11 13:30 ` Vikas Rawal
2022-06-11 13:40 ` Antonio Carlos Padoan Junior

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.