Monday, November 5, 2012

Latex: Reference to subfigure or subfloat but only with letter

You got a subfloat in latex and want a reference to it without printing e.g. "1.1a" but only "a".
Simply use \subref instead of \ref.

If you want to use this in a caption itself, try the \protect\subref{} command!

No comments:

Post a Comment