2

I'm hoping that somebody can point me in the right direction on these two questions regarding figure number and captions.

Question 1 I am writing a catalogue that when finished will have many thousands of figures. The issue is that some of these figures belong to different series, for example I will have figures 1, 2, 3, etc., but also figures A1, A2, A3 etc. (there will be multiple series). (The reason for needing this is that there are certain classes of images, and hence they need separating into different series for ease). (The picture below shows what I require so there's four figures numbered 3500, 3501 etc., but another one numbered H288.

I've looked at this website and can see how to change what it writes in the caption so I can force an A before it, but I need a number of counters. Any idea how this can be done?

Question 2 I've see the subfigure and subcaption commands, but are wondering if it is possible to do the following: enter image description here

I have multiple images that need several figure captions. I need to place several figure captions (1, 2, 3 etc.) under them, and then another figure caption under the entire image.

I could reproduce the image twice, but that seems a little pointless.

2

caption and subcaption package give you the freedom to choose what format you desire for your captions and subcaptions.

For question 2 (if I correctly understood) you need a "multiple" subcaption for a unique image, I've done that with a tabularx of subcaptions, playing with the subfigure counter (with the help of egreg and Arash Esbati).

\documentclass{book}
\usepackage{graphicx}
\usepackage{array}
\usepackage{tabularx}
\usepackage{makecell}
\usepackage{caption}
\usepackage{subcaption}
\DeclareCaptionLabelFormat{onlynumber}{#2}
\DeclareCaptionLabelFormat{Anumber}{A#2}
\DeclareCaptionLabelFormat{3number}{3#2}
\DeclareCaptionLabelFormat{Hnumber}{H#2}
\captionsetup{labelfont=bf,labelformat=onlynumber,labelsep=space}    
\captionsetup[sub]{labelfont=bf,labelformat=simple, labelsep=newline}    
\renewcommand\thesubfigure{\arabic{subfigure}}%subfigure number numeric

\usepackage{mwe} % only to create blind text and example-image
%\usepackage{showframe} % for testing purpose only

\begin{document}
\begin{figure}[ht]
    \centering
    \begin{subfigure}[t]{.32\linewidth}
        \centering
        \includegraphics[width=0.32\linewidth]{example-image-10x16}
        \caption{First picture}
    \end{subfigure}
    \begin{subfigure}[t]{.32\linewidth}
        \centering
        \includegraphics[width=0.32\linewidth]{example-image-10x16}
        \caption{Second picture}
    \end{subfigure}     
    \begin{subfigure}[t]{.32\linewidth}
        \centering
        \includegraphics[width=0.32\linewidth]{example-image-10x16}
        \caption{Third picture}
    \end{subfigure}     
    \caption{A series of figures with subcaption only numeric}
\end{figure}
% 
\captionsetup[sub]{labelfont=bf,labelformat=Anumber, labelsep=newline}    
\begin{figure}[ht]
    \centering
    \begin{subfigure}[t]{.32\linewidth}
        \centering
        \includegraphics[width=0.32\linewidth]{example-image-10x16}
        \caption{First picture}
    \end{subfigure}
    \begin{subfigure}[t]{.32\linewidth}
        \centering
        \includegraphics[width=0.32\linewidth]{example-image-10x16}
        \caption{Second picture}
    \end{subfigure}     
    \begin{subfigure}[t]{.32\linewidth}
        \centering
        \includegraphics[width=0.32\linewidth]{example-image-10x16}
        \caption{Third picture}
    \end{subfigure}     
    \caption{A series of figures with subcaption A-letter-number}
\end{figure}
%
\captionsetup{labelfont=bf,labelformat=Hnumber,labelsep=space}
\captionsetup[sub]{labelfont=bf,labelformat=3number, labelsep=newline,justification=centering, aboveskip=-10pt}    
\setcounter{figure}{287}
\begin{figure}[ht]
    \begin{subfigure}[t]{\linewidth}
        \includegraphics[width=\textwidth,height=2cm]{example-image-16x9}
        \setcounter{subfigure}{500}% you can set the subfigure counter as you like
        \begin{tabularx}{\textwidth}{*{4}{>{\centering\arraybackslash}X}}
        \caption{Eva Cox \\ (1938-)}
        & \caption{Elizabeth Evatt \\ (1933-)}
        & \caption{Germain Green \\ (1939-)}
        & \caption{Anne Summers \\ (1945-)}
        \end{tabularx}
    \end{subfigure}
\caption{Horizontal strip of four}
\end{figure}
\end{document}

enter image description here

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.