I have a figure that has three subfigures and I want to \ref them. I need them in this following format:

Fig. 1(a)

But when I use the \ref with the label of the subfigure a, it references this way:

Fig. 1a

I'm using the package \subcaption.

Can anyone help me with this problem?


1 Answer 1





    Fig.\ \ref{coffee1}


        \caption{One cup of coffee.}
        \caption{fig:More coffee.}


enter image description here

  • @Codewraith My pleasure!
    – daniel
    Commented Oct 29, 2018 at 17:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .