Graphics, Figures & TablesCross referencing subfigures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mgulin
Posts: 18
Joined: Thu May 31, 2012 7:16 pm

Cross referencing subfigures

Post by mgulin »

Hello!

I have a little problem with cross referencing subfigures. My subfigures are named like this: X-Y(z), where X is the example number, Y is the figure number, and z is the subfigure number. When I cross reference that figure, it shows something like this: YX-Y(z). My question is, how to remove this annoying Y part?

Thanks!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

mgulin
Posts: 18
Joined: Thu May 31, 2012 7:16 pm

Re: Cross referencing subfigures

Post by mgulin »

I managed to solve the problem using subref instead of ref for cross referencing subfigures.
Post Reply