由于我现在的水平线太短,我该如何将水平线延长一点?

由于我现在的水平线太短,我该如何将水平线延长一点?
\RequirePackage{amsmath,fix-cm}
\documentclass{svjour3}               
\smartqed  % flush right qed marks, e.g. at end of proof
\usepackage{empheq,graphicx,mathtools,amsmath,amsfonts,unicode-math,array}

\numberwithin{equation}{section}
\begin{document}
\begin{table}[H]
        \caption{Results obtained using DTM and RK4 for $s(t)$}
    \begin{center}
        \begin{tabular}{lll}
            \hline
                \textbf{$t$} & \textbf{$s(t)$ using DTM} & \textbf{$s(t)$ using RK4}  \\\hline
            $0.1$ & $17.60916776$    & $17.6091375512190$  \\  \hline
            $0.2$ & $14.91315356$  & $14.9104819873228$   \\ \hline 
            $0.3$ & $12.10171330$   & $12.0635013960239$   \\ \hline 
            $0.4$ & $9.560210755$ & $9.31079866900658$ \\
            \hline
            $0.5$ & $7.922673835$  &$6.88761960517152$  \\
            \hline
        \end{tabular}
    \end{center}
    \label{susceptible}
    \end{table}
\end{document}

答案1

SVJour 似乎是一个 Springer 类,我不想安装它。我将你的 MWE 简化为:

\documentclass{article}               
%\smartqed  % flush right qed marks, e.g. at end of proof
\usepackage{array, booktabs}
\usepackage{amsmath}

\numberwithin{equation}{section}
\begin{document}
\begin{table}[p]
        \caption{Results obtained using DTM and RK4 for $s(t)$}
    \begin{center}
        \begin{tabular}{lllll}
            \midrule
           &     \textbf{$t$} & \textbf{$s(t)$ using DTM} & \textbf{$s(t)$ using RK4} & \\\midrule
           & $0.1$ & $17.60916776$    & $17.6091375512190$  & \\  \midrule
           & $0.2$ & $14.91315356$  & $14.9104819873228$   & \\ \midrule 
           & $0.3$ & $12.10171330$   & $12.0635013960239$   & \\ \midrule 
           & $0.4$ & $9.560210755$ & $9.31079866900658$ & \\
            \midrule
           & $0.5$ & $7.922673835$  &$6.88761960517152$  & \\
            \midrule
        \end{tabular}
    \end{center}
    \label{susceptible}
    \end{table}
\end{document}

我刚刚在你的表格中添加了两个空列,我更喜欢\midrule从 booktabs 包中添加\hline。看起来像这样: 表格

相关内容