I don't use \centering or \Centering in my table below.

But I will get errors if I don't insert \arraybackslash.
Question:
- What is
\arraybackslashfor? It seems so mysterious for me. - Why must I insert
\arraybackslashin place labeled (3) that is shown in my code snippet below? Why must it be put in place (3) rather than (1), (2), or (4)?
\documentclass{minimal}
\usepackage[a4paper,margin=10mm,showframe]{geometry}
\usepackage{lipsum,calc,xcolor}
\usepackage{array,longtable}
\setlength{\tabcolsep}{5mm}
\setlength{\arrayrulewidth}{5mm}
\newcolumntype{A}[1]
{%
>{%
\begin{minipage}{#1\textwidth-1.5\arrayrulewidth-2\tabcolsep}%
\vspace{\tabcolsep}%
}%
c%
<{%
\vspace{\tabcolsep}%
\end{minipage}%
}%
}%
\begin{document}
\color{red}%
\begin{longtable}{%
|%
%>{\arraybackslash}%(1) => Not Needed
A{0.5}%
%<{\arraybackslash}%(2) => Not Needed
|%
>{\arraybackslash}% (3) => Mandatory!
A{0.5}%
%<{\arraybackslash}%(4) => Not Needed
|%
}%
\hline
\lipsum[1] & \lipsum[2]\\\hline
\lipsum[1] & \lipsum[2]\\\hline
\lipsum[1] & \lipsum[2]\\\hline
\end{longtable}
\end{document}
\arraybackslash: line breaking - What is \arraybackslash doing on my table column? - TeX - LaTeX Stack Exchange – user202729 Apr 11 '23 at 13:55