How to change fontsize in the report generator explorer?
11 views (last 30 days)
Show older comments
Baptiste JACQUES
on 7 Jun 2018
Answered: Rahul Singhal
on 12 Jun 2018
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
0 Comments
Accepted Answer
Rahul Singhal
on 12 Jun 2018
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!
0 Comments
More Answers (1)
Stephen Devlin
on 7 Jun 2018
Edited: Stephen Devlin
on 7 Jun 2018
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?
See Also
Categories
Find more on Title Pages, Tables of Contents, Lists of Figures, Tables, and Captions 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!