\Captionbox 已定义

\Captionbox 已定义

我在序言中使用了以下包和文档类,运行时,LaTeX 编辑器出现以下错误。不知道发生了什么:

\documentclass[twoside]{article}
\usepackage{jwe,epsfig}

\usepackage{booktabs} % For formal tables
\usepackage{multirow, makecell}
\usepackage{epsfig}
\usepackage{epstopdf}
\usepackage{graphicx}
\usepackage{diagbox}
\usepackage[flushleft]{threeparttable}
\usepackage{listings}
\usepackage{mdframed}
\usepackage{fancybox}
\usepackage{amsmath}
\usepackage[export]{adjustbox}
\usepackage{csquotes}
\usepackage{cuted}
\usepackage{subcaption}
\usepackage{rotating}
\usepackage{flexisym}
\usepackage[linesnumbered,ruled]{algorithm2e}
\usepackage[hyphens]{url}
\usepackage{lineno,hyperref}
\usepackage[compatible]{algpseudocode}

错误:

! LaTeX Error: Command \captionbox already defined.
           Or name \end... illegal, 

编辑

    \adjustbox{max height=\dimexpr\textheight, max width=.95\linewidth}{
\begin{lstlisting}[caption={Regular expression for extracting links within HTML code of Web pages},label=Pattern,linewidth=12cm]

"https?://(?:www\\.)?[^\\n<>\"]+(?:\"[^<]*>([^<]*))?"

\end{lstlisting}
}

\vspace{10pt}

相关内容