Publish with automatic figure insertion

Automates insertion of full featured figure files (*.fig ) into published Word documents.
356 Downloads
Updated 17 Dec 2013

View License

In many situations, plain raster graphic versions of the plots, inserted in documents produced with the publish command, limits a potential curious reader from digging deeper into the fine details of the data.

Even though it is always possible to provide of as many aspects of the data as needed, it will always result impractical, and maybe impossible to predict what our readers would need or want to see in detail.

pbl.doc() automates the process of converting every figure opened in current session into the Matlab's *.fig format, so they can be appended at the end of the published Word document, making this tedious task a very simple process.

The implementation makes use of MSOffice's activeX API to manipulate the published document.

Cite As

Ruben D. Gonzalez L. (2024). Publish with automatic figure insertion (https://www.mathworks.com/matlabcentral/fileexchange/44704-publish-with-automatic-figure-insertion), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

Version Published Release Notes
1.3.0.0

Added a new option to insert *.fig files after each plot picture in published document: "figsAfterPics=true".
Additionally, most of the customization structure defined for the 'publish' command, are now available as optional 'option=value' pairs.

1.1.0.0

After realizing the ActiveX capabilities of Matlab, it was straight forward to port the VBS script implementation to its Matlab equivalent.

Version 2 of the implementation removes the use of cscript.exe as a VBS interpreter.

1.0.0.0