変数を使用する \tabularx: 列を追加するにはどうすればよいでしょうか?

変数を使用する \tabularx: 列を追加するにはどうすればよいでしょうか?

どうしたの?

数式の下の凡例の使用を簡素化するために、環境を構築しましたtabularx。これは 2 つの列を持つ非常に一般的なテーブルです。


最小限の動作例 (MWE):

\documentclass{scrartcl}

\usepackage{amsmath}
\usepackage[english, ngerman]{babel}
\usepackage{tabularx}

    \newenvironment{legend*}{
        \begingroup
            \tabularx{\columnwidth}{>{$}l<{$} @{${}\hspace{1.5em}{}$} >{\raggedright\arraybackslash}X}}
            {\endtabularx\par\vspace{\belowdisplayskip}
            \par
        \endgroup
    }

\begin{document}

    \begin{legend*}
        P_{ges} & Power [unit] \\
        A_{ges} & Area [unit] \\
        V_{ges} & Volume [unit]
    \end{legend*}

\end{document}

結果のスクリーンショット:

2 つの列が表示されます。左の列は変数の名前、右の列は説明と関連する単位です。


質問:

テキスト自体では、この環境を呼び出して\begin{environment}、入力をテーブルに入力するだけです。ただし、前の説明から単位を分離するために、右側に列を追加したいと思います。どうすればよいでしょうか?


すると次のようになります:

\begin{legend*}
    P_{ges} & Power & [unit] \\
    A_{ges} & Area & [unit] \\
    V_{ges} & Volume & [unit]
\end{legend*}

ご助力ありがとうございます!

答え1

@David Carlisle さん、ありがとうございます!

\tabularx{\columnwidth}{>{$}l<{$} @{${}\hspace{1.5em}{}$} >{\raggedright\arraybackslash}X l }

...解決策をもたらしました!

関連情報