1

For the following, why does it seem to me that the numbers are a bit above where they should be at the very exact vertical center?

On the other hand, what content should be written that is supposed to have equal spaces above and below it to make sure the vertical centering is working right?

enter image description here

\documentclass{article}
\usepackage{xcolor}
\usepackage{tabularray}
\UseTblrLibrary{booktabs}

\begin{document}
    
    \begin{tblr}
        {
            rows = {m},
            rulesep=0pt,
            width = 0.5\linewidth,
            colspec = {X X}, 
            row{odd} = {blue!15}, 
            row{even} = {gray!15},       
            rowhead = 1,
            row{1} = {red!20},
        }
        \toprule[1.5pt]
        0  &   2  \\
        TEXT  &   4  \\
        8  &   6  \\
        text  &   8  \\
        \bottomrule[1.5pt]
    \end{tblr}
\end{document}
1

1 Answer 1

3
  • Just a guess.
  • The spacing is correct for content that goes below the baseline, like the lower case "g".
  • See, for example, Werner's answer, here.

enter image description here


enter image description here

Taken from here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .