禁用居中效果

禁用居中效果

实际上,我在 latex 中设置了一个居中的表格,但问题是表格居中之后会发生什么。我怎样才能在表格后获得正常的文本,代码如下:

 \documentclass[review]{elsarticle}
 \usepackage{graphicx}
 \usepackage{amssymb,amsmath,nccmath}
 \usepackage{cclicenses}
 \usepackage{makecell}
 \usepackage{subcaption}
 \usepackage{caption}
 \usepackage{framed}  % Framing content
 \usepackage{nomencl} % Nomenclature package
 \usepackage[font=small,skip=0pt]{caption}
 \makenomenclature
 \setlength{\nomitemsep}{-\parskip}\usepackage{booktabs,multirow}
 \renewcommand{\cellset}{\renewcommand{\arraystretch}{0.5}}
 \journal{Journal of \LaTeX\ Templates}

 \bibliographystyle{elsarticle-num}

 \begin{document}
\section*{Appendix}
\centering
\begin{tabular}{ c c } 
\toprule
\makecell{ parameters}  &  values \\   
%\cmidrule(lr){2-4} \cmidrule(lr){5-6}%\midrule
\midrule
A &  1.5\\
F & 50     \\
S & 6   \\
B & 0  \\
D & 98   \\
R & 2 \\
I & 5  \\
Mutual  & 3 \\
Number  & 30 \\

\bottomrule
\end{tabular}
\vspace{0.5\baselineskip}\vspace{-\parskip}
\caption{The parameters with their value}

  Z=4, K=8, L=1, Y=18
\section*{References}

\bibliography{mybibfile}

BABCDEFGHIJKMNOPQRSTUVWXYZ123456789011121314151617181920

答案1

\documentclass[review]{elsarticle}
\usepackage{caption}
\usepackage[font=small,skip=0pt]{caption}
\usepackage{booktabs}

\begin{document}
\section*{Appendix}

\noindent
\begin{minipage}{\linewidth}
\centering
\begin{tabular}{ c c } \toprule
        \makecell{ parameters}  &  values \\   
        %\cmidrule(lr){2-4} \cmidrule(lr){5-6}%\midrule
        \midrule
        A &  1.5\\
        F & 50     \\
        S & 6   \\
        B & 0  \\
        D & 98   \\
        R & 2 \\
        I & 5  \\
        Mutual  & 3 \\
        Number  & 30 \\ \bottomrule
    \end{tabular}
    \captionof{table}{The parameters with their value}
    Z=4, K=8, L=1, Y=18
\end{minipage}

\section*{References}

\end{document}

相关内容