I'm not exactly sure how to format my LaTeX code for this website. So maybe someone can help me with that... I'm having trouble with a table in LaTeX:
In the cell that says "Dimension of Sample", the text goes outside the box.
I would like the 1,2,3 of the sample dimensions to be centered in the cells vertically
I would like the main portion of the table entries to be left aligned without affecting the alignment for the rest of the table.
Any help is appreciated!
\documentclass{report}
\usepackage{multirow}
\usepackage{graphicx}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|c|}
\cline{3-6}
\multicolumn{1}{c}{} & & \multicolumn{4}{c|}{\textbf{Dimension of Measurement}} & \multicolumn{1}{c}{\multirow{2}{*}{}}\tabularnewline
\cline{3-6}
\multicolumn{1}{c}{} & & \textbf{0} & \textbf{1} & \textbf{2} & \textbf{3} \tabularnewline
\hline
\multirow{3}{*}{\rotatebox[origin=c]{90}{\textbf{Dimension of Sample}}} & \textbf{1} & \shortstack{P10\\No of fractures\\per unit length\\of borehole} & \shortstack{P11\\Length of\\fractures per\\unit length} & & & \textbf{\shortstack{Linear\\Measures}}\tabularnewline
\cline{2-7}
& \textbf{2} & \shortstack{P20\\No of fractures\\per unit\\area} & \shortstack{P21\\Length of\\fractures per\\unit area} & \shortstack{P22\\Area of\\fractures per\\unit area} & & \textbf{\shortstack{Areal\\Measures}}\tabularnewline
\cline{2-7}
& \textbf{3} & \shortstack{P30\\No of fractures\\per unit\\volume} & & \shortstack{P32\\Area of\\fractures per\\unit volume} & \shortstack{P33\\Volume of\\fractures per\\unit volume} & \textbf{\shortstack{Volumetric\\Measures}}\tabularnewline
\hline
\multicolumn{2}{c|}{} & \textbf{Density} & & \textbf{Intensity} & \textbf{Porosity} & \multicolumn{1}{c}{}\tabularnewline
\cline{3-6}
\end{tabular}
\end{document}
