LaTeX中的subfig包

4

当我在latex中使用subfig包时,会出现一些错误:

Package subfig Warning: Your document class has a bad definition  
 of \endfigure, most likely  
 \let\endfigure=\end@float  
 which has now been changed to  
 \def\endfigure{\end@float}  
 because otherwise subsequent changes to \end@float  
 (like done by several packages changing float behaviour)  
 can't take effect on \endfigure.  
 Please complain to your document class author.  


Package subfig Warning: Your document class has a bad definition  
 of \endtable, most likely  
 \let\endtable=\end@float  
 which has now been changed to  
 \def\endtable{\end@float}  
 because otherwise subsequent changes to \end@float  
 (like done by several packages changing float behaviour)  
 can't take effect on \endtable.  
 Please complain to your document class author.  

(/usr/share/texmf/tex/latex/caption/caption.sty  
         `rotating' package detected  
         `float' package detected  
)   

LaTeX Warning: You have requested, on input line 139, version  
               `2005/06/26' of package caption,  
               but only version  
               `1995/04/05 v1.4b caption package (AS)'  
               is available.  

! Undefined control sequence.  
l.163 \DeclareCaptionOption  
                           {listofformat}{\caption@setlistofformat{#1}}

我该如何解决这个问题呢?

谢谢并致以问候!


报告 LaTeX 问题时,通常不需要提供错误日志。请提供您正在使用的代码,并将与问题无关的包注释掉。 - Mica
1个回答

2

看起来像是 subfig 与 caption 包的旧版本之间发生冲突。尝试更新你的 caption 包到更新的版本。通常情况下,保持所有包都更新到它们的最新版本是一个好主意。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接