# remove colon in captions

Consider this example:

\documentclass{report}
\usepackage{graphicx}
%% \usepackage[latvian]{babel}
%% the dot in "att." will replace ":" as the separator
\begin{document}
\begin{figure}
\includegraphics{example-image-a}
\caption{Case of A.}
\end{figure}
\end{document}


The output is

How can I remove the colon from the caption of the image?

The case is relevant for some languages that have other means of separation (see the commented out lines of code).

I suggest, since att. (with the dot) seems to be an abbreviation, which will be used in cross-references, to use labelsep=space:

\documentclass{report}

\usepackage{graphicx}
\usepackage[latvian]{babel}

\usepackage{caption}
\captionsetup[figure]{labelsep=space}
%% the dot in "att." will replace ":" as the separator

\begin{document}

\begin{figure}
\includegraphics{example-image-a}
\caption{Case of A.}
\end{figure}

\end{document}


With the help of the caption package:

\documentclass{report}
\usepackage{graphicx}
\usepackage[latvian]{babel}