The purpose of this question is colleting the exhaustive information about text alignment in tabular environment and it's derivatives.
As base, let us use the possibilities of Microsot Word's tools. The picture bellow is the text alignment tools for table cells.
- The first row of tools matrix (yellow row) are equivalent to tabular's l, c and r handles. However, this specification don't allow to define the fix width of the column.
- The first column of tools matrix (green column) are equivalent to tabular's p{w}, m{w}, b{w}. However, it's not working, as shown on figure bellow:
\begin{tabular}{|m{10mm}|m{30mm}|m{50mm}|m{20mm}|} \hline
\huge{A} & O'K Here & \footnotesize{I don't want ...} & \\ \hline
\huge{B} & O'K Here & \footnotesize{I don't want ...} & \\ \hline
\end{tabular}
Next, it's hard to find the solution for really simple procedure- the simultaneous horizontal and vertical alignment (red tool is first figure). I've tried to use \makebox inside the cell:
\begin{tabular}{|m{10mm}|m{30mm}|m{50mm}|m{20mm}|} \hline \makebox[10mm][c]{\huge{A}} & O'K Here & \footnotesize{I don't want ...} & \\ \hline \huge{B} & O'K Here & \footnotesize{I don't want ... } & \bigstrut \\ \hline \end{tabular}
The result is not ideal, but acceptable:
So, please, answer the next questions.
- What is the fix-length versions of l, c and r specification?
- Why the m{w} specification do not provide the center vertical alignment as shown on second figure?
- Is there the most compact solution for simultaneous horizontal and vertical alignment than my? For example, new column type?
- For Exhaustive Information, please teach how to create remain column type of fix width, which are not colored in first figure.
Also, what is the solution for combining multiple columns type (e. g. p{w} and m{w})? As you know, if to create the table like this, it's will not be desired vertical alignment:
\begin{center}\begin{tabular}{|p{30mm}||p{20mm}|m{20mm}|b{20mm}|} \hline
Sorry for long querstion, everyone. I Hope, one day this info helps you too.