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

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
in General questions by (300 points)

1 Answer

+2 votes

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.

by (83.1k points)

OK, I see. Thanks!

...