필터 지우기
필터 지우기

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

조회 수: 5 (최근 30일)
Riley Wright
Riley Wright 2011년 5월 4일
답변: Tomas 2013년 11월 12일
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?

답변 (2개)

Tomas
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.

Tomas
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.

Community Treasure Hunt

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

Start Hunting!

Translated by