Report Generator: How to Insert a Page Break Between Paragraphs?

2 views (last 30 days)
I am new to MatLab Report Generator and am trying to control the word processing aspects of it; for example, the paragraph and text components.
I need to insert a page break between paragraphs for optimum breaks in my text. How can I do this?

Answers (2)

Tomas
Tomas on 12 Nov 2013
Hi, I found this questions as well as several similar when myself trying to find out how to force the report generator to insert a page brake. No answers so at last I tried to insert this in a text segment in a paragraph:
%<sprintf('\L')>
It seems to work for my need at least.

Tomas
Tomas on 12 Nov 2013
A comment: sprintf('\L') generates warnings in Matlab:
Warning: Escape sequence '\L' is not valid. See 'help sprintf' for valid escape sequences.
but in the report generator there is no warning and it works (for me, generating .pdf).
On the other side, help sprintf suggests \f for form feed. Tried it, no warning in Matlab (and no form feed in the command window) but gives a warning "Not valid XML escape ..." and no page break in the report generator. Very consistent.

Community Treasure Hunt

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

Start Hunting!