Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 8 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) – R. M. Mar 13 '13 at 21:23
    
Sweeeeeeeeeeeeet. – kale Mar 13 '13 at 21:28

In Mathematica 10.3 we now have TextGrid:

TextGrid[{{Import["ExampleData/ocelot.jpg"], "SideCaption How do I get this?"}}]

enter image description here

and you can edit the text in the output just like in the presentation template.

share|improve this answer

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.