How do I adjust the Chapter title font size using MATLAB Report Generator R2010b (3.9)?
3 views (last 30 days)
Show older comments
MathWorks Support Team
on 1 Aug 2011
Edited: MathWorks Support Team
on 3 Sep 2014
I created a report to generate a PDF and created a stylesheet ot go with it.
I noticed that my generated report has a Chapter title size that is very big.
I would like to be able to modify the font size. Which attribute should I use to achieve this.
Accepted Answer
MathWorks Support Team
on 18 Oct 2013
The ability to change the title font size from within the MATLAB Report Generator R2010b (3.9) GUI is not available.
As a workaround, open the stylesheet (RGS) file in a text editor and add the following lines just before </xsl_code>.
<xsl:template match="title" mode="chapter.titlepage.recto.auto.mode">
<fo:block xmlns:fo="<http://www.w3.org/1999/XSL/Format http://www.w3.org/1999/XSL/Format"> xsl:use-attribute-sets="chapter.titlepage.recto.style" font-size="24pt" font-weight="bold">
<xsl:call-template name="component.title">
<xsl:with-param name="node" select="ancestor-or-self::chapter[1]"/>
</xsl:call-template>
</fo:block>
</xsl:template>
Modify the "font-size" parameter value at on the second line as needed, the code above uses "24pt".
Execute the "rptconvert -clearcache" on the MATLAB command prompt after every modfication that is made to the stylesheet file to ensure that the changes take effect in the generated report.
Note: this workaround could only work with PDF file. There is no workaround for Word file.
0 Comments
More Answers (0)
See Also
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!