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

Is it possible to use a custom symbol name as an index in Cadabra 2?

For example, I want to have

\dalpha::LaTeXForm("\dot{\alpha}").
\dbeta::LaTeXForm("\dot{\beta}").
{\dalpha,\dbeta}::Indices(spinor, position=independent).
{\dalpha,\dbeta}::Integer(1..2).

but then v_{\dalpha} throws an exception even though \dalpha itself can be used in an expression. (I may also be misunderstanding a difference in Cadabra 2 vs Cadabra 1.)

in General questions by (1.0k points)

1 Answer

+1 vote

Ouch, that was a very trivial typo in the 2.x code, but sufficient to mess up all LaTeXForm'ed symbols in sub/superscripts. Now fixed in github. Thanks!

by (80.3k points)
...