Question: How to convert statements with comments in 2D-Math to 1D-Math

Occasionally I want to convert 2D-Math input to 1D-Math input. This is either not fully working with comments or changes the format. Example:

Try converting the input below to Maple 1D-Math (select -> right click -> 2D-Math -> convert to -> 1D-Math)

statement

statement

(1)

The*comment*dissapears:

statement;

 

statement

(2)

The Maple Input at the top can be converted by selecting the style C Maple Input from the edit tab but the font changes not to the default font for 1D Math-Input;

statement

statement

(3)

The above is in italic and not in bold. However the default for 1D-Math Input is the following

statement

statement

(4)

 

NULL

Also pasting code with comments in MaplePrimes (function insert code snippet) removes comments.

Any other ways? Ideally, I would also like to convert a whole document in one go, That is probably asked too much.

Download convert_comment_to_1D.mw

Please Wait...