I am using the captionand subcaption package with floatrow and would like to change how references with \ref are formated.
First here is my captionsetup so far:
\DeclareCaptionSubType[alph]{figure}
\captionsetup[subfigure]{labelformat=brace,justification=centerlast}
\captionsetup{subrefformat=brace}
What I would like to achieve is the following (all for subfigures):
- the label should be
\alph), e.g. a) - a
\subref{subfigureLabel}or\ref{subfigureLabel}should return basically the label:\alph), e.g. a) - a
\ref{compositeFigure}should return the prefix, the figurenumber, a space, followed by the label (including the brace), e.g. 'Figure 1.1 a)', (basically append the label of the subfigure with a space).
As you can see I solved (not quite satisfactory) 1. and 2., however I am struggling with three. First of I could not find anything like refformat, however there are good reasons for the existence of subrefformat. However I want to use \subref just for the short version (see 2.), so I can't use that. Furthermore I would like to know if there is an option to set the label and subref format with one command (I think it is reasonable and common to define them equally).
P.S.: I have seen https://tex.stackexchange.com/a/122306/19326, however it is a) for subfig and b) looks messier/more complicated than what I hope for but if that is what it takes...


cleverefis worth a look. – Martin - マーチン Jul 29 '13 at 10:27refand decide based on the label). The clevermanual statesCleveref does not modify the standard \ref or \pageref commands, so I am not sure it is the right tool for the job. I will give it a detailed look in the next day(s) and come back to this. – ted Jul 29 '13 at 11:00\crefinstead of\ref. This command will the decide for you based on the label what it will typeset. However it will not typeset the)brace, because this should be used as a delimiter only. If you really need the brace you should just simply redefine\thesubfigure– Martin - マーチン Jul 29 '13 at 13:06