Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

In one of the Mathematica (v9) slide templates, they have an example cell that looks like this:

enter image description here

Where there is a "SideCaption" that appears to be the Mathematica-equivalent of a text box to the right of the image. I can't for the life of me figure out how this is replicate this other than copying the cell and pasting elsewhere.

I did find this code looking at the notebook file however:

Cell["SideCaption How do I get this?", "SideCaption"]

Is this something I can generate programmatically, or something that needs to be copied when used elsewhere? I could see this format being used in more places than presentations.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted
CellPrint@
 Cell[BoxData[
   TagBox[GridBox[{{ToBoxes[Graphics[Circle[]]], 
       Cell["Text", "SideCaption"]}}], "Grid"]], "SideCaptionArray"]

SideCaption and SideCaptionArray are in the Default.nb style sheet if you want to change them.

share|improve this answer
    
Nice! I did not know about "SideCaption" and "SideCaptionArray" (edit: I now see that the OP had also mentioned it) –  rm -rf Mar 13 '13 at 21:23
    
Sweeeeeeeeeeeeet. –  kale Mar 13 '13 at 21:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.