There is a LaTeX package called “tensor”, which defines two commands “\indices” and “\tensor” for typesetting tensors with horizontally spaced mixed upper and lower indices. I would like to know whether the same function can be achieved in Obsidian.
What I’m trying to do
I would like to have the “\tensor” command as in LaTeX with the “tensor” package. For example, $\tensor{T}{^\mu_\nu^\rho}$ should produce a tensor with mixed indices.
Things I have tried
There is a plugin called MathJax Extended which seems to do the job, but I don’t really know what to put into the “preamble.sty” file.
Using the typst-renderer plugin, you can include arbitrary typst packages.
For example, by adding #import "@preview/physica:0.9.3":* to the typst-renderer preamble, you can access the tensor command. For example, the following
The solution that @haemeah gives could work for you.
However I was interested myself to recreate it with Mathjax (and therefore it should be compatible with LaTeX) and I found this relatively simple solution. Although if you have to use this often it is better to have the plugin of course.
$$
{}_{\alpha} {}^{\beta\phi} T {}_{\alpha} {}^{\beta\phi} {}_{\gamma\pi}
$$
I guess this is what I’m suppose to do, but I’m a noob at editing the plugin and stuff. I’ll learn about it later, and if I figure out a solution I’ll post it here.