我想将表格设置为 10pt 字体。这是我的代码
\begin{table}[h]
\resizebox{\textwidth}{!}{%
\begin{tabular}{|l|l|l|l|l|}
\hline
& A & B & C & D \\ \hline
Type & Online & Online & Online & Online \\ \hline
Programming Language & Javascript & PHP & Javascript & Javascript, PHP, Jquery \\ \hline
Multiple Choice Exercise & No & No & Yes & Yes \\ \hline
Studies Material & Notes, exercise, flash card and video. & Video & & \\ \hline
Downloadable Notes & & & & \\ \hline
Advantages & & & & \\ \hline
Disadvantages & & & & \\ \hline
\结束{表格} } \结束{表格}
答案1
10pt 对于您的表格来说仍然太大,将其缩小太多会使其难以阅读。因此,我建议使用不同的表格环境;它tabulary
可以自动处理换行。以下是一个例子:
\documentclass{article}
\usepackage{tabulary,booktabs}
\begin{document}
\begin{table}[h]
\small
\setlength{\tabcolsep}{8pt}
\begin{tabulary}{\textwidth}{@{}*5{L}@{}}
\toprule
& A & B & C & D \\ \midrule
Type & Online & Online & Online & Online \\ \midrule
Programming Language & Javascript & PHP & Javascript & Javascript, PHP, Jquery \\\midrule
Multiple Choice Exercise & No & No & Yes & Yes \\ \midrule
Studies Material & Notes, exercise, flash card and video. & Video & Free access to notes and e-book & Receiving news update notes, exercise and quizzes. \\ \bottomrule
\end{tabulary}
\end{table}
\end{document}