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
    Oct 29, 2018 at 17:16

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.