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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In the example:

  \documentclass{article}
  \usepackage[demo]{graphicx}
  \usepackage{subfig}

  \begin{document}


  \begin{figure}[h]
  \centering
  \subfloat[]{\label{first}
  \includegraphics[width=1cm]{logo}
  }
  \subfloat[]{\label{second}
  \includegraphics[width=1cm]{logo}
  }
  \caption{
  Some label referring to
  \protect\subref{first}.
  }
  \end{figure}


  \end{document}

I would like to manually label e.g. the second figure with a label like (ii-z) instead of (b). Note that I do not want it to be automatically labelled and \subfig* does not seem to help.

How do I do this?

share|improve this question
up vote 6 down vote accepted

Insert a redefinition of \thesubfigure at the appropriate location:

enter image description here

\documentclass{article}
\usepackage{graphicx,subfig}% http://ctan.org/pkg/{graphicx,subfig}

\begin{document}

\begin{figure}[h]
  \centering
  \subfloat[]{\label{first}
    \includegraphics[width=1cm]{example-image-a}
  }
  \renewcommand{\thesubfigure}{ii-z}% New fixed/manual numbering
  \subfloat[]{\label{second}
    \includegraphics[width=1cm]{example-image-b}
  }
  \caption{Some label referring to~\protect\subref{first} and~\protect\subref{second}.}
\end{figure}

\end{document}
share|improve this answer

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.