此处附有示例,这是表格很长的示例,标题部分无法正常工作。此外,当我在任何单元格中增加文本时,表格会垂直拉长,并且文本会超出表格范围。请帮忙。还附有输出的屏幕截图。
%%
%% Copyright 2019-2020 Elsevier Ltd
%%
%% This file is part of the 'CAS Bundle'.
%% --------------------------------------
%%
%% It may be distributed under the conditions of the LaTeX Project Public
%% License, either version 1.2 of this license or (at your option) any
%% later version. The latest version of this license is in
%% http://www.latex-project.org/lppl.txt
%% and version 1.2 or later is part of all distributions of LaTeX
%% version 1999/12/01 or later.
%%
%% The list of all files belonging to the 'CAS Bundle' is
%% given in the file `manifest.txt'.
%%
%% Template article for cas-dc documentclass for
%% double column output.
%\documentclass[a4paper,fleqn,longmktitle]{cas-dc}
\documentclass[a4paper,fleqn]{cas-dc}
%\usepackage[authoryear,longnamesfirst]{natbib}
%\usepackage[authoryear]{natbib}
\usepackage[numbers]{natbib}
\usepackage{textcomp}
\usepackage{graphicx}
% \usepackage{subfigure}
% \usepackage{ftnxtra}
\usepackage{subfig}
\newcommand{\specialcell}[2][c]{%
\begin{tabular}[#1]{@{}l@{}}#2\end{tabular}
%%%
}
\usepackage[redeflists]{IEEEtrantools}
\usepackage{caption}
\usepackage{lipsum}
\usepackage{tablefootnote}
\usepackage{hyperref}
\usepackage{amsmath, amssymb}
\usepackage{csquotes}
\usepackage[demo,
export]{adjustbox}
\usepackage{stfloats}
\usepackage{booktabs, makecell, tabularx}
\usepackage{makecell, tabularx} % changed
\renewcommand\theadfont{\small\bfseries} % new
\renewcommand\theadgape{} % new
\setcellgapes{3pt} % new
\usepackage{siunitx}
\usepackage{enumitem}
\usepackage{etoolbox} %
\AtBeginEnvironment{tabularx}{%
\setlist[itemize]{nosep,
leftmargin=*,
label=\textbullet,
before=\begin{minipage}[t]{\linewidth}, % <---
after=\end{minipage} % <---
} }
\usepackage{float}
% \usepackage{enumitem}\setlist[description]{font=\textendash\enskip\scshape\bfseries}
\usepackage{wrapfig}
\begin{document}
\begin{table*}[htbp]
\scriptsize
\setcellgapes{3pt}
\makegapedcells
\caption{caption).} \begin{minipage}{\linewidth} % <---
\begin{tabularx}{\linewidth}{|@{} p{1.1cm}| p{1.5cm}| p{1.5cm}| p{3cm} |p{2cm}| X @{}|}
\hline
\thead{AAAAA}
& \thead{BBBBBBBBB}
& \thead{CCCCCCCCCC}
& \thead{\specialcell{DDDDDDD} \\\ \specialcell{EEEEEE}}
& \thead{\specialcell{FFFFFF} \\\ \specialcell{GGGGG}}
& \thead{HHHHHHHH} \\
\hline
\multicolumn{6}{c}{\textbf{AAAAAAAAAAAA}} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item dddddddddddddddddddddddd
\item eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddddddddddddddddddd
\item eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddddddddddddddddddd
\item eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddddddddddddddddddddddddddddddd
\item eeeeeeeeeeeeeeeedeeeeeeeeeeeeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\multicolumn{6}{r}{\textit{Continued on the next page}} \\
\end{tabularx}
\end{minipage}
\end{table*}
\begin{table*}[htbp]
\ContinuedFloat
\scriptsize
\setcellgapes{3pt}
\makegapedcells
\caption[]{-- \textit{Continued from previous page}}
\begin{minipage}{\linewidth} % <---
\begin{tabularx}{\linewidth}{|@{} p{1.1cm}| p{1.5cm}| p{1.5cm}| p{3cm} |p{2cm}| X @{}|}
\hline
\thead{AAAAA}
& \thead{BBBBBBBBB}
& \thead{CCCCCCCCCC}
& \thead{\specialcell{DDDDDDD} \\\ \specialcell{EEEEEE}}
& \thead{\specialcell{FFFFFF} \\\ \specialcell{GGGGG}}
& \thead{HHHHHHHH} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc &
\begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\textbf{a}~\cite{x2} a & a \& bbbbbb & bbbbbbb/ Live 1 & cccccccccccccc & \begin{itemize}
\item dddddd
\end{itemize} & \begin{itemize}
\item ddddddddddddd
\item eeeeeeeeeeeeeeee
\end{itemize} \\
\hline
\end{tabularx}
\end{minipage}
\label{tablossy}
\end{table*}
\end{document}