如何在 LaTeX 中对齐冒号?

如何在 LaTeX 中对齐冒号?

我有以下两句话:

Programming Languages: C/C++, Python, Haskell
Spoken Languages: English, French

我希望冒号对齐,使得它们看起来像这样:

Programming Languages: C/C++, Python, Haskell
Spoken Languages:      English, French

我怎样才能做到这一点?

答案1

环境怎么样tabular

\noindent
\begin{tabular}{@{}ll}
Programming Languages & C/C++, Python, Haskell\\
Spoken Languages      & English, French
\end{tabular}

相关内容