Math & ScienceCorrect Alignment for Lorentz Indices

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kylezak
Posts: 3
Joined: Sat Nov 17, 2012 7:22 pm

Correct Alignment for Lorentz Indices

Post by kylezak »

I am new to LaTeX, just a small question.

How do you put Lorentz indices so that they are not right one above the other?

I need them to be spaced e.g. if I put a_\mu ^\nu, they would appear on top of each other without any spacing.
Last edited by cgnieder on Sat Nov 17, 2012 7:42 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Correct Alignment for Lorentz Indices

Post by hugovdberg »

I'm guessing you want the superscript to be to the right of the subscript, this could be accomplished like this:

Code: Select all

${a_\mu}^\nu$
The brackets make the superscript to be aligned next to the combination in stead of the previous symbol (in this case a)
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
User avatar
cgnieder
Site Moderator
Posts: 2000
Joined: Sat Apr 16, 2011 7:27 pm

Correct Alignment for Lorentz Indices

Post by cgnieder »

Hi kylezak,

Welcome to the LaTeX community!

You might be interested in the tensor package:

Code: Select all

\documentclass{article}
\usepackage{amsmath}
\usepackage{tensor}
\begin{document}

\[ \tensor{a}{^\mu_\nu} \]

\end{document}
Regards
site moderator & package author
hugovdberg
Posts: 133
Joined: Sat Feb 25, 2012 6:12 pm

Correct Alignment for Lorentz Indices

Post by hugovdberg »

The tensor package is quite nice indeed, at least if you want to keep the indices all aligned. However, to achieve that, wouldn't that mean you will have to replace all regular indices with the tensor commands?
Ubuntu 13.10 + Tex Live 2013 + Texmaker / Windows 7 Pro + MikTex 2.9 + TexnicCenter / Android 4.3 + TexPortal + DroidEdit
kylezak
Posts: 3
Joined: Sat Nov 17, 2012 7:22 pm

Re: Correct Alignment for Lorentz Indices

Post by kylezak »

Thank you guys for your replies!
Post Reply