[Tex/LaTex] How to change Figure 1: to bold Fig.1. in latex

captionsfloatsformatting

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

Best Answer

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

Related Question