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)

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]=

See Also

GenerateDocument  CreateNotebook  FileTemplate  TemplateObject  TemplateApply  XMLTemplate  NotebookGet  NotebookImport

Introduced in 2014
(10.0)