您的位置:首页 > 其它

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

2017-09-26 12:08 337 查看
参考: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.} % 加入的代码
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: