NotebookTemplate

NotebookTemplate[nb]

yields a TemplateObject that represents a notebook template to be applied using functions like GenerateDocument and FileTemplateApply.

Details

  • The notebook nb can be given as a notebook expression, a notebook object, or a string corresponding to a file.
  • A blank template notebook suitable to be used in NotebookTemplate can be opened in the front end using CreateNotebook["Template"].

Examples

Basic Examples  (1)

Apply a notebook template with a slot named "author":

Alternatively, generate a TemplateObject from an existing notebook:

Apply the template using TemplateApply:

Wolfram Research (2014), NotebookTemplate, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookTemplate.html.

Text

Wolfram Research (2014), NotebookTemplate, Wolfram Language function, https://reference.wolfram.com/language/ref/NotebookTemplate.html.

BibTeX

@misc{reference.wolfram_2021_notebooktemplate, author="Wolfram Research", title="{NotebookTemplate}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/NotebookTemplate.html}", note=[Accessed: 04-August-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_notebooktemplate, organization={Wolfram Research}, title={NotebookTemplate}, year={2014}, url={https://reference.wolfram.com/language/ref/NotebookTemplate.html}, note=[Accessed: 04-August-2021 ]}

CMS

Wolfram Language. 2014. "NotebookTemplate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NotebookTemplate.html.

APA

Wolfram Language. (2014). NotebookTemplate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NotebookTemplate.html