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:

Introduced in 2014
 (10.0)