DocumentNotebook[{cell1,cell2,…}]
表示 Wolfram 系统前端的一个完整的文件笔记本.
DocumentNotebook
DocumentNotebook[{cell1,cell2,…}]
表示 Wolfram 系统前端的一个完整的文件笔记本.
更多信息和选项
- CreateWindow 采用 DocumentNotebook 表达式并在另一个不同的窗口显示它.
- 如果在笔记本内生成输出,DocumentNotebook 显示为一个笔记本的内嵌单元表示.
- DocumentNotebook 可以使用任何笔记本选项.
范例
打开所有单元 关闭所有单元基本范例 (2)
范围 (3)
选项 (5)
Background (1)
CellDingbat (1)
CellGrouping (1)
TextAlignment (1)
应用 (2)
mammalPage[common_, picture_, order_, family_, species_] := DocumentNotebook[Style[Grid[{{Style[common, FontSize -> 18], SpanFromLeft}, {picture, Column[Row[{#1, ": ", Style[#2, FontWeight -> Bold]}]&@@@{{"Order", order}, {"Family", family}, {"Species", species}}]}}, Frame -> True], FontFamily -> "Arial", ShowStringCharacters -> False]]CreateWindow[mammalPage["Ocelot", Import["ExampleData/ocelot.jpg"], "Carnivora", "Felidae", "Leopardus pardalis"]];outline[l_List] := l //. {s_String, r___} :> f[s, r] /. s_String :> TextCell[s] //. f[c__] :> CellGroup[{c}]outline[{"Chap. 1", {"Sec. 1", "a"}, {"Sec. 2", "b", "c"}}]//InputFormCreateWindow[DocumentNotebook[%, CellGrouping -> Manual]];属性和关系 (2)
用 CreateWindow 得到 NotebookObject:
nb = CreateWindow[DocumentNotebook[{a, b, c}]];在笔记本的行为中用 NotebookObject:
SelectionMove[nb, Next, Cell]NotebookRead[nb]NotebookDelete[nb]PaletteNotebook 和 DialogNotebook 对象主要用于用户接口工具:
PaletteNotebook[{"Square root", Button[Sqrt[π], p = N[Sqrt[π]]]}]DialogNotebook[{TextCell[Row[{"Your name:", InputField[]}]]}]相关的工作流程
- 制作带有滑块和其他控件的表单
文本
Wolfram Research (2007),DocumentNotebook,Wolfram 语言函数,https://reference.wolfram.com/language/ref/DocumentNotebook.html.
CMS
Wolfram 语言. 2007. "DocumentNotebook." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/DocumentNotebook.html.
APA
Wolfram 语言. (2007). DocumentNotebook. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/DocumentNotebook.html 年
BibTeX
@misc{reference.wolfram_2026_documentnotebook, author="Wolfram Research", title="{DocumentNotebook}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/DocumentNotebook.html}", note=[Accessed: 11-September-2026]}
BibLaTeX
@online{reference.wolfram_2026_documentnotebook, organization={Wolfram Research}, title={DocumentNotebook}, year={2007}, url={https://reference.wolfram.com/language/ref/DocumentNotebook.html}, note=[Accessed: 11-September-2026]}