22

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

34

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 5 '15 at 15:33
  • 1
    @user3051460: Just updated, in my first version I forgot the colon – user31729 Nov 5 '15 at 15:34
  • @user3051460: You're welcome. Happy TeXing! – user31729 Nov 5 '15 at 15:48
  • 2
    @skan: See section 7.3. of the cleveref manual about the usage of abbreviations. – user31729 Jan 8 '19 at 17:53
  • 1
    For tables, use: \captionsetup[table]{labelfont={bf},labelformat={default},labelsep=period,name={Tab.}} – kmario23 Dec 9 '20 at 23:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.