Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am using the subfigure package to reference parts of a figure. It works just fine when each of the subfigures is a single plot and I want LaTeX to insert labels (a), (b) ... under each. However, for consistency with other figures in my manuscript, I would like to have a single, multi-panel plot where I insert the (a), (b), ... manually (done using lattice in R). I can do this by still using

\subfigure[][]{%
  \label{beta}
  }%

for each subfigure and then inserting the single plot. However, this still gives the labels (a), (b), ... - now superimposed on each other. I would like to get rid of these, whilst still maintaining the functionality of subfigure which allows me to reference individual subfigures. I have tried \renewcommand*{\thesubfigure}{} but that removes the subfigure labels everywhere.

Would you know which command makes the subfigure labels under the plots and how to modify this to the desired effect?

share|improve this question

4 Answers 4

up vote 8 down vote accepted

Here is how I would do:

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{caption}

\begin{document}

\begin{figure}[!ht]
  \captionsetup[subfigure]{labelformat=empty}
  \centering
  \subfloat[]{\includegraphics[width=.4\textwidth]{Paris}}\quad
  \subfloat[]{\includegraphics[width=.4\textwidth]{Paris}}
  \caption{Caption about here}
  \label{fig:fig1}
\end{figure}

\end{document}

enter image description here

share|improve this answer
    
Thanks! That was what I needed - I have to admit I did not know about the subfig package. –  prettygully Apr 26 '11 at 22:45

According to the help for the subfigure package, you can just drop the [] in the \subfigure command and it will not number the subfigure:

\documentclass[draft]{article}
\usepackage{graphicx}
\usepackage{subfigure}

\begin{document}


\begin{figure}
    \centering
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \vfill
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \vfill
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \subfigure[]{\includegraphics[width=0.32\textwidth]{demofig}}
    \vfill
    \subfigure{\includegraphics[width=0.5\textwidth]{demofig}}
    \caption{All numbered but the last!}
    \label{fig:demofig}
\end{figure}

\end{document}

This is the result with MiKTeX 2.9:

enter image description here

share|improve this answer
    
Welcome to TeX.SX. –  Claudio Fiandrino Apr 3 '13 at 17:46
    
subfigure is succeeded by subfig so it should better not be used. An example : tex.stackexchange.com/q/13625/3235 –  percusse Apr 3 '13 at 20:35

Perhaps I am missing the point, but why do you need subfloat in the first place?

\begin{figure}[ht]
\centering
\includegraphics[width=.4\columnwidth]{figures/fig1}\quad
\includegraphics[width=.4\columnwidth]{figures/fig2}
\caption{Caption}
\label{fig:fig1}
\end{figure}
share|improve this answer
    
It seems that prettygully adds the subcaptions to the graphics in the R program. –  egreg Apr 26 '11 at 9:41
1  
I knew, I should not comment on stuff that I have no idea about... –  bjoernz Apr 26 '11 at 9:51

This works fine.

\documentclass{article}
\usepackage{graphicx}
\usepackage{subfig}


\begin{document}

\begin{figure}[!ht]
   %\captionsetup[subfigure]{labelformat=empty}
   \centering
   \subfloat{\includegraphics[width=.4\textwidth]{Paris}}\quad
   \subfloat{\includegraphics[width=.4\textwidth]{Paris}}
   \caption{Caption about here}
   \label{fig:fig1}
\end{figure}

\end{document}
share|improve this answer
    
thanks for this; so basically you are saying that the captionsetup is superfluous? Interesting. –  prettygully Aug 19 '11 at 4:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.