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.

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

1 Answer 1

up vote 4 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.