33

I am using default setting in LaTeX that show

Figure 1: Caption....

Now, I am following the format of Magnetic Resonance Imaging journal that require

Fig. 1. Caption

I tried to add the below line in the top, but it did not look like my expected

\renewcommand{\figurename}{Fig.}
...
\begin{figure}[t]
\includegraphics[width=\linewidth]{Fig1.png}
 \caption{MRI format.}
 \label{fig:1}
\end{figure}

Could you help me to solve it? Thanks

1 Answers1

51

Using caption package this is quite straightforward:

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

In this case, no \renewcommand{\figurename}{Fig.} is needed

\documentclass{article}

\usepackage{graphicx}
\usepackage{caption}


\begin{document}
\listoffigures
\captionsetup[figure]{labelfont={bf},labelformat={default},labelsep=period,name={Fig.}}

\begin{figure}[t]
  \centering

  \includegraphics[scale=1]{beeduck}
 \caption{MRI format.}
 \label{fig:1}
\end{figure}

\end{document}

enter image description here

  • 1
    Thank Christian Huper. I run it, it change to Fig.1: . It still has ":", instead of . – user3051460 Nov 05 '15 at 15:33
  • 1
    @user3051460: Just updated, in my first version I forgot the colon –  Nov 05 '15 at 15:34
  • @user3051460: You're welcome. Happy TeXing! –  Nov 05 '15 at 15:48
  • OK, this produces labels such as Fig.1 below the images. But what about the references. \cref{fig1:fig3} Produce Figure 1c. How can I get Fig.1c or something like that. – skan Jan 08 '19 at 17:44
  • @skan: That's another question, isn't it? This question was about the label format of caption, but not about cross-referencing format –  Jan 08 '19 at 17:46
  • But they are a pair, if you change the label of the figure you also want to change accordingly its reference. – skan Jan 08 '19 at 17:47
  • @skan: Not necessarily. –  Jan 08 '19 at 17:48
  • 2
    @skan: See section 7.3. of the cleveref manual about the usage of abbreviations. –  Jan 08 '19 at 17:53
  • 1
    For tables, use: \captionsetup[table]{labelfont={bf},labelformat={default},labelsep=period,name={Tab.}} – kmario23 Dec 09 '20 at 23:45