I’m very confused that why the multiline comments can’t be aligned in Mathematica notebook. See the attached notebook for more information.
What is the problem with my settings and usage?
Regards,
HZ
DiracGammaMatrix.nb (14.1 KB)
I’m very confused that why the multiline comments can’t be aligned in Mathematica notebook. See the attached notebook for more information.
What is the problem with my settings and usage?
Regards,
HZ
DiracGammaMatrix.nb (14.1 KB)
You could make each line a separate comment. Like this :
(* https://mathematica.stackexchange.com/questions/159808/commutator-of-gamma-matrices *)
(* https://mathworld.wolfram.com/DiracMatrices.html *)
(* https://en.wikipedia.org/wiki/Gamma_matrices *)
Table[Internal`DiracGammaMatrix[k, "Basis" -> "Chiral"] // MatrixForm, {k, 4}]
Table[Internal`DiracGammaMatrix[k, "Basis" -> "Dirac"] // MatrixForm, {k, 4}]
Table[Internal`DiracGammaMatrix[k, "Basis" -> "Majorana"] // MatrixForm, {k, 4}]
If you copy this snippet to a notebook you have to add a line feed feed after each comment line.
You can devide the cell into two cells, the first one holding the URLs and the second on the calculation. Then you format the 1st cell as “text” and not as “input” → the URLs are nicely aligned. Now you could also drop the comment statement and you get as benefit the possibility that you can now use the URLs for navigation just by clicking
Regular comments seem to be formatted somewhat like input code. I sometimes do two different things when I wish to avoid this, which I, too, find rather dissatisfying.
(* *).(*" comment... "*). This is the one I use most often.See figure: