How to wrap inline comments in live scripts?

5 Ansichten (letzte 30 Tage)
Matthew
Matthew am 1 Apr. 2020
I'm new to Live Scripts and evaluating them for an application that presently uses Mathcad. One seemingly small issue that I could see derailing Live Script adoption for this application is the lack of automatic wrapping of inline comments. Often in these analysis document we need to define various inputs in a long list, for example (one line):
U=symunit;
sigma_y=205000*U.psi; % Yield strength of material XXX
Sometimes these inline comments get long as we reference engineer specs, etc. (In Mathcad/Maple/etc. this would be done with a table dividing the page vertically between math and text.) When we ultimately export this analysis to PDF we need those comments not to extend off the page as they do now. It would be a nightmare to have to manually wrap all these comments and it would be non-ideal to have them on a separate line b/c it may double the length of the document. Is there a way to force auto-wrap for these inline comments? (Note: Even the "wrap comments" button in the Live Editor ribbon doesn't seem to work on inline comments!) If there is no present way to automate this, could a feature request be submitted? Or another useful feature would be if there was a way to know the comments were going to extend off the page before exporting to PDF.
Note: Actually using 2020a but it is not an option under "Release."

Antworten (0)

Kategorien

Mehr zu Function Creation finden Sie in Help Center und File Exchange

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by