
在下面的簡單表格中,是否可以更改特定列中所有文字的顏色?
\documentclass{article}
\begin{document}
\begin{tabular}{ll}
one & two \\
three & four \\
five & six\\
seven & eight \\
nine & ten
\end{tabular}
\end{document}
答案1
也許你的意思是這樣的:
\documentclass{article}
\usepackage{array}
\usepackage{xcolor}
\begin{document}
\begin{tabular}{>{\color{red}}ll}
one & two \\
three & four \\
five & six\\
seven & eight \\
nine & ten
\end{tabular}
\end{document}