I'm trying to understand the vertical aligment in a table, because i have to use it in a project. I tried multiple answers in different question but none seem to work for me (eg. here, here or here).
Latex seems to ignore all but the last aligment. Is it possible to align each column or just the whole table?
\documentclass{article}
\usepackage{tabu}
\usepackage{array}
\begin{document}
\begin{tabu}{|p{5em}|m{5em}|b{5em}|b{2em}|}
\hline
test & test & test & s s s s s s s s s s s s s s s \
\hline
\end{tabu}
\begin{tabular}{|>{\raggedright\arraybackslash}p{5em}|>{\centering\arraybackslash}m{5em}|>{\raggedleft\arraybackslash}b{5em}|p{2em}|}
\hline
test & test & test & s s s s s s s s s s s s s s s \
\hline
\end{tabular}
\end{document}


tabularcode makes it look like you're trying to influence both the horizontal (\raggedright,\centering, and\raggedleft) and the vertical placement (thep,m, andbcolumn types) of the cells' contents. Please clarify. – Mico Apr 27 '21 at 09:03