Live Script Publishing, Output and converting to word
74 views (last 30 days)
Show older comments
I am running into some trouble with the livescripts formatting when exporting it to a particular document type.
For example, say I have a livescript with symbolic equations, which print out in the output window. When I go to export the livescript as word document, Matlab performs the operation and word opens, however, all the equations are converted into images (pngs), which are gray and lack publishing appeal. I can export the document to latex and retain the equations text equations but the formatting is still not appealing (still gray) and the matlab.sty file I have yet to figure out how to change the font settings.
My goal is create high quality live scripts.
- Is there a way to change the font size,type,and weight for the output window for the livescript? I wouldnt mine the images in the word document if they actually looked good!
- For exporting to word, how can we prevent the conversion of the equations to images ? Leaving them as mathml or latex would allow word to render them.
- For latex, how can we easily change the styling? I would like to have tradational latex and bold fonts for equations.
I am looking for more out of livescripts, but I dont know how I can develope my own code to modify the features and create new features so I have to ask. (I have done a lot of research just running out of possibilities).
A sample of a equation that was coverted to a png in word. Since its converted to an image I cant modify it in word.
I
0 Comments
Answers (1)
Ralf Hillebrand
on 3 Mar 2021
Hi,
I'm very sorry for the delayed answer. I noticed this post just now.
You are right, that the current export to word options for equations are very limited. Equations are pasted as images and there are no configuration options.
I can only suggest a manual workaround: In Live Script equations you have an entry "Copy as MathML" in the context menu. When you copy an equation as MathML through the contextmenu, you can paste that into Word as a Word equation. That might fail when Word refuses to accept the MathML encoding.
Thank you for using the Live Editor and your feedback!
Kind regards
- Ralf
See Also
Categories
Find more on Live Scripts and Functions 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!