Live Script Publishing, Output and converting to word

72 ビュー (過去 30 日間)
Alex Ruiz
Alex Ruiz 2020 年 10 月 16 日
コメント済み: Alex Ruiz 2021 年 3 月 4 日
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.
  1. 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!
  2. 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.
  3. 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

回答 (1 件)

Ralf Hillebrand
Ralf Hillebrand 2021 年 3 月 3 日
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
  1 件のコメント
Alex Ruiz
Alex Ruiz 2021 年 3 月 4 日
Hi Ralf,
Thank you getting back to me! I have spent a lot of time in both pythons jupyter notebook and matlabs live script with symbolics. I have pushed it to as far as it can go. I would really appreicate if there was someway to modify the existing livescript editor, perhaps with call backs or classes ?
Primarly I would love to see a view option that shows all the output code/ equations at the end of a section, not line by line. As well, a way to perhaps print the equations as latex or as mathml. besides calling latex() after each one. A convert option which prints it like the equations (ctrl+shift+e). ?
As well, outputing to the equations to images would be okay if it didnt size them so small. Stretching an scaling in post it tiresome when the documents are 20+ pages. The scalling is just not optimal. I know I cant have everything but perhaps a method for which I can go in and make the experience and overall product better.
Its a great product and I have an expert experience with it and with matlab. It saves me alot of time but then cost me a lot of time with formating.
Best Regards,
Alex

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeLive Scripts and Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by