How to make mlx export to use word's default template?
80 次查看(过去 30 天)
显示 更早的评论
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?
0 个评论
回答(1 个)
Abhishek Kumar Singh
2024-11-4,2:21
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Adding custom doc 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!