CellLabel
更多信息
- CellLabel->"" 指定对一个单元不使用任何标签.
- 当指定 ShowCellLabel->True 的设置时,显示单元标签. 当设置为 ShowCellLabel->Automatic 也可以显示为修改过的格式.
- 当单元作为 Wolfram 语言内核的输入和输出出现时,单元标签自动生成.
- 如果 CellLabelAutoDelete->True,当修改或存储单元时会自动删除单元标签. 如果 CellLabelAutoDelete->Automatic,只有在单元被修改时自动被删除.
范例
基本范例 (2)
选择正在计算的单元,并得到其 CellLabel 的设置:
SelectionMove[EvaluationNotebook[], All, EvaluationCell];Options[NotebookSelection[EvaluationNotebook[]], CellLabel]CellPrint[TextCell["abcde", "Text", CellLabel -> "Example", CellMargins -> {{120, 24}, {6, 6}}]]相关指南
-
▪
- 单元样式选项 ▪
- Wolfram 系统会话历史
相关的工作流程
- 删除输入和输出单元的标签
历史
1996年引入 (3.0) | 在以下年份被更新:2018 (11.3)
文本
Wolfram Research (1996),CellLabel,Wolfram 语言函数,https://reference.wolfram.com/language/ref/CellLabel.html (更新于 2018 年).
CMS
Wolfram 语言. 1996. "CellLabel." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2018. https://reference.wolfram.com/language/ref/CellLabel.html.
APA
Wolfram 语言. (1996). CellLabel. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/CellLabel.html 年
BibTeX
@misc{reference.wolfram_2026_celllabel, author="Wolfram Research", title="{CellLabel}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/CellLabel.html}", note=[Accessed: 10-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_celllabel, organization={Wolfram Research}, title={CellLabel}, year={2018}, url={https://reference.wolfram.com/language/ref/CellLabel.html}, note=[Accessed: 10-August-2026]}