[Tex/LaTex] the function of \noalign

tex-core

The use of \noalign is quite common.

For example here \noalign is used with \vskip{}to control the height of a table cell.


How does \noalign work in general, and how does it work with \vskip?

What is the logic behind the use of \noalign{\vskip}?

Best Answer

Basically \noalign (which is a TeX primitive and not a supported LaTeX command) has to come as the first thing in a table row and its argument is evaluated as vertical mode material that is placed between rather than in the table rows. So \vspace just inserts vertical space. (If the table had vertical rules from | they would be broken by this additional space.)