Report Generator: How to Insert a Page Break Between Paragraphs?
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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?
0 Kommentare
Antworten (2)
Tomas
am 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.
0 Kommentare
Tomas
am 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.
0 Kommentare
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!