fox,

With an Org-mode code block, is it possible to define a caption to be added on top of the result ?


ericsfraga,
@ericsfraga@fediscience.org avatar

@fox What kind of result?

If you name your src block, you can add a #+caption: line before the named results generated by the evaluation of the src block.

fox,

@ericsfraga

Like a PlantUML block. I want to add a CAPTION on the result image, and also some LATEX_ATTR and HTML_ATTR.

holgerschurig,

@fox @ericsfraga

on the result image

That is currently not possible, as org-mode has no feature to modify an image generated by some other program (plantuml, graphviz etc)

Also, originally you asked about captions generally. A code block can also run e.g. Python code and use the output of it in a result block. The minority of code blocks generate images.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • orgmode
  • PowerRangers
  • DreamBathrooms
  • everett
  • magazineikmin
  • hgfsjryuu7
  • osvaldo12
  • thenastyranch
  • Youngstown
  • slotface
  • rosin
  • khanakhh
  • vwfavf
  • kavyap
  • tester
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • InstantRegret
  • ngwrru68w68
  • tacticalgear
  • Durango
  • normalnudes
  • Leos
  • mdbf
  • GTA5RPClips
  • anitta
  • provamag3
  • All magazines