Graphics, Figures & Tables ⇒ Subfigure reference format
-
sandsoftime
- Posts: 8
- Joined: Mon Sep 21, 2009 9:04 pm
Subfigure reference format
I am trying to change the default way in which the \ref command works with subfigure references. Right now the output I get is a figure number appended with the subfigure alphabet eg. 4c. I want it to appear as 4 (c) instead. I tried changing the \subref and \thefigure commands but couldn't figure it out.
Murtaza
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
Subfigure reference format
-
sandsoftime
- Posts: 8
- Joined: Mon Sep 21, 2009 9:04 pm
Re: Subfigure reference format
The captions themselves appear in the parentheses by default. The \subref only generates a reference to the subfigure and gives the alphabet (a), (b) etc. However, with \ref the parantheses disappear. Is there a way to make \subref work so that reference to the parent figure is also generated. Or anyway to modify the \ref command?
Sands
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Subfigure reference format
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Subfigure reference format
That's exactly what the example code in the linked thread does.sandsoftime wrote:...Is there a way to make \subref work so that reference to the parent figure is also generated...
-
sandsoftime
- Posts: 8
- Joined: Mon Sep 21, 2009 9:04 pm