NotebookTemplate

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

DetailsDetails

  • 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"].

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Generate a TemplateObject from an existing notebook:

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

Apply the template:

In[2]:=
Click for copyable input
Out[2]=
Introduced in 2014
(10.0)