This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.



Get title page publication date reporter


reporter = getPubDateReporter(tp)


reporter = getPubDateReporter(tp) returns a reporter that the TitlePage reporter (tp) uses to format the value specified by the PubDate property. You use getPubDateReporter to customize the publication date alignment, position, and appearance of the publication date.


Input Arguments

expand all

Title page of the report, specified as a title page reporter object. To create the tp input, you use

Output Arguments

expand all

Title page publication date reporter, returned as a reporter object.


Use Nondefault Title Page Publication Date Style

Create a style for the publication date on your title page that differs from the default. Before you run this example, create a template file named MyTitlePageTemplate and customize its TitlePagePubDate style. Then, use getPubDateReporter and the TemplateSrc property to use your template.

rpt = Report();
tp = TitlePage();
tp.PubDate = 'June 1 2017';
tp.PubDate = getPubDateReporter(tp);
tp.PubDate.TemplateSrc = 'MyTitlePageTemplate';

Introduced in R2017b