Tensor Rank in LaTeX ((p, q))
- LaTeX command
(p, q)- Package
- No package needed: built into LaTeX
- Mode
- Text and math mode
Where it is used
Type of a tensor: p contravariant (upper) and q covariant (lower) indices, sometimes loosely called its rank.
A (p, q) tensor is an element of V^{\otimes p} \otimes (V^*)^{\otimes q}, so a vector is (1, 0), a covector (0, 1), a linear map (1, 1) and a metric (0, 2). Terminology varies: some books call p + q the rank or order and reserve type for the pair. Contraction maps type (p, q) to (p-1, q-1). In LaTeX the pair is just parentheses with a comma; a thin space after the comma is automatic in math mode, so do not add extra spacing.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\begin{document}
Tensor Rank: $(p, q)$
\[ T \in V^{\otimes p} \otimes (V^*)^{\otimes q} \]
\end{document}Related symbols
- Basis Vector
e_i - Antisymmetrization
T_{[ij]} - Dual Basis
e^i - Symmetrization
T_{(ij)} - Component Transform
T'^{ij} = \Lambda^i_k \Lambda^j_l T^{kl} - Covariant Derivative
\nabla_i
Frequently asked questions
- How do I write Tensor Rank in LaTeX?
- Type (p, q) in math mode, for example $T \in V^{\otimes p} \otimes (V^*)^{\otimes q}$. It works in plain LaTeX without loading any package.
- Which package do I need for (p, q)?
- None. (p, q) is part of standard LaTeX, so it compiles with nothing in the preamble but the document class.
- Can I use (p, q) in text mode, or only in math mode?
- Both. (p, q) compiles in running text as well as inside $...$; in a formula keep it in math mode so it gets math fonts and spacing.