2

I am writing a journal in LaTeX in IEEE format. When I make a figure captions it is the same font as the rest of the document (Times). However, I want all the figure captions to be of type Helvetica and of size 8pt.

\documentclass[journal]{IEEEtran}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}

\title{Test} \author{Me} \date{June 2021}

\begin{document} \renewcommand\thepage{10.\arabic{page}} \maketitle

\section{Introduction} \newpage \section{page 1} \newpage \section{page 2} \begin{figure}[h] \centering \includegraphics[width=5cm]{example-image-a} \caption{Caption} \label{fig:my_label} \end{figure}

\end{document}

Is it possible to make all figure captions font Helvetica and size 8pt throughout the entire document, without changing the font and size of the main text?

Carl
  • 145
  • 4

1 Answers1

3

Hope the below modified MWE may helps you:

\documentclass[journal]{IEEEtran}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage[scaled=.90]{helvet}
\usepackage{caption}
\DeclareCaptionFont{xipt}{\fontsize{9}{11}\sf\selectfont}
 \captionsetup[figure]{font=xipt,labelfont=bf}
\title{Test}
\author{Me}
\date{June 2021}

\begin{document} \renewcommand\thepage{10.\arabic{page}} \maketitle

\section{Introduction} \newpage \section{page 1} \newpage \section{page 2} \begin{figure}[h] \centering \includegraphics[width=5cm]{example-image-a} \caption{Caption} \label{fig:my_label} \end{figure}

\end{document}

I took this from one of a suggestion from one of great Mr Gonzalo Medina (credits to him)

MadyYuvi
  • 13,693
  • Thank you for the answer. Is it possible to make the such that Fig. 1: is not bold and that there isn't a colon after the figure number? – Carl Jun 18 '21 at 12:56