![Líneas uniformemente espaciadas verticalmente dentro de makecell](https://rvso.com/image/392342/L%C3%ADneas%20uniformemente%20espaciadas%20verticalmente%20dentro%20de%20makecell.png)
Tengo una tabla con un encabezado rotado y algunas makecells
después para ajustar el encabezado rotado en una línea:
\documentclass{article}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{rotating}
\renewcommand\theadfont{\normalsize}
\begin{document}
\begin{table}[t]
\centering
\begin{tabular}{cccc}
\toprule
& & \multicolumn{2}{c}{\textbf{Condition A}} \\
& & A1 & A2 \\
\cmidrule{3-4}
\settowidth\rotheadsize{\theadfont \textbf{Condition B}}
\rothead{\textbf{Sampling}} & \makecell{B1 \\ B2} & \makecell{xx/xx \\ xx/xx} & \makecell{xx/xx \\ xx/xx} \\
\bottomrule
\end{tabular}
\caption{Results under different conditions}
\end{table}
\end{document}
Me gustaría que el texto en makecells
la celda esté espaciado verticalmente de manera uniforme, en lugar de centrado en el medio. ¿Hay una forma fácil de hacer esto?
Respuesta1
Si he entendido bien lo que quieres, \rotatebox[origin=c]
funciona:
\documentclass{article}
\usepackage{makecell}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{rotating}
\renewcommand\theadfont{\normalsize}
\begin{document}
\begin{table}[t]
\centering
\renewcommand{\cellset}{\renewcommand{\arraystretch}{1.6}}
\begin{tabular}{cccc}
\toprule
& & \multicolumn{2}{c}{\textbf{Condition A}} \\
& & A1 & A2 \\
\cmidrule{3-4}
\rotatebox[origin=c]{90}{\textbf{Sampling}} & \makecell{B1 \\ B2} & \makecell{xx/xx \\ xx/xx} & \makecell{xx/xx \\ xx/xx} \\
\bottomrule
\end{tabular}
\caption{Results under different conditions}
\end{table}
\end{document}