字幕包错误

字幕包错误

从今天起,当我使用标题包时,我收到一条错误消息。

这是一个最小的工作示例:

\documentclass[12pt,a4paper]{report}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[font=small,labelfont=bf]{caption}
\usepackage{graphicx}
\begin{document}
\begin{figure}
\centering
\includegraphics[scale=0.5]{figure.jpg}
\caption{caption }
\end{figure}
\end{document}

我收到以下错误消息:

! LaTeX Error: Command \@makecaption already defined. 
Or name \end... illegal, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.

! LaTeX Error: Command \@makecaption already defined.
Or name `\end... illegal`, see p.192 of the manual.
See the LaTeX manual or LaTeX Companion for explanation.

! Undefined control sequence.
\caption@beginex ...tion@begin {#1}\caption@iflof
{\def \caption@tempa {#2}}...
l.12 \caption{this is caption}

我在 Windows 上使用 MikTex 2.9,并且使用了 2012 版的字幕包。然后我上传了较新的版本,但问题并未解决。

文件列表:

 *File List*
  report.cls    2007/10/19 v1.4h Standard LaTeX document class
  size12.clo    2007/10/19 v1.4h Standard LaTeX file (size option)
inputenc.sty    2008/03/30 v1.1d Input encoding file
  latin1.def    2008/03/30 v1.1d Input encoding file
 amsmath.sty    2000/07/18 v2.13 AMS math features
 amstext.sty    2000/06/29 v2.01
  amsgen.sty    1999/11/30 v2.0
  amsbsy.sty    1999/11/29 v1.2d
  amsopn.sty    1999/12/14 v2.01 operator names
amsfonts.sty    2009/06/22 v3.00 Basic AMSFonts support
 amssymb.sty    2009/06/22 v3.00
 caption.sty    2006/01/12 v3.0i Customising captions (AR)
caption3.sty    2012/01/12 v1.4b caption3 kernel (AR)
  keyval.sty    1999/03/16 v1.13 key=value parser (DPC)
graphicx.sty    1999/02/16 v1.0f Enhanced LaTeX Graphics (DPC,SPQR)
graphics.sty    2009/02/05 v1.0o Standard LaTeX Graphics (DPC,SPQR)
    trig.sty    1999/03/16 v1.09 sin cos tan (DPC)
graphics.cfg    2007/01/18 v1.5 graphics configuration of teTeX/TeXLive
  pdftex.def    2011/05/27 v0.06d Graphics/color for pdfTeX
infwarerr.sty    2010/04/08 v1.3 Providing info/warning/error messages (HO)
 ltxcmds.sty    2011/11/09 v1.22 LaTeX kernel commands for general use (HO)
supp-pdf.mkii
 ***********

相关内容