필터 지우기
필터 지우기

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

조회 수: 2 (최근 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.

Community Treasure Hunt

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

Start Hunting!

Translated by