Making a table column narrower (tabu)

tablestabu

I'm using tabu for creating a table, however I can't seem to find the way to make the two left columns narrower and the most right one wider for text.

The code I'm using is:

\begin{table}[H]
    \centering
    \caption{Kepler orbit parameters}
    \begin{tabu}{*{3}{X[c]}}
        \toprule
        Parameter & Name & Description \\
         \midrule
         a & semi-major axis & The axis that coincides with both focus points of the ellipse \\
         E & Eccentric Anomaly & The angle between the center of equivalent circle with radius $r$ \\
         \bottomrule
    \end{tabu}
    \label{tab:Kepler}
\end{table}

I want to keep the two leftmost columns centered, and the right one wider and not centered so the text will be easier to read.
Any suggestions?

Best Answer

As mentioned by Ulrike Fischer in the comment, the tabu package should be avoided. You may use the relatively new tabularray package. (You will find similarities between tabu and tabularray packages.)

enter image description here

\documentclass{article}

\usepackage{tabularray}
\UseTblrLibrary{booktabs} %to use booktabs rules 

\begin{document}
\begin{table}
    \centering
    \caption{Kepler orbit parameters}
    \begin{tblr}{
        width = {\textwidth}, %width of the table
        colspec = {@{}ccX[l]@{}}, %column types
        rows = {m} %vertical alignment
    }
        \toprule
        Parameter & Name & Description \\
        \midrule
        a & semi-major axis & The axis that coincides with both focus points of the ellipse \\
        E & Eccentric Anomaly & The angle between the center of equivalent circle with radius $r$ \\
        \bottomrule
    \end{tblr}
\end{table}

\end{document}
Related Question