How do I retain the font and wrap the text while entering text using the "retain spaces and carriage returns" in paragraph component using MATLAB Report Generator R2010b (3.9)?

1 view (last 30 days)
I created a report to generate a PDF and a stylesheet file to go with it.
I entered some text within the paragraph component in my report and had checked the "retain spaces and carriage returns" option.
In the generated report I notice that the paragraph is now in a different font and the text is not wrapped.
I would like to be able to retain the font and also wrap the text.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 1 Aug 2011
The font of the text while using “Retain spaces and character returns“ option within paragraph component can be modified by using the “Monospace Font Family” attribute (under the “Font families” folder) to the stylesheet and set its value to “serif”.
In order to wrap the text when "Monospace Verbatim Properties" property set (under the folder "Property Sets") can be added to the stylesheet and its nested "Wrap Option" value can be changed to "wrap".

More Answers (0)

Categories

Find more on MATLAB Report Generator in Help Center and File Exchange

Products


Release

R2010b

Community Treasure Hunt

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

Start Hunting!