重新定义 \figurename 的方法;(First, you have to redefine \figurename.)
三种情况:
- 没有使用 babel 数据包(Without using the babel package:)
\renewcommand{\figurename}{Fig.}
- 使用 babel 数据包,且使用英语(With babel (and English as language))
\addto\captionsenglish{\renewcommand{\figurename}{Fig.}}
- 使用 babel 数据包,且使用其他语言的时候(For other babel languages you need to use the proper
\captions<language> command instead of \captionsenglish in the command above.)
- 推荐的使用方法,引入caption 包;
For changing the separator between label and caption text, I recommend the caption package.
\documentclass{article}
\renewcommand{\figurename}{Fig.}
\usepackage[labelsep=endash]{caption}
\begin{document}
\begin{figure}
\centering
\rule{1cm}{1cm}
\caption{This is a figure}
\end{figure}
\end{document}
缺点:有可能引入caption时,不兼容;
参考网址:https://tex.stackexchange.com/questions/17489/change-caption-name-of-figures