The following code
\documentclass[12pt,a4paper]{article}
\usepackage{array}
\usepackage{calc}
\begin{document}
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
\begin{tabular*}{\textwidth}{@{\extracolsep{\fill}} r L{\textwidth * \real{0.8}}}
\hline
Languages & Italian (native tongue), English (very fluent), German (beginner). \\
\hline
Chats & bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla \\
\hline
Programming & C, Java, OCaml, Bash, Fortran. Currently learning Python and R. \\
\hline
\end{tabular*}
\end{document}
produces this:
If I add
\renewcommand{\arraystretch}{4}
before the tabular code, the output is this:
If, additionally, I change the definition of L
using the p
column as follows
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}p{#1}}
then I get this:
None of these is the output I want. I would like every cell to be vertically centered. Why does this happen? How can I fix it? I tried to use different solutions (such as \setlength{\extrarowheight}{4pt}
), but all of them are affected by the same problem.
\real
macro is defined.m
column type loses all information about the internal baselines as it is\vcenter
if you want text in a parbox to align with ar
column usep
(which isvtop
)a4paper
is paper size, not a document class ... it seems, that you useAwesome-CV
. Please, transform your code sniped to complete small document starting with\documentclass[a4paper]{...}
end ending with\end{document}
.