参考:How to change Figure 1: to bold Fig.1. in latex
问题:当论文中使用documentclass[twoside]{article}环境排版图时,图的标题默认显示方式为Figure 1:,现在需要把它变为Fig. 1.的样子,如何做呢?
方法:
1.只需要在begin{document}后面加上captionsetup即可
复制代码
1
captionsetup[figure]{labelfont={bf},name={Fig.},labelsep=period}
具体示例如下:
复制代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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}
运行后的效果为Fig. 1.的样子。
2.另一种角度是在文档开头加入下面代码,但达不到上述效果,效果为Fig. 1:,如果是IEEEconf环境,那么可以达到Fig. 1.的效果。
复制代码
1
2
documentclass[twoside]{article}
renewcommand{figurename}{Fig.} % 加入的代码
最后
以上就是忧郁母鸡最近收集整理的关于latex: 改变图的caption Figure 1:为 Fig. 1.的全部内容,更多相关latex:内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复