Including graphics into title page using customize title page stylesheet in report generator

3 次查看(过去 30 天)
I am using the Matlab report generator. I wanted to create a custom title page so I used the Custom Titlepage stylesheet. I'm looking to include a graphic on this page, but using the custom titlepage stylesheet seems to disable the graphics that I included from the "Image" option in the Titlepage component. All other inputs from the Titlepage component work, Title, Subtitle, Author, Abstract, Legal Notice and the timestamp, but not the graphic. Any help on how to modify the Value(XML) to include the image specified in the titlepage component would be appreciated. Currently the Value(XML) code for content reads as follows, there is a graphics option specified, but it appears to do nothing:
<title font-family="{$title.fontset}" margin-left="{$title.margin.left}"/>
<subtitle font-family="{$title.fontset}"/>
<graphic/>
<author/>
<copyright/>
<legalnotice/>
<pubdate/>
<abstract/>
</t:titlepage-content>

回答(1 个)

Phil Goddard
Phil Goddard 2015-9-14
Came across the same problem recently, and found that within the XML (generated by temporarily using the DocBook target), you'll find that the tag used is called <imageobject> not <graphic>.
Hence, within the Custom Titlepage stylesheet, if you change all occurrences of <graphic/> to <imageobject/> then the image will get put into the report.
That works for me in R2015a.

类别

Help CenterFile Exchange 中查找有关 MATLAB Report Generator 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by