Correct upper and lower indices in differential geometry

Hi friend,

When doing geometry or physics, one often encounters upper and lower indices that are offset using \hphantom to align them, for example:

\Gamma^{\mu}_{\hphantom{\mu}\beta\alpha}

How can one implement this in TeXmacs?

Best regards,
Yeoi

You can use \hphantom in TeXmacs as well :slight_smile:
Perhaps someone else knows a different way.

Dear Pireddag,

Thank you very much for your kind response. I was wondering if you might have an example of how to use \hphantom in TeXmacs. I tried reading the explanation file in TeXmacs Focus, but I’m afraid I didn’t quite understand it.

Thank you again for your time and help!

Warm regards,
Yeoi

Pls. paste your (first message) LaTeX expression into TeXmacs using Edit->Paste from->LaTeX; then you will be able to examine the corresponding TeXmacs structure in source mode.

Tomorrow I will have time to guide you step by step if necessary.

There should be something in the Jolly Writer about this particular use-case, if I remember correctly.

@yeoi Phantoms are clearly explained in §7.5.4 of The Jolly Writer, as mentioned by @mgubi.

image

Hi Giovanni,

Thank you for teaching me this generic method for getting the TeXmacs code from LaTeX code. Yes, I could see that the TeXmacs source for this is simply \hphantom with an arbitary placeholder.

Best regards,
Yeoi

Thank you very much Professor Gubinelli. Yes, it is mentioned in The Jolly Write as cited below by @xuyiqi1. And it seems to me that both phantom and hphantom do almost the same thing.

hphantom regulates only horizontal space, vphantom only vertical, phantom both.