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!