テーブルのフォントサイズを変更するにはどうすればよいですか?

テーブルのフォントサイズを変更するにはどうすればよいですか?

論文のために、LaTeX の表のフォント サイズを調整しようとしています。しかし、キャプションと表のエントリのフォント サイズをスクリプト化するのが困難です。

これが私のコードです。どなたか助けていただければ幸いです。

%begin table
\begin{scriptsize}
\begin{table}[h]
    \centering
    \captionsetup{skip=0.5\baselineskip,size=footnotesize}
     \caption{Test table}
    \label{table:7}
    \begin{tabular}{ l | l }
 \textbf{Entry 1} & \textbf{Entry 2} \\ \cline{1-2}
 Entry 3 & Entry 4 \\ 
\end{tabular}
\end{table}
\end{scriptsize}

答え1

このコードは動作します:

\documentclass{article}
\usepackage{caption, array}

\begin{document}

\begin{table}[!htb]
    \centering
    \scriptsize
\setlength{\extrarowheight}{2pt}
    \captionsetup{skip=0.5\baselineskip,size=scriptsize}
     \caption{Test table}
    \label{table:7}
    \begin{tabular}{ l | l }
 \textbf{Entry 1} & \textbf{Entry 2} \\ \cline{1-2}
 Entry 3 & Entry 4 \\
\end{tabular}
\end{table}

\end{document} 

ここに画像の説明を入力してください

関連情報