-
関連項目
- 関数
- PasteBoxFormInlineCells
-
- メニューアイテム
- 画像
-
-
関連項目
- 関数
- PasteBoxFormInlineCells
-
- メニューアイテム
- 画像
-
関連項目
AllowInlineCells
SelectedCells,Cellおよび関連構文のオプションで,インラインセルを許可するかどうかを指定する.
詳細
- AllowInlineCellsはSelectedCellsに使われ,インラインセルをCellObjectとして返すかどうかを決定する.このオプションがFalseでインラインセルが選ばれると,SelectedCellsは選択されたインラインセルを含むトップレベルのセルを返す.
- AllowInlineCellsは,Cellあるいは関連構文がインラインセルのインタラクティブな作成を許可するかどうかを制御する.デフォルト設定のAllowInlineCells->Trueでは,セルの中にネストしたセルを作ることができる.例えば,インラインセルは,タイプセット式やグラフィックスを同じセルの中のテキストと一緒に表示する場合に有用である.
- AllowInlineCells->Falseの設定では,セルの中にインラインセルを作成することができない.例えば,InputForm(入力形)の場合がこれに該当する.
例題
すべて開く すべて閉じる例 (1)
CellPrint[Cell[BoxData[
RowBox[{"123", " ", Cell["Sample inline cell", "InlineFormula"]}]], "Text", CellTags -> "SelectedCellsDemo"]]AllowInlineCellsTrueとすると,以下でインラインセルが選択される:
NotebookFind[SelectedNotebook[], "SelectedCellsDemo", Previous, CellTags];
SelectionMove[SelectedNotebook[], Before, Cell];
NotebookFind[SelectedNotebook[], "Sample inline cell"];
sel = SelectedCells[AllowInlineCells -> True]NotebookRead[sel]AllowInlineCellsFalseとすると,選択は自動的にインラインセルを含むセル全体に拡張される:
NotebookFind[SelectedNotebook[], "SelectedCellsDemo", Previous, CellTags];
SelectionMove[SelectedNotebook[], Before, Cell];
NotebookFind[SelectedNotebook[], "Sample inline cell"];
sel = SelectedCells[AllowInlineCells -> False]NotebookRead[sel]スコープ (1)
次は,デフォルトでAllowInlineCells->Falseが設定されたInputFormセルを生成する:
NotebookWrite[SelectedNotebook[], Cell[BoxData[RowBox[{"AllowInlineCells", " ", "->", " ", "False"}]], "Input", CellTags -> "AllowInlineCellsFalse"], All];FrontEndExecute[FrontEndToken[FrontEnd`SelectedNotebook[], "SelectionConvert", "InputForm"]]AllowInlineCells -> FalseInputFormセルにインラインセルを挿入しようとしても通常は挿入できない.期待される結果では,ビープ音がしてセルが変更されない:
NotebookFind[SelectedNotebook[], "AllowInlineCellsFalse", Previous, CellTags];SelectionMove[SelectedNotebook[], After, CellContents];
FrontEndTokenExecute["CreateInlineCell"]次は,AllowInlineCells->TrueとなったInputFormセルを生成する:
NotebookWrite[SelectedNotebook[], Cell[BoxData[RowBox[{"AllowInlineCells", " ", "->", " ", "True"}]], "Input", CellTags -> "AllowInlineCellsTrue", AllowInlineCells -> True], All];FrontEndExecute[FrontEndToken[FrontEnd`SelectedNotebook[], "SelectionConvert", "InputForm"]]AllowInlineCells -> True``inline cell``NotebookFind[SelectedNotebook[], "AllowInlineCellsTrue", Previous, CellTags];SelectionMove[SelectedNotebook[], After, CellContents];
FrontEndTokenExecute["CreateInlineCell"];
NotebookWrite[SelectedNotebook[], "inline cell"]履歴
1999 で導入 (4.0)
テキスト
Wolfram Research (1999), AllowInlineCells, Wolfram言語関数, https://reference.wolfram.com/language/ref/AllowInlineCells.html.
CMS
Wolfram Language. 1999. "AllowInlineCells." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/AllowInlineCells.html.
APA
Wolfram Language. (1999). AllowInlineCells. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/AllowInlineCells.html
BibTeX
@misc{reference.wolfram_2026_allowinlinecells, author="Wolfram Research", title="{AllowInlineCells}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/AllowInlineCells.html}", note=[Accessed: 20-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_allowinlinecells, organization={Wolfram Research}, title={AllowInlineCells}, year={1999}, url={https://reference.wolfram.com/language/ref/AllowInlineCells.html}, note=[Accessed: 20-June-2026]}