Adding parentheses around subfig references
Say I have a figure with two subfloats inserted using the subfig
package. When I reference them with ref{myLabel}
I get this
Figure 3.5a and 3.5b.
But what I want is this:
Figure 3.5(a) and 3.5(b).
How can I add the parentheses?
cross-referencing formatting subfloats
add a comment |
Say I have a figure with two subfloats inserted using the subfig
package. When I reference them with ref{myLabel}
I get this
Figure 3.5a and 3.5b.
But what I want is this:
Figure 3.5(a) and 3.5(b).
How can I add the parentheses?
cross-referencing formatting subfloats
add a comment |
Say I have a figure with two subfloats inserted using the subfig
package. When I reference them with ref{myLabel}
I get this
Figure 3.5a and 3.5b.
But what I want is this:
Figure 3.5(a) and 3.5(b).
How can I add the parentheses?
cross-referencing formatting subfloats
Say I have a figure with two subfloats inserted using the subfig
package. When I reference them with ref{myLabel}
I get this
Figure 3.5a and 3.5b.
But what I want is this:
Figure 3.5(a) and 3.5(b).
How can I add the parentheses?
cross-referencing formatting subfloats
cross-referencing formatting subfloats
edited Jul 18 '11 at 15:48
lockstep
193k53593723
193k53593723
asked Apr 20 '11 at 22:14
user4600
add a comment |
add a comment |
4 Answers
4
active
oldest
votes
For the subfig package see sections 2.2.2 and 3 of the documentation.
documentclass{article}
usepackage[subrefformat=parens,labelformat=parens]{subfig}
begin{document}
See Figure~subref*{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
(Original answer)
Assuming you're using the subfloat package, section 4 of its documentation indicates you can do something like:
renewcommand*thesubfloatfigure{themainfigure(alph{subfloatfigure})}
to put the sub-number in parentheses.
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
1
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
1
This also works forusepackage[subrefformat=parens,labelformat=parens]{subcaption}
.
– bkarpuz
Jul 15 '13 at 8:07
1
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.
– p_a_c
Sep 6 '16 at 20:14
add a comment |
If anyone came across this question and is using subcaption
, here is a solution (borrowed from its excelent manual):
documentclass{article}
usepackage[labelformat=simple]{subcaption}
renewcommandthesubfigure{(alph{subfigure})}
begin{document}
Reference the sub-figure in full form: ref{sf1}.
Referencing just the sub-figure parts: subref{sf1} and subref{sf2}.
begin{figure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 1}
label{sf1}
end{subfigure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 2}
label{sf2}
end{subfigure}
caption{A figure}
label{fig}
end{figure}
end{document}
3
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…
– Ross
Jan 27 '17 at 23:46
I'm gettingUnknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
add a comment |
documentclass{article}
usepackage{subfig}
begin{document}
See Figure~ref{fig}subref{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
6
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
1
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
1
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
add a comment |
The [subrefformat=parens,labelformat=parens]
options didn't work for me; the references still came out as, e.g., "1b". I had to use
usepackage[caption=false,labelformat=simple]{subfig}
renewcommand{thesubfigure}{(alph{subfigure})}
(I had to use caption=false
because without it subfig
makes the captions in my document class come out in the wrong style.) Does this seem all right to use? I did discover that under my way, you have to use subref*
, not subref
, if you want to auto-refer to something like "(a)" (with subref
you get "((a))").
Looking at the other answer again, I think I needed to do it this way because I had been using ref
for all my references to things like "Figure 1b". (I'd rather not change all my ref
's to subref*
's if I can avoid it.)
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f16291%2fadding-parentheses-around-subfig-references%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
For the subfig package see sections 2.2.2 and 3 of the documentation.
documentclass{article}
usepackage[subrefformat=parens,labelformat=parens]{subfig}
begin{document}
See Figure~subref*{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
(Original answer)
Assuming you're using the subfloat package, section 4 of its documentation indicates you can do something like:
renewcommand*thesubfloatfigure{themainfigure(alph{subfloatfigure})}
to put the sub-number in parentheses.
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
1
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
1
This also works forusepackage[subrefformat=parens,labelformat=parens]{subcaption}
.
– bkarpuz
Jul 15 '13 at 8:07
1
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.
– p_a_c
Sep 6 '16 at 20:14
add a comment |
For the subfig package see sections 2.2.2 and 3 of the documentation.
documentclass{article}
usepackage[subrefformat=parens,labelformat=parens]{subfig}
begin{document}
See Figure~subref*{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
(Original answer)
Assuming you're using the subfloat package, section 4 of its documentation indicates you can do something like:
renewcommand*thesubfloatfigure{themainfigure(alph{subfloatfigure})}
to put the sub-number in parentheses.
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
1
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
1
This also works forusepackage[subrefformat=parens,labelformat=parens]{subcaption}
.
– bkarpuz
Jul 15 '13 at 8:07
1
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.
– p_a_c
Sep 6 '16 at 20:14
add a comment |
For the subfig package see sections 2.2.2 and 3 of the documentation.
documentclass{article}
usepackage[subrefformat=parens,labelformat=parens]{subfig}
begin{document}
See Figure~subref*{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
(Original answer)
Assuming you're using the subfloat package, section 4 of its documentation indicates you can do something like:
renewcommand*thesubfloatfigure{themainfigure(alph{subfloatfigure})}
to put the sub-number in parentheses.
For the subfig package see sections 2.2.2 and 3 of the documentation.
documentclass{article}
usepackage[subrefformat=parens,labelformat=parens]{subfig}
begin{document}
See Figure~subref*{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
(Original answer)
Assuming you're using the subfloat package, section 4 of its documentation indicates you can do something like:
renewcommand*thesubfloatfigure{themainfigure(alph{subfloatfigure})}
to put the sub-number in parentheses.
edited Jul 18 '11 at 7:48
Martin Scharrer♦
204k47653826
204k47653826
answered Apr 20 '11 at 22:33
Mike RenfroMike Renfro
17.7k14786
17.7k14786
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
1
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
1
This also works forusepackage[subrefformat=parens,labelformat=parens]{subcaption}
.
– bkarpuz
Jul 15 '13 at 8:07
1
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.
– p_a_c
Sep 6 '16 at 20:14
add a comment |
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
1
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
1
This also works forusepackage[subrefformat=parens,labelformat=parens]{subcaption}
.
– bkarpuz
Jul 15 '13 at 8:07
1
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.
– p_a_c
Sep 6 '16 at 20:14
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Unfortunately I'm using subfig. That's really my fault for leaving that unclear.
– user4600
Apr 20 '11 at 23:16
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
Edited for subfig. Not quite as straightforward, but easy enough.
– Mike Renfro
Apr 21 '11 at 3:24
1
1
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
I actually found this, which works for me well: renewcommandthesubfigure{(alph{subfigure})}
– user4600
Apr 21 '11 at 3:56
1
1
This also works for
usepackage[subrefformat=parens,labelformat=parens]{subcaption}
.– bkarpuz
Jul 15 '13 at 8:07
This also works for
usepackage[subrefformat=parens,labelformat=parens]{subcaption}
.– bkarpuz
Jul 15 '13 at 8:07
1
1
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.– p_a_c
Sep 6 '16 at 20:14
renewcommandthesubfigure{(alph{subfigure})}
does add parentheses in citations, but also seems to cause subfloat captions to be double-parenthesized: ((a)), ((b)), etc.– p_a_c
Sep 6 '16 at 20:14
add a comment |
If anyone came across this question and is using subcaption
, here is a solution (borrowed from its excelent manual):
documentclass{article}
usepackage[labelformat=simple]{subcaption}
renewcommandthesubfigure{(alph{subfigure})}
begin{document}
Reference the sub-figure in full form: ref{sf1}.
Referencing just the sub-figure parts: subref{sf1} and subref{sf2}.
begin{figure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 1}
label{sf1}
end{subfigure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 2}
label{sf2}
end{subfigure}
caption{A figure}
label{fig}
end{figure}
end{document}
3
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…
– Ross
Jan 27 '17 at 23:46
I'm gettingUnknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
add a comment |
If anyone came across this question and is using subcaption
, here is a solution (borrowed from its excelent manual):
documentclass{article}
usepackage[labelformat=simple]{subcaption}
renewcommandthesubfigure{(alph{subfigure})}
begin{document}
Reference the sub-figure in full form: ref{sf1}.
Referencing just the sub-figure parts: subref{sf1} and subref{sf2}.
begin{figure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 1}
label{sf1}
end{subfigure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 2}
label{sf2}
end{subfigure}
caption{A figure}
label{fig}
end{figure}
end{document}
3
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…
– Ross
Jan 27 '17 at 23:46
I'm gettingUnknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
add a comment |
If anyone came across this question and is using subcaption
, here is a solution (borrowed from its excelent manual):
documentclass{article}
usepackage[labelformat=simple]{subcaption}
renewcommandthesubfigure{(alph{subfigure})}
begin{document}
Reference the sub-figure in full form: ref{sf1}.
Referencing just the sub-figure parts: subref{sf1} and subref{sf2}.
begin{figure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 1}
label{sf1}
end{subfigure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 2}
label{sf2}
end{subfigure}
caption{A figure}
label{fig}
end{figure}
end{document}
If anyone came across this question and is using subcaption
, here is a solution (borrowed from its excelent manual):
documentclass{article}
usepackage[labelformat=simple]{subcaption}
renewcommandthesubfigure{(alph{subfigure})}
begin{document}
Reference the sub-figure in full form: ref{sf1}.
Referencing just the sub-figure parts: subref{sf1} and subref{sf2}.
begin{figure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 1}
label{sf1}
end{subfigure}
begin{subfigure}{.48textwidth}
centering
Contents of the sub-figure
caption{Subfig 2}
label{sf2}
end{subfigure}
caption{A figure}
label{fig}
end{figure}
end{document}
answered Sep 3 '13 at 11:38
tjaneztjanez
54659
54659
3
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…
– Ross
Jan 27 '17 at 23:46
I'm gettingUnknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
add a comment |
3
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…
– Ross
Jan 27 '17 at 23:46
I'm gettingUnknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
3
3
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:
usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…– Ross
Jan 27 '17 at 23:46
For me, this caused double parenthesis before the caption of each subfigure. Adding the line:
usepackage[labelformat=simple]{subcaption}
, according to this answer helped tex.stackexchange.com/questions/135358/…– Ross
Jan 27 '17 at 23:46
I'm getting
Unknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
I'm getting
Unknown option 'labelformat=simple' for package 'subcaption'.
– pushpen.paul
Aug 21 '17 at 16:06
add a comment |
documentclass{article}
usepackage{subfig}
begin{document}
See Figure~ref{fig}subref{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
6
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
1
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
1
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
add a comment |
documentclass{article}
usepackage{subfig}
begin{document}
See Figure~ref{fig}subref{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
6
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
1
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
1
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
add a comment |
documentclass{article}
usepackage{subfig}
begin{document}
See Figure~ref{fig}subref{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
documentclass{article}
usepackage{subfig}
begin{document}
See Figure~ref{fig}subref{sf1} for more information.
begin{figure}
centering
subfloat[Subfig 1]{label{sf1} Contents of the sub-figure}
qquad
subfloat[Subfig 2]{label{sf2} Contents of the sub-figure}
caption{A figure}
label{fig}
end{figure}
end{document}
edited Oct 5 '11 at 14:56
N.N.
24k20116189
24k20116189
answered Oct 5 '11 at 14:52
Aureli Soria-FrischAureli Soria-Frisch
411
411
6
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
1
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
1
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
add a comment |
6
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
1
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
1
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
6
6
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
It would be nice if you could say some words about your solution. We don't expect an epic story, but something like "I did ... to achieve ..." would be nice. Anyway, welcome to Tex.sX, and thanks for contributing!
– Tom Bombadil
Oct 5 '11 at 23:02
1
1
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
@TomBombadil : I guess this is obvious as he uses 'ref' and 'subref' together.
– bkarpuz
Apr 21 '13 at 16:05
1
1
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
The output isn't obvious. Easy enough to try it out, though.
– Mars
Jan 5 '16 at 0:17
add a comment |
The [subrefformat=parens,labelformat=parens]
options didn't work for me; the references still came out as, e.g., "1b". I had to use
usepackage[caption=false,labelformat=simple]{subfig}
renewcommand{thesubfigure}{(alph{subfigure})}
(I had to use caption=false
because without it subfig
makes the captions in my document class come out in the wrong style.) Does this seem all right to use? I did discover that under my way, you have to use subref*
, not subref
, if you want to auto-refer to something like "(a)" (with subref
you get "((a))").
Looking at the other answer again, I think I needed to do it this way because I had been using ref
for all my references to things like "Figure 1b". (I'd rather not change all my ref
's to subref*
's if I can avoid it.)
add a comment |
The [subrefformat=parens,labelformat=parens]
options didn't work for me; the references still came out as, e.g., "1b". I had to use
usepackage[caption=false,labelformat=simple]{subfig}
renewcommand{thesubfigure}{(alph{subfigure})}
(I had to use caption=false
because without it subfig
makes the captions in my document class come out in the wrong style.) Does this seem all right to use? I did discover that under my way, you have to use subref*
, not subref
, if you want to auto-refer to something like "(a)" (with subref
you get "((a))").
Looking at the other answer again, I think I needed to do it this way because I had been using ref
for all my references to things like "Figure 1b". (I'd rather not change all my ref
's to subref*
's if I can avoid it.)
add a comment |
The [subrefformat=parens,labelformat=parens]
options didn't work for me; the references still came out as, e.g., "1b". I had to use
usepackage[caption=false,labelformat=simple]{subfig}
renewcommand{thesubfigure}{(alph{subfigure})}
(I had to use caption=false
because without it subfig
makes the captions in my document class come out in the wrong style.) Does this seem all right to use? I did discover that under my way, you have to use subref*
, not subref
, if you want to auto-refer to something like "(a)" (with subref
you get "((a))").
Looking at the other answer again, I think I needed to do it this way because I had been using ref
for all my references to things like "Figure 1b". (I'd rather not change all my ref
's to subref*
's if I can avoid it.)
The [subrefformat=parens,labelformat=parens]
options didn't work for me; the references still came out as, e.g., "1b". I had to use
usepackage[caption=false,labelformat=simple]{subfig}
renewcommand{thesubfigure}{(alph{subfigure})}
(I had to use caption=false
because without it subfig
makes the captions in my document class come out in the wrong style.) Does this seem all right to use? I did discover that under my way, you have to use subref*
, not subref
, if you want to auto-refer to something like "(a)" (with subref
you get "((a))").
Looking at the other answer again, I think I needed to do it this way because I had been using ref
for all my references to things like "Figure 1b". (I'd rather not change all my ref
's to subref*
's if I can avoid it.)
edited Dec 3 '12 at 19:42
answered Dec 3 '12 at 15:10
MSCMSC
1,35211624
1,35211624
add a comment |
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f16291%2fadding-parentheses-around-subfig-references%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown