Tabular con matriz en el interior.

Tabular con matriz en el interior.

ingrese la descripción de la imagen aquí

¡Ayuda a cualquiera! Lo intenté y lo intenté, así que pruebo suerte. Espero que haya alguien con habilidades tabulares y matriciales más agudas.

Respuesta1

Dado que prácticamente todo el material de la tabla es matemático, le recomiendo que utilice un arrayentorno en lugar de un tabularentorno. De esa manera, necesitarás escribir $sólo dos veces, antes \begin{array}y después \end{array}, en lugar de al principio y al final de las 33 [!] celdas que contienen material en modo matemático.

ingrese la descripción de la imagen aquí

\documentclass{article}
\usepackage{amsmath} % for "\text" macro
\newcommand{\smbullet}{{\scriptscriptstyle\bullet}}
\begin{document}
\begin{table}
\centering
$\begin{array}{|c|cccc|c|}
\hline
\text{Material\textbackslash Klass} & B_1 & B_2 & \dots & B_k & \text{Summa}\\
\hline
1 & o_{11} & o_{12} & \dots & o_{1k} & n_1=o_{1\smbullet} \\
2 & o_{21} & o_{22} & \dots & o_{2k} & n_2=o_{2\smbullet} \\
\vdots & \vdots & \vdots & \ddots &  \vdots & \vdots\\
r & o_{r1} & o_{r2} & \dots & o_{rk} & n_r=o_{r\smbullet} \\
\hline
\text{Sammanlagt} & o_{\smbullet1} & o_{\smbullet2} & \dots & o_{\smbullet k} & n_\smbullet \\
\hline
\end{array}$
\end{table}
\end{document}

información relacionada