Welcome to Cadabra Q&A, where you can ask questions and receive answers from other members of the community.
+1 vote

OK thanks. Here's one more: How to do line-break? If the expression is long (e.g. many substitutions at once), then it's useful to be able to break the line. It could be done in Cadabra 1, but v.2 is giving error.

related to an answer for: Cadabra 2: suppressing output, font size
asked in General questions by (290 points)

1 Answer

+1 vote

You can enter expressions as

ex:= A + B 
        + C + D;

If you have large substitution rules, you need to enter them as an expression first, and then do the substitution,

rl:= A -> B + C
              + D + E;

substitute(ex, rl)

It is not possible to enter multiline expressions using $...$ notation.

answered by (62.2k points)

OK, I see. Thanks!