![\Captionbox 已定义](https://linux22.com/image/388285/%5CCaptionbox%20%E5%B7%B2%E5%AE%9A%E4%B9%89.png)
我在序言中使用了以下包和文档类,运行时,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}