1

Like in an IEEE paper, after the figure caption numbering, there are two letters spacing:

Fig. 1.  Bla bla

Not like

Fig. 1. Bla bla

I would like to have the former.

4

With caption package, this is how it can be done.

\usepackage{caption}
\DeclareCaptionLabelFormat{mylabel}{#1 #2.\hspace{1.5ex}}
\captionsetup[figure]{labelformat=mylabel,labelsep=none,name=Fig.}

Change 1.5ex to whatever you want.

Code:

\documentclass{article}

\usepackage{caption}
\DeclareCaptionLabelFormat{mylabel}{#1 #2.\hspace{1.5ex}}
\captionsetup[figure]{labelformat=mylabel,labelsep=none,name=Fig.}
\usepackage{graphicx}
\begin{document}
\begin{figure}[htb]
  \centering
  \includegraphics[width=4cm]{example-image-a}
  \caption{This is my figure}
\end{figure}
\end{document}

enter image description here

Change

  • this gives an end-of-sentence space after 'Fig.", which isn't great. since whatever fills in #1 will probably be short, a ~ could safely be put between #1~#2 to make this even more distinct from the space following the figure number. – barbara beeton Jul 21 '14 at 15:55
1

Actually, this may only be an optical illusion, as IEEEtran inserts a single \nobreakspace (or tie ~) between both the caption label/number and the number/title. However, if you want to mimic (or adjust) caption-related content, it's best to use the caption package.

The caption package provides the key labelsep that defines your separation between the caption label and title. For illustration, below are some of the default options, together with some ones created:

enter image description here

\documentclass{article}
\usepackage{caption}% http://ctan.org/pkg/caption
\DeclareCaptionLabelSeparator{qquad}{\qquad}
\DeclareCaptionLabelSeparator{bigspace}{.\hspace*{4em}}
\begin{document}
\captionof{figure}{A figure}
\captionsetup{labelsep=space}
\captionof{figure}{A figure}
\captionsetup{labelsep=quad}
\captionof{figure}{A figure}
\captionsetup{labelsep=qquad}
\captionof{figure}{A figure}
\captionsetup{labelsep=bigspace}
\captionof{figure}{A figure}
\end{document}

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.