[Tex/LaTex] Caption format: Remove space between “Figure” and “1”

captions

everyone.

I would like to achieve a figure caption like this:

Figure1: Text.

I've read a lot of answers about caption format and I know how to change the text "Figure" but I still don't know how to remove the space between "Figure" and "1".

If anybody knows the answer I'll appreciate your help. Thank you!

Best Answer

Perhaps this, redefining \fnum@figure to remove the \nobreakspace from its middle:

\documentclass{article}
\renewcommand\figurename{Figure}
\makeatletter
\def\fnum@figure{\figurename\thefigure}
\makeatother
\begin{document}
\begin{figure}[ht]
\centering
\rule{1in}{1in}
\caption{This is a caption}
\end{figure}
\end{document}

enter image description here

If you wanted to do it in only 1 location (not across the document), you could invoke \let\nobreakspace\relax inside the figure environment, prior to the \caption.

Related Question