User`s guide
Customized Stylesheets
8-35
Change Font Size, Page Orientation, and Paper Type of a Generated
Report
This example shows how to:
• Generate an XML source file without converting it to a supported report format
• Make section headers in a report larger
• Change the report page orientation to landscape
• Change the report paper type to A4
Create a custom stylesheet by editing an existing stylesheet to change the appearance
of the wsvar-report report, which is provided with the MATLAB Report Generator
software.
1
Generate a source file for the report.
a
Open the report by entering the following command in the MATLAB Command
Window:
setedit wsvar-report
b
In the Report Format and Stylesheet area of the Properties pane, change the
format to DocBook (no transform).
c
Check the If report already exists, increment to prevent overwriting
check box.
d
Select File > Report to generate the report.
The report-generation process creates an XML source file in the MATLAB
Editor.
2
Convert the report to PDF format.
a
Select Tools > Convert Source File from the Report Explorer menu bar to
open the File Converter.
b
From the Source file selection list, enter wsvar-report0.xml.
c
From the File format selection list, select Acrobat (PDF).
d
From the Stylesheet selection list, select Unnumbered Chapters and
Sections.
e
Click Convert File.