How to change fontsize in the report generator explorer?
11 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Baptiste JACQUES
il 7 Giu 2018
Risposto: Rahul Singhal
il 12 Giu 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 Commenti
Risposta accettata
Rahul Singhal
il 12 Giu 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 Commenti
Più risposte (1)
Stephen Devlin
il 7 Giu 2018
Modificato: Stephen Devlin
il 7 Giu 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?
Vedere anche
Categorie
Scopri di più su Title Pages, Tables of Contents, Lists of Figures, Tables, and Captions in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!