2

I am writing a thesis and I have to use the \subfigure environ and not \caption. The problem is I do not want that the captions of the individual subfigures appear on list of figures (LoF) and only the caption of the main figure should appear?

In the following mwe, still (a) and (b) are showing in the LoF. Any help please.

documentclass{article}
        \usepackage[margin=1in]{geometry}
        \usepackage[demo]{graphicx}
        \RequirePackage{subfigure}
        \begin{document}
    \begin{figure}
        \centering     %%% not \center
        \subfigure[]{\label{fig:a}\includegraphics[width=70mm]{f9.eps}}
        \subfigure[]{\label{fig:b}\includegraphics[width=70mm]{f10.eps}}
    \caption{(a) this is fig 1 (b) this is fig 2. }
    \label{L50}
    \end{figure}
  • Hi. Please tell your school that "this package should not be used in combination with hyperref and links. This is well-documented" (TeXnician here) and that it should be avoided and replaced by caption or subcaption if possible in any way. subfigure's capabilities have been superseded by these alternatives. – thymaro Jul 11 '17 at 16:00
  • 2
    \subfigure[\empty] and \subfigure (no {}) worked for me. It still increments the subfigure counter, so the \labels work. – John Kormylo Jul 11 '17 at 17:57
  • @JohnKormylo thank you. It solved my problem. – kaka Jul 11 '17 at 20:47
2

Try with subfig package.

Hope the below MWE helps you:

\documentclass{article}

\usepackage[margin=1in]{geometry}
\usepackage[demo]{graphicx}
\usepackage{subfig}

\begin{document}

\listoffigures

\begin{figure}[h]
\centering     %%% not \center
    \subfloat[Sub-Caption a]{\fbox{\label{fig:a}\includegraphics[width=70mm]{figure1.eps}}}\ 
    \subfloat[Sub-Caption b]{\fbox{\label{fig:b}\includegraphics[width=70mm]{figure2.eps}}}\\
\caption{Caption here}\label{fig1}
\end{figure}

Figure \ref{fig1}

Sub Figure \ref{fig:a}--\ref{fig:b}

\end{document}

Output:

enter image description here

  • 1
    The problem is I am not allowed to use my own package in the standard template defined by University office. I've to use the \subfigure. Anyways thanks for the suggestion. – kaka Jul 11 '17 at 14:58

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.