Live Script Publishing, Output and converting to word

조회 수: 86 (최근 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 CenterFile Exchange에서 Live Scripts and Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by