插入图和子图时出现编译错误

插入图和子图时出现编译错误

我正在尝试在表中添加子表。为了实现这一点,我添加了以下包:

\usepackage[format=plain,labelfont=bf,up,textfont=it,up]{caption}
\usepackage{subcaption}

添加这些之后,编译结果为

(/usr/share/texmf-texlive/tex/latex/psfrag/psfrag.sty)
(/usr/share/texmf-texlive/tex/latex/tools/theorem.sty
(/usr/share/texmf-texlive/tex/latex/tools/thp.sty)))

! LaTeX Error: Option clash for package caption.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
...                                              

l.13 \usepackage
            {subcaption}
? 

之前添加的软件包有:

\usepackage[utf8]{inputenc}                               %Allows input of tex files encoded in UTF8
\usepackage[T1]{fontenc}                            %Set font encoding for   output PDF 
\usepackage[danish,english]{babel}                    %Allows langauge switching (English is default)
\usepackage{graphicx}                                     %Support for including graphics
\usepackage{xcolor}                                 %Support for using colours  
\usepackage[hang,normalsize,bf]{caption}            %Make pretty captions
\usepackage{hyperref}                               %References package
\usepackage{varioref}                                       %Enhances references (\vref {label})
\usepackage{fancyhdr}                               %Pretty headers/footers
\usepackage{amsmath,amssymb,latexsym}               %AMS and other symbols
\usepackage{epic,eepic,epsfig,graphics,psfrag}      %Figure/picture packages
\usepackage{theorem}                               

相关内容