Graphics, Figures & Tablessuperscript within \multirow

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
samwell187
Posts: 5
Joined: Mon May 16, 2011 4:21 pm

superscript within \multirow

Post by samwell187 »

Hi everyone,

I'm new to this forum, and a quick search did not return any solutions to this problem. If there is an old thread with the answer feel to drop that in. Thanks!

---

The issue is that within \multirow, using a superscript puts text on a different line instead of rendering it as superscript text. So, in the following, I would like q^2 to appear to the left of Xe; instead, the q appears to the left of Xe and the 2 appears to the left of Ge.

Code: Select all

\documentclass[11pt]{article}
\usepackage{multirow}
\usepackage{lscape}
\usepackage[english]{babel}
\usepackage{fullpage}

\begin{document}

$$
\begin{array}{| l | l | l | l | l |}
\hline \multicolumn{3}{|c|}{10 {\rm~GeV,~ anapole} } \\ 
\hline {\rm operator} \rule{0pt}{2.6ex} & {\rm target} & \widetilde{L}_{min}  \\ \hline
\multirow{3}{*} q^2 & Ge &    \\
 & Xe &  \\
 & Ar &  \\ \hline
\end{array}
$$
\end{document}
I tried to use \mbox{q^2}, but this put the q^2 to the left of Ge instead of Xe.

Any help is much appreciated!

Thanks,
Sam
Last edited by samwell187 on Mon May 16, 2011 4:46 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

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

superscript within \multirow

Post by Stefan Kottwitz »

Hi Sam,

welcome to the board!

It's great that you posted a complete example, that makes it easy to help. Just use q^2 (in math mode) as the third argument of multirow, in braces:

Code: Select all

\multirow{3}{*}{$q^2$}
Stefan
LaTeX.org admin
samwell187
Posts: 5
Joined: Mon May 16, 2011 4:21 pm

Re: superscript within \multirow

Post by samwell187 »

Thanks a bunch. Quite an easy fix!
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

superscript within \multirow

Post by Ijon Tichy »

Please, don't use $$…$$ in LaTeX. It is low-level TeX and can result in unexpected typesetting. See section 1.6 in "An essential guide to LaTeX2ε usage".
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply