Desktop Tools and Development Environment Previous page   Next Page

Publishing Preferences for the Editor/Debugger

Select File -> Preferences -> Editor/Debugger -> Publishing to specify preferences for publishing M-files that contain cells. For details, see Publishing to HTML, XML, LaTeX, Word, and PowerPoint Using Cells.

Publish: Code Execution

Evaluate code.   When selected, MATLAB evaluates the code while publishing the results and includes the results in the output document.

With the check box cleared, MATLAB does not evaluate the code when publishing and does not include the code results in the output document. Note that because this does not evaluate the code, there might be invalid code in the M-file, so you might not want to use this option without first running the M-file or publishing with this option selected.

Use new figure.   When selected, MATLAB creates a new figure window with a white background and at the default size before publishing. After publishing finishes, MATLAB closes the figure window.

To use a figure with different properties for publishing, clear the Use new figure preference. Then open the figure window, change the size and background color, for example, and then publish. Figures in your published document use the characteristics of the figure you opened before publishing.

Display code in output.   When selected, the MATLAB code in the M-file appears in the published document. With the check box cleared, the code in the M-file is "hidden" in the output file as an HTML comment. Use grabcode to extract the code from the HTML file.

Publish: Output

Default format.   Select the default format. This changes the default that appears in the File -> Publish to menu item. It also changes the format published to when you click the Publish button in the cell toolbar. If your platform does not support the application for a format, that option might not appear or you might get an error when you use it. For example, the PowerPoint format is not supported on the Linux platform.

XSL stylesheet (HTML, XML, or LaTeX formats).   When publishing to HTML, XML, or LaTeX, this preference specifies the Extensible Stylesheet Language (XSL) stylesheet used. Select either Default to use the stylesheet that MATLAB includes, or select Custom and specify the location of your own stylesheet.

Location.   MATLAB stores published document files and supporting files in either

See Also


Previous page  HTML Language Preferences Publishing Images Preferences for the Editor/Debugger Next page

© 1994-2005 The MathWorks, Inc.