Re: caption lost
Katarzyna Chauvat 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
Re: caption lost
> > > #+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
caption lost
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