This is documentation for Mathematica 5.2, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.1)

Creating Bilateral Cells

To convert a Mathematica example into bilateral form:

  1. Create the example that you want to convert to bilateral form. With the default settings, each example must consist of a single MathCaption cell followed by any number of Input and Output cells. However, you can change the cell styles used to construct a bilateral cell, as explained in Specifying Cell Styles.
  2. Open the MakeBilateralCell palette.
  3. Select the cells that you want to format.
  4. Click Make Selection Bilateral.

The selected cells are automatically converted into bilateral cells. The text from each MathCaption cell appears in the left column while the corresponding input and output cells appear in the right column.

For example, consider the following sequence of cells:

Here is the integral  in Mathematica.

If you select the cells and click Make Selection Bilateral, all three cells are combined into the bilateral cell shown here.

If you have a notebook containing multiple Mathematica examples, you can convert all the examples into bilateral form in one step. Each example must consist of a single MathCaption cell followed by any number of input and output cells.

To convert all examples in a notebook or project into bilateral form:

  1. For a single notebook, open the notebook and make it the currently selected notebook. For multiple notebooks, open the MakeProject dialog box and load the project file for your project. (If you have not already created a project file, see Creating a Project File to learn how.)
  2. Open the MakeBilateralCell palette.
  3. Click Make All Bilateral.

Mathematica automatically finds all cases in the notebook where input and output cells follow a MathCaption cell and converts each such example into a single bilateral cell.