Escribir texto al lado de una mesa

Escribir texto al lado de una mesa

Tengo este código:

\begin{center}
$\left.% Use `\left.` if don't want arrow on this side.
\begin{tabular}{r r r }
\toprule
 strength & region & comments \\
\midrule
 $H_B \ll H_0$ & Landau levels \\
$ H_B \lessapprox H_0 $& $n$-mixing & $n$ not good\\
  & $\ell$-lmixing & $\ell$ not good \\
 $H_B \ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \\
 & Intermediate regime & $J$ and $I$ good, $F$ not good \\
 & Zeeman effect & $F$ good \\
 \bottomrule
\end{tabular}
\quad
\right\updownarrow%  Use `\right.` if don't want arrow on this side.
\rotatebox[origin=100]{0}{Landau limit}$
\caption{HAILO}
\end{center}

que genera:

ingrese la descripción de la imagen aquí

lo que me gustaria:

  • ¿Cómo puedo hacer que las entradas de la primera columna (fuerza, región, comentarios) estén centradas con el contenido de las columnas?

  • ¿Cómo puedo tener el texto del límite de Landau en la esquina superior derecha de la tabla, como lo dibujé con la flecha roja?

Gracias.

Respuesta1

¿Qué tal esto, basado en bigdelimy makecell? El margen para el título se obtuvo mediante prueba y error; depende del texto de la última columna.

\documentclass{article}
\usepackage{geometry} 
\usepackage{amssymb}
\usepackage{caption, booktabs, bigdelim, makecell}%
\renewcommand{\theadfont}{\normalsize\bfseries}

\begin{document}

\begin{table}[!htb]
\centering
\captionsetup{margin={0pt,28mm},skip=6pt}
\caption{HAILO}
\begin{tabular}{r r r c@{}l}
\cmidrule[\heavyrulewidth]{1-3}
 \thead{strength} & \thead{region} & \thead{comments} & \rdelim\updownarrow{7}{*} & Landau limit \\
\cmidrule{1-3}
 $H_B \ll H_0$ & Landau levels \\
$ H_B \lessapprox H_0 $& $n$-mixing & $n$ not good\\
  & $\ell$-lmixing & $\ell$ not good \\
 $H_B \ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \\
 & Intermediate regime & $J$ and $I$ good, $F$ not good \\
 & Zeeman effect & $F$ good \\
\cmidrule[\heavyrulewidth]{1-3}
\end{tabular}
\end{table}

\end{document} 

ingrese la descripción de la imagen aquí

Respuesta2

Sin uso de booktabs para la mesa (sino clinesen cambio) y con uso de tikz con una flecha que su altura se encuentra con pruebas:

\documentclass{article}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{tikz}
\usepackage{multirow}
\begin{document}
\begin{center}
$% Use `\left.` if don't want arrow on this side.
\begin{tabular}[t]{r r r c l}\cline{1-3}
 \multicolumn{1}{c}{strength} & \multicolumn{1}{c}{region} & \multicolumn{1}{c}{comments} &\multirow{6}{*}{\begin{tikzpicture}\draw[<->](0,0)--(0,2.9cm);\end{tikzpicture}}&Landau limit\\
\cline{1-3}
 $H_B \ll H_0$ & Landau levels &&\\
$ H_B \lessapprox H_0 $& $n$-mixing & $n$ not good&&\\
  & $\ell$-lmixing & $\ell$ not good &&\\
 $H_B \ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good &&\\
 & Intermediate regime & $J$ and $I$ good, $F$ not good &&\\
 & Zeeman effect & $F$ good &&\\
 \cline{1-3}
\end{tabular}
\rotatebox[origin=100]{0}{}$
\captionof{table}{HAILO}
\end{center}
\end{document}

Producción:

ingrese la descripción de la imagen aquí

PD: Sólo para empezar...

(Paquetes necesarios para el ejemplo que no funciona de OP:

\usepackage{booktabs}
\usepackage{amssymb}
\usepackage{rotating}

y

\usepackage{caption}

para la solución con \captionof{table}en lugar de\caption{}

)

Respuesta3

Para el $\left...$efecto se necesita un [c]tabular. Pero para alinear el texto, se necesita una [t]tabla. Entonces medí la [t]tabla y usé \raiseboxy \rulepara simular un objeto centrado con el tamaño correcto. Finalmente, la línea de base superior de la tabla es en realidad \toprule, así que tuve que colocar el texto en la segunda línea de otra tabla.

\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{amssymb}
\usepackage{caption, booktabs, graphics}%

\begin{document}

\begin{center}
\sbox0{\begin{tabular}[t]{r r r}
\toprule
\multicolumn{1}{c}{strength} & \multicolumn{1}{c}{region} & \multicolumn{1}{c}{comments} \\
\midrule
 $H_B \ll H_0$ & Landau levels \\
$ H_B \lessapprox H_0 $& $n$-mixing & $n$ not good\\
  & $\ell$-lmixing & $\ell$ not good \\
 $H_B \ll B_0$ & Paschen-Back regime & $J$ noot good, $L$ and $S$ good \\
 & Intermediate regime & $J$ and $I$ good, $F$ not good \\
 & Zeeman effect & $F$ good \\
 \bottomrule
\end{tabular}}%
\usebox0
\raisebox{\dimexpr 0.5\ht0-0.5\dp0 + 0.5\dp\strutbox-0.5\ht\strutbox}{$\left.\rule{0pt}{\dimexpr 0.5\ht0+0.5\dp0}\right\updownarrow$}%
\begin{tabular}[t]{l} \\Landau limit \end{tabular}
\captionof{table}{HAILO}
\end{center}

\end{document} 

manifestación

información relacionada