How to make mlx export to use word's default template?
Show older comments
When I use 'export' on a Live Script mlx file to docx, the output is created without the word template.
However, when use 'publish' on an m file, the output doc file uses the default word template.
How can I make mlx's 'export' function use the default word's template?
Answers (2)
Abhishek Kumar Singh
on 4 Nov 2024
By default, the export function for MLX files converts them into PDF format. To export an MLX file to a DOCX format, you need to specify the 'Format' name-value argument. Additionally, you can customize options such as page size.
Here's an example of how to use the export function:
>> export("yourMLXfile.mlx", Format="docx", PageSize="Letter", OpenExportedFile=true)
Please refer to the documentation section here: https://www.mathworks.com/help/matlab/ref/export.html#namevaluepairs
I hope this helps.
1 Comment
Sasha Brodski
on 6 Nov 2024
Sasha Brodski
on 3 Feb 2025
0 votes
Categories
Find more on MATLAB Report Generator in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!