答案1
另一种选择,稍微“复杂”一些:
\documentclass{article}
\usepackage{longtable, % for case if table is longer than one page
makecell} % for columns headers
\renewcommand\theadfont{\normalsize\bfseries} % column header font definition
\usepackage{siunitx} % for S column type, numbers are aligned at decimal point
\begin{document}
\begin{center}
\begin{tabular}{lS[table-format=1.1]l}
\thead{Denomination} & {\thead{Scope\\ in weeks}} &\thead{Grade} \\
Native language, literature & 7 & 3 (rahuldav) \\
some topic & 0.5 & 3 (rahuldav) \\
Microprocessor engineering & 2.5 & 5 (viga hea)
\end{tabular}
\end{center}
in case if you need \verb+longtable+:
\begin{longtable}{lS[table-format=1.1]l}
\thead{Denomination} & {\thead{Scope\\ in weeks}} &\thead{Grade} \\
Native language, literature & 7 & 3 (rahuldav) \\
some topic & 0.5 & 3 (rahuldav) \\
Microprocessor engineering & 2.5 & 5 (viga hea)
\end{longtable}
\end{document}
附录:有些人喜欢列标题在底部垂直对齐:
这可以通过使用\thead[b]{...}
而不是\thead{...}
上面的第一个表中的行来完成姆韦(最小工作示例):
\thead[b]{Denomination} & {\thead[b]{Scope\\ in weeks}} &\thead[b]{Grade} \\