오늘부터 캡션 패키지를 사용할 때 오류 메시지가 나타납니다.
이것은 최소한의 작업 예입니다.
\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
***********