Main Content

mlreportgen.report.Equation.createTemplate

Class: mlreportgen.report.Equation
Package: mlreportgen.report

Create equation reporter template

Syntax

template = mlreportgen.report.Equation.createTemplate(templatePath,type)

Description

template = mlreportgen.report.Equation.createTemplate(templatePath,type) creates a copy of the equation reporter template specified by type at the location specified by templatePath. You can use the copied template as a starting point to design a custom equation template for your report.

Input Arguments

expand all

Path and file name of the new template, specified as a character vector or string scalar.

Type of template, specified as 'html', 'html-file', 'docx', or 'pdf'.

Output Arguments

expand all

Path and file name of the copy of the template, returned as a string scalar. The file name extension of the template is based on the specified template type. For example, if the type argument is 'pdf', the file name extension is .pdftx.

Examples

expand all

Create a copy of the HTML template for the equation reporter and save it with the name myEquationTemplate in the mytemplates folder.

template = mlreportgen.report.Equation.createTemplate...
     ('mytemplates/myEquationTemplate','html');

After you modify the template, you can use it by setting the TemplateSrc property of the reporter.

rptr = mlreportgen.report.Equation;
rptr.TemplateSrc = template;

Introduced in R2017b