开发者

subfig package in latex

开发者 https://www.devze.com 2022-12-26 16:05 出处:网络
When I am using subfig package in latex, it gives some errors: Package subfig Warning: Your document class has a bad definition

When I am using subfig package in latex, it gives some errors:

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 ha开发者_运维技巧ve 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}}

How can I solve it?

Thanks and regards!


It looks like a clash between subfig and an old version of the caption package. Try updating your caption package to something more recent. In general, it is a good idea to keep all packages updated to their latest versions.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号