Skip to main content
3-Newcomer
March 13, 2026
Question

line breaks/wrapping in Mathcad expressions

  • March 13, 2026
  • 2 replies
  • 276 views
I am using Mathcad Prime Release 10.0 and Datecode10.0.1.0

Hello,
is there a way to insert line breaks in Mathcad expressions, especially when using READEXCEL with long file paths? I need to read two matrices from different files and combine them using AUGMENT(A, B), but the full expressions do not fit on one worksheet line.
Is line wrapping supported, or is there a recommended workaround?

2 replies

14-Alexandrite
March 13, 2026

Not that I've found. I just split up long file paths into individual folders and file name strings, and concatenate then

3-Newcomer
March 13, 2026

Thanks. It is odd that there is no feature or word wrap. Maybe that is only a Prime issue. It is not blocking me but for a nice sheet it would be appreciated.

Anyway thanks for you reply.

23-Emerald V
March 13, 2026

Why do you need to put the full file names on one line?

 

A common method of dealing with long file names is to assign them to string variables and then use the string variables in place of the file name string itself.

 

If the full file names are still too long to fit in one page then you could:

 

  • make the font size smaller (if the names only extend part way into the draft are).
  • break the full file name up into, say, path and (short) file name, and use the string function concat to build the full file name string variable.


As noted, an example worksheet or screenshot of your problem would be helpful in giving further assistance.

 

(the ability to wrap lengthy strings has previously been suggested as a new feature).

 

Stuart

 

(sent from my iPhone)

3-Newcomer
March 16, 2026

Hello,
I’ve attached an example. The filename is quite long because it’s generated automatically by a program. Renaming it would be the simplest solution, but that would break my process—so I need to work with it as it is.
If I define the filename separately, concatenate it, and adjust the font size, I can make it work, but that feels like unnecessary trial and error. Ideally, I’d like to assign the text to a variable and have it wrap automatically.
Thanks,
Michael

23-Emerald V
March 16, 2026

Unfortunately, I'm not aware of any mechanism that will automatically wrap a string to the page width.   

 

Another method, which probably won't work with your flow, is to change the page orientation to Landscape:

 

2026 03 17 A.png

 

Another option is to write/borrow/steal a set of functions that will break up the filename for you.  For example, it is possible to create a string variable that inserts a line break character (codepoint 133, IIRC), and then display that.  Here's an example that fits a very long string to a 40-character width and left and right justifies the resulting string (there are additional functions that centre and fully justify the string, as well).

 

2026 03 17 B.png

 

If your Mathcad has a maintenance licence, then you could raise the matter with the PTC support line.

 

Stuart