Report Generator: How to Insert a Page Break Between Paragraphs?
5 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(2 个)
Tomas
2013-11-12
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 个评论
Tomas
2013-11-12
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!