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

Greetings,

This simple statement

Dx{#}::LaTeXForm{"Dx"}.

raises a syntax error

SyntaxError: '{' was never closed

I'm running Cadabra version 2.5.2. build 3043.2a1d62739a.

Also, this version of Cadabra compiles fine under MacOS Sonoma 14.5.

Cheers, Leo

in Bug reports by (1.8k points)

1 Answer

+1 vote
 
Best answer

Properties use round brackets for their arguments, no matter how much recent C++ committees may have confused your brain with that.

Dx{#}::LaTeXForm("Dx").

works. The error message could probably be nicer, I agree.

by (82.5k points)
selected by

Hi Kasper, Wow, all these years my little brain has been confused. Thanks for setting me straight :). Cheers, Leo

...