Report generator - center images

조회 수: 4 (최근 30일)
Lauren
Lauren 2014년 10월 1일
댓글: Lauren 2014년 10월 2일
I am creating a report with Report Generator and I would like the figures centered on the page. When I open the report (Word document), the figures are not centered. I have tried many adjustments on the Report Generator stylesheet, but it does not work. To get it to center, I have to click the image in the word document and then if I click any of the style settings (eg "Normal" or "No Spacing") in the document it actually centers on the page. Is this a Word issue or is there something I can do with Matlab/Report Generator to make it work?

답변 (1개)

Aarti Ghatkesar
Aarti Ghatkesar 2014년 10월 1일
The following steps show how figures can be aligned to the center. Please note that these steps use the standard rpt file magic-square.rpt shipped with MATLAB.
Open MATLAB Report Generator (>> report).
Open the standard shipped magic-square.rpt setup file(or you could open your rpt file) from the Options Pane. Select Word Document(RTF) file format with Standard Print in Report Format and Stylesheet section from Properties Pane.
Click the "Figure Snapshot". In the Display Options section of the Properties Pane, select Alignment set to Center.
  댓글 수: 1
Lauren
Lauren 2014년 10월 2일
Thank you. This is what I have done, but it does not actually center the figure without me having to tweak it in Word.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Images, Figures, Axes, Equations, MATLAB Code, and MATLAB Variables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by