我怎样才能插入这个表格?

我怎样才能插入这个表格?

我有此代码的表格。当我插入此表格时,文本非常小,我看不到太多内容。我该如何插入此表格才能更好地理解文本?

\begin{table}[h]
\begin{center}
\begin{tabular}{ | l | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | c | }
\hline
\multirow{2}{*}{\textbf{Method Function}} & \multirow{2}{*}{Lineal} & \multicolumn{4}{c|}{Pol} &     \multicolumn{5}{c|}{Gaussian} & \multirow{2}{*}{S method} & \multirow{2}{*}{Line} & \multirow{2}{*}{Upload} & \multirow{2}{*}{Fourier} & \multirow{2}{*}{Marconi} & \multirow{2}{*}{Tesla} \\
\cline{3-11}
& & grade 1 & grade 2 & grade 3 & grade 4 & $\sigma=0.15$ & $\sigma=0.25$ & $\sigma=0.5$ & $\sigma=2$ & $\sigma=3$ & & & & & &\\
\hline
Template & 57\% & 80\% & 92 & 89 & 89 & 94 & 97 & 97 & 94 & 92 & a & b & c & d & e & f \\
\hline
Template & 57\% & 80\% & 92 & 89 & 89 & 94 & 97 & 97 & 94 & 92 & a & b & c & d & e & f \\
\hline
\end{tabular}
\end{center}
\end{table}

答案1

您的桌子太宽了,甚至无法放在 A3 尺寸的纸张上……或者无法在 A4 尺寸的纸张上旋转。您必须找到一种方法来重新设计它。以下是一次尝试,具体方法如下:

\documentclass{article}
    \usepackage{multirow}
    \usepackage[margin=25mm,showframe]{geometry}

\begin{document}
    \begin{table}[h]
\centering
\small
\setlength\tabcolsep{3.6pt}
\begin{tabular}{ | l | *{16}{c |}}
\hline
\multirow{2}{14mm}{\textbf{Method\newline Function}} & \multirow{2}{*}{Lineal} & \multicolumn{4}{c|}{Pol, for grade} &     \multicolumn{5}{c|}{Gaussian, for deviation $\sigma$} & \multirow{2}{12mm}{\centering S\\ method} & \multirow{2}{*}{Line} & \multirow{2}{*}{Upload} & \multirow{2}{*}{Fourier} & \multirow{2}{*}{Marconi} & \multirow{2}{*}{Tesla} \\
\cline{3-11}
& & 1 & 2 & 3 & 4 & $0.15$ & $0.25$ & $0.5$ & $2$ & $3$ & & & & & &\\
\hline
Template & 57\% & 80\% & 92 & 89 & 89 & 94 & 97 & 97 & 94 & 92 & a & b & c & d & e & f \\
\hline
Template & 57\% & 80\% & 92 & 89 & 89 & 94 & 97 & 97 & 94 & 92 & a & b & c & d & e & f \\
\hline
\end{tabular}
    \end{table}
\end{document}

在此处输入图片描述

相关内容