latex: 改变图的caption Figure 1:为 Fig. 1.

来源:互联网 发布:软件研发部门规划 编辑:程序博客网 时间:2024/06/05 10:34

参考:How to change Figure 1: to bold Fig.1. in latex

问题:当论文中使用\documentclass[twoside]{article}环境排版图时,图的标题默认显示方式为Figure 1:,现在需要把它变为Fig. 1.的样子,如何做呢?

方法: 
1.只需要在begin{document}后面加上captionsetup即可

\captionsetup[figure]{labelfont={bf},name={Fig.},labelsep=period}
  • 1
  • 1

具体示例如下:

\documentclass{article}\usepackage{graphicx}\usepackage{caption}\begin{document}\listoffigures\captionsetup[figure]{labelfont={bf},labelformat={default},labelsep=period,name={Fig.}}\begin{figure}[t]  \centering%  \includegraphics[width=\linewidth]{beeduck}  \includegraphics[scale=1]{beeduck} \caption{MRI format.} \label{fig:1}\end{figure}\end{document}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

运行后的效果为Fig. 1.的样子。

2.另一种角度是在文档开头加入下面代码,但达不到上述效果,效果为Fig. 1:,如果是IEEEconf环境,那么可以达到Fig. 1.的效果。

\documentclass[twoside]{article}\renewcommand{\figurename}{Fig.} % 加入的代码
原创粉丝点击