我是靠谱客的博主 忧郁母鸡,这篇文章主要介绍latex: 改变图的caption Figure 1:为 Fig. 1.,现在分享给大家,希望可以做个参考。

参考: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}

具体示例如下:

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.的效果。

documentclass[twoside]{article}
renewcommand{figurename}{Fig.} % 加入的代码

最后

以上就是忧郁母鸡最近收集整理的关于latex: 改变图的caption Figure 1:为 Fig. 1.的全部内容,更多相关latex:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部