gregsexton / gregsexton/ob-ipython
Figure captions (LaTeX export)
- Dominant language
- Emacs Lisp
- Stars
- 742
- Forks
- 107
- PR merge metrics
- No merged PRs in 30d
Description
I am producing LaTeX documents using Org + IPython and I would like to add figure captions (and possibly labels). I can do this, e.g., by adding `#+CAPTION: Bla` just above the figure in the results block. E.g., with `:results raw drawer`:
#+RESULTS:
:RESULTS:
# Out[48]:
#+CAPTION: Test.
[[file:myFile.png]]
:END:
However, when reexecuting the source block, the results block gets replaced and the caption vanishes. Do you know a way around that?
Thanks,
Dominik
Edit: I just wanted to add, that I now use something like
#+BEGIN_SRC ipython :session :ipyfile FileName.png :exports none :results none
#+END_SRC
#+NAME: fig:file-name
#+CAPTION: Nice caption.
[[file:FileName.png]]
It needs too much user intervention for my taste, but it could be automated quite well. I leave this open, maybe you have a better suggestion, but please feel free to close the issue!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.