mathjs icon indicating copy to clipboard operation
mathjs copied to clipboard

Display problem with long lines on Math Notepad

Open ldecarufel opened this issue 1 year ago • 3 comments

Hello! I hope this is the right plate to post these kind of issues.

I've been a SpeQ user for several years, and I'm now trying to use it's successor Math Notepad. I like it a lot! It's keeping the functionality I loved in SpeQ, while improving on graphing and ease of use. 🙂

However, I have some display issues with long formulas. Basically, it would be nice if they were displayed on multiple lines.

Currently, we only see either the end of the code line, or the start. This makes it really difficult to read the formula as a whole.

Seeing start of line: image

Or seeing the end of the line: image

So here are my suggestions:

  • It would be nice if the page width could be enlarged, or if long formulas could be displayed on multiple lines.
  • If part of a formula needs to be hidden, it would be nice if "..." would be displayed to show that the line is not complete and some part is hidden.
  • Unrelated, but it would be nice to have a "Save As" menu option as well.

ldecarufel avatar Nov 21 '24 17:11 ldecarufel

Thanks for your suggestion Louis. The editor indeed has an issue with showing long lines that are wrapped.

What you can do though is spread your long formulas over multiple lines by pressing Shift+Enter to create a new line in the current expression

josdejong avatar Nov 27 '24 13:11 josdejong

Thanks for the suggestion, I'll try that out! 😃

I'm usually have a "template" file I use to store "library" functions with variables I often use. As a graphics programmer, I added a "lerp" and a "saturate" function for example. With a "Save As" option, to start a new sheet, I would open my template file and save it under a different name.

Another option would be to allow "including" other files (perhaps with an "import" or "include" function). That way I could include my library file at the top of every new sheet.

ldecarufel avatar Nov 28 '24 16:11 ldecarufel

Yes, one idea I have is that you can import other files, and I would like to set up a "marked place" where you can share usable collections with functions.

josdejong avatar Nov 29 '24 09:11 josdejong