How to change fontsize in the report generator explorer?

10 次查看(过去 30 天)
Hello,
I'm currently working with the report generator of matlab 2016a, with the report explorer. I managed to do almost everything i want in, except the font and fontsize which are not the good one. So I'm looking to modify those settings. I did try by right clicking on my report setup file and selected "Edit style sheet", then adding and modifying "bf size" and "mono font family" but no success.
Example: I want that the "paragraph" use "Time new roman", "12".
I would like also a tip to have a line or 2 beetween 2 pictures gathered by "FigureLoop"
Best regards,
Baptiste

采纳的回答

Rahul Singhal
Rahul Singhal 2018-6-12
Hi Baptiste,
In Report Explorer, are you using the new pipeline to generate reports, i.e., reports whose output type is template-based, e.g., Word (from template)? The new pipeline is recommended to generate customized reports by first creating a custom template and then generating reports based on this custom template. See the " Examples and How To" section here: https://www.mathworks.com/help/rptgen/report-layout.html
Tip to have line between 2 images: If you just want to insert line breaks between the images, use the Line Break component ( https://www.mathworks.com/help/rptgen/ug/linebreak.html ) after the Snapshot component in the Figure Loop. If you want to have a horizontal rule between the images, you can use the HTML Text component ( https://www.mathworks.com/help/rptgen/ug/htmltext.html ) and specify the HTML hr tag as shown below that generates a single horizontal rule in the template-based output report:
<hr></hr>
Hope this helps!

更多回答(1 个)

Stephen Devlin
Stephen Devlin 2018-6-7
编辑:Stephen Devlin 2018-6-7
Hi,
Here's an example of how I change fantasize in a table using the report generator.
t3=TableOutForPPoint;%this takes the table from the analysis script and makes it an
%object we insert
ResultsSlide1 = add(slides,'Title and Content');
replace(ResultsSlide1,'Title','Printhead Results Table');
ResultsSlide1.Style={FontColor('midnightblue'),Bold(true),FontFamily('Arial')};
% apply a table style to it.
contents = find(ResultsSlide1,'Content');
tbl = replace(contents(1),Table(t3));
tbl.StyleName = 'Medium Style 1 - Accent 1';
tbl.FontSize = '12';
And here's an example for altering font sizes in text, this is for a cover or section break.
%%Section Break Slide 3
BreakSlide2 = add(slides,'Title and Content');
replace(BreakSlide2,'Title','Nozzle Scans');
contents = find(BreakSlide2,'Content');
replace(contents(1),XaarP4pic);
BreakSlide2.Style={FontSize('60'),FontColor('midnightblue'),Bold(true),Underline('single'),FontFamily('Arial')};
Is that any help?
  2 个评论
Baptiste JACQUES
Baptiste JACQUES 2018-6-8
Thanks for you answer but I think I can't use this. Currently I'm not doing it with code but using report explorer (which open by typing report in matlab command). Or can i use some script in the report explorer?

请先登录,再进行评论。

产品


版本

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by