I'm trying to vertically center some text inside a table. From this (and other) answer(s), the following example should work...
\documentclass{article}
\usepackage{array}
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\newcolumntype{N}{@{}m{0pt}@{}}
\begin{document}
\begin{table}[ht]
\begin{tabular}{|M{4cm}|M{4cm}|N}
\hline
\textbf{Text} & \textbf{Text} &\\[50pt]
\hline
text & text&\\[50pt]
\hline
\end{tabular}
\end{table}
\end{document}
In the linked answer it produces the desired output. What's funnier is even on my other device, it produces the desired output. It's only on this one laptop that I'm getting this:
The only difference is that I'm using the portable version of MikTex on this device, but I can't work out what's going on. The fact that it works on another device but not on this one is really quite bothering...


arraywas upgraded. changed are code formcolumn specifier ... consequently this solution doesn't work anymore on the way as you expected. test your mwe with the following replacement for the first row with for example with\textbf{Text} & \textbf{Text} & \rule{0pt}{50pt}\\and observe difference. or put longer text in one cell and you will see, that text will be vertical centered. – Zarko Sep 03 '18 at 22:38arrayas\usepackage{array}[=2016-10-06](not tested). – Zarko Sep 03 '18 at 23:46