Probably a question that has appeared somewhere before, but I have not found a comprehensive solution to it yet. How to create a table with custom row height (eg. 5cm), vertical center and horizontal center. Thank you very much!
P/S: I used to use \newcolumntype
but I can only modify the attributes of column:
example:
\documentclass{article}
\usepackage{array}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\begin{document}
\begin{tabular}{| c | L{3cm} | C{3cm} | R{3cm} |}
content
\end{tabular}
\end{document}
Best Answer
Just table, without symbols at bottom right corners of headers cells, with
tabularray
package too. From interesting @Imran answer (+1) it differ in:Edit: It is not clear, what you mean with atribute. A symbols at bottom right corners of headers cells? It is possible to drawn it in cells, but achieve their functionality (for example: open windows, where you can select contents in cells) is a different story. For this LaTeX is not right tools.
Addendum (1): In the case that you like to have a long table caption and column headers on each page, that you should use
longtblr
anvironment:Addendum (2): In the case, when you not like to have captions, than before table add:
and than delete optional table specifications (since they haven't any sence anymore). So, complete table specifications in your case are: