BUILT-IN WOLFRAM LANGUAGE SYMBOL

AllowInlineCells

AllowInlineCells
is an option for SelectedCells, Cell, and related constructs that specifies whether inline cells are permitted.

DetailsDetails

  • AllowInlineCells is used for SelectedCells to determine whether an inline cell may be returned as a CellObject. If the option is False and an inline cell is selected, then SelectedCells will return the top-level cell that contains the selected inline cell.
  • AllowInlineCells controls whether a Cell or related construct allows the interactive creation of an inline cell. With the default setting AllowInlineCells->True, you can create cells nested within cells. For example, inline cells are useful for displaying typeset expressions or graphics along with text in the same cell.
  • With the setting AllowInlineCells->False, inline cells cannot be created inside a cell. For example, this is the case for InputForm input cells.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Generate a cell containing an inline cell:

In[1]:=
Click for copyable input

With AllowInlineCellsTrue, this selects the inline cell:

In[2]:=
Click for copyable input

The selection includes only the inline cell:

In[3]:=
Click for copyable input
Out[3]=

With AllowInlineCellsFalse, the selection is automatically expanded to the cell that contains the inline cell:

In[4]:=
Click for copyable input
Out[4]=

Now the selection is the entire cell containing the inline cell:

In[5]:=
Click for copyable input
Out[5]=

This generates an InputForm cell, where AllowInlineCells->False is set by default.

In[6]:=
Click for copyable input
In[7]:=
Click for copyable input

Attempting to insert an inline cell into an InputForm cell is not normally allowed. The expected result is a beep, with no change in the cell:

In[8]:=
Click for copyable input

This generates an InputForm cell with AllowInlineCells->True:

In[9]:=
Click for copyable input
In[10]:=
Click for copyable input

It is now possible to insert an inline cell:

In[11]:=
Click for copyable input
Introduced in 1999
(4.0)
Translate this page: