Skip to main content
7 of 8
added 2 characters in body
M.R.
  • 31.8k
  • 8
  • 96
  • 289

How to add a caption below a cell?

How can I change my stylesheet definition for a cell to optionally add a caption below?

For example, I would like to add a caption to my "Program" cells shown here:

enter image description here

like this (but with the option of right or left as well as centered alignment):

enter image description here

There are some caption-like things to be found in the docs:

enter image description here

But I would prefer to have the caption as part of the cell expression (not simply a separately styled cell put right below it)

I've tried CellFrameLabels, but I stumbled on a few things:

  • Controlling alignments and styling
  • Adding/removing them easily
  • Auto-numbering

Related:

M.R.
  • 31.8k
  • 8
  • 96
  • 289