How do I adjust the Chapter title font size using MATLAB Report Generator R2010b (3.9)?
3 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2011-8-1
编辑: MathWorks Support Team
2014-9-3
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.
采纳的回答
MathWorks Support Team
2013-10-18
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 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Report Generator 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!