Table mislabeled as figureTable caption not appearing in PNAS document classProblem with figure and table captionFormatting table and figure number and title separatelyChange autoref and caption name for only one figureAdd figure caption in tableStyle figure captions and table captions differentlyFigure and table captions in capital lettersref jumps not to the right figure in appendixWhy table reference numbers are incorrect?Can I change caption of a figure from “Figure” to “Table”
How to make particles emit from certain parts of a 3D object?
I see my dog run
LWC and complex parameters
Does bootstrapped regression allow for inference?
Shall I use personal or official e-mail account when registering to external websites for work purpose?
When blogging recipes, how can I support both readers who want the narrative/journey and ones who want the printer-friendly recipe?
aging parents with no investments
Unbreakable Formation vs. Cry of the Carnarium
Domain expired, GoDaddy holds it and is asking more money
Why do UK politicians seemingly ignore opinion polls on Brexit?
How to answer pointed "are you quitting" questioning when I don't want them to suspect
How do I create uniquely male characters?
Are cabin dividers used to "hide" the flex of the airplane?
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Information to fellow intern about hiring?
Copycat chess is back
Is every set a filtered colimit of finite sets?
Crop image to path created in TikZ?
How could a lack of term limits lead to a "dictatorship?"
Is ipsum/ipsa/ipse a third person pronoun, or can it serve other functions?
What happens when a metallic dragon and a chromatic dragon mate?
How would photo IDs work for shapeshifters?
Can I legally use front facing blue light in the UK?
Patience, young "Padovan"
Table mislabeled as figure
Table caption not appearing in PNAS document classProblem with figure and table captionFormatting table and figure number and title separatelyChange autoref and caption name for only one figureAdd figure caption in tableStyle figure captions and table captions differentlyFigure and table captions in capital lettersref jumps not to the right figure in appendixWhy table reference numbers are incorrect?Can I change caption of a figure from “Figure” to “Table”
I have an image and a table and they need to appear in the same page. The way I'm doing that right now is by wrapping them both in a figure. The problem I'm having is I'm trying to reference the table and LaTex keeps on labeling it as a figure.
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
beginfigure
includegraphics[scale=0.4]3-nitrobenzonitrile.png
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
beginthreeparttable
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endfigure
enddocument
I found two solutions-ish to this problem. The first is to use manual instead of autoref and just manually label all my links. The other is to put captionsetuptype=table
above my table caption but this seems like a hack. Is there any builtin, smooth way to do this?
tables hyperref captions ref autoref
New contributor
add a comment |
I have an image and a table and they need to appear in the same page. The way I'm doing that right now is by wrapping them both in a figure. The problem I'm having is I'm trying to reference the table and LaTex keeps on labeling it as a figure.
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
beginfigure
includegraphics[scale=0.4]3-nitrobenzonitrile.png
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
beginthreeparttable
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endfigure
enddocument
I found two solutions-ish to this problem. The first is to use manual instead of autoref and just manually label all my links. The other is to put captionsetuptype=table
above my table caption but this seems like a hack. Is there any builtin, smooth way to do this?
tables hyperref captions ref autoref
New contributor
add a comment |
I have an image and a table and they need to appear in the same page. The way I'm doing that right now is by wrapping them both in a figure. The problem I'm having is I'm trying to reference the table and LaTex keeps on labeling it as a figure.
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
beginfigure
includegraphics[scale=0.4]3-nitrobenzonitrile.png
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
beginthreeparttable
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endfigure
enddocument
I found two solutions-ish to this problem. The first is to use manual instead of autoref and just manually label all my links. The other is to put captionsetuptype=table
above my table caption but this seems like a hack. Is there any builtin, smooth way to do this?
tables hyperref captions ref autoref
New contributor
I have an image and a table and they need to appear in the same page. The way I'm doing that right now is by wrapping them both in a figure. The problem I'm having is I'm trying to reference the table and LaTex keeps on labeling it as a figure.
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
beginfigure
includegraphics[scale=0.4]3-nitrobenzonitrile.png
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
beginthreeparttable
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endfigure
enddocument
I found two solutions-ish to this problem. The first is to use manual instead of autoref and just manually label all my links. The other is to put captionsetuptype=table
above my table caption but this seems like a hack. Is there any builtin, smooth way to do this?
tables hyperref captions ref autoref
tables hyperref captions ref autoref
New contributor
New contributor
New contributor
asked Apr 4 at 4:32
FailureGodFailureGod
484
484
New contributor
New contributor
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
This is because you put the table in a figure
environment. Since you are already using the caption
package, you may e.g. do
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
noindent
beginminipagetextwidth
centering
includegraphics[scale=0.4]example-image-a
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
beginthreeparttable
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endminipage
enddocument
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod The you could for instance wrap them in aminipage
or in atabular
, depending on your layout preferences.
– marmot
Apr 4 at 5:27
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
|
show 1 more comment
I think an easier solution would be to change caption
to capt-of
:
From:
usepackage[singlelinecheck=false]caption
To:
usepackagecaption2
captionsetupsinglelinecheck=false
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
What about usingusepackagecaption2
followed bycaptionsetupsinglelinecheck=false
instead? I think it addresses everything.
– Guilherme Silva
Apr 5 at 1:36
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
);
);
FailureGod is a new contributor. Be nice, and check out our Code of Conduct.
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%2f483087%2ftable-mislabeled-as-figure%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
This is because you put the table in a figure
environment. Since you are already using the caption
package, you may e.g. do
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
noindent
beginminipagetextwidth
centering
includegraphics[scale=0.4]example-image-a
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
beginthreeparttable
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endminipage
enddocument
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod The you could for instance wrap them in aminipage
or in atabular
, depending on your layout preferences.
– marmot
Apr 4 at 5:27
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
|
show 1 more comment
This is because you put the table in a figure
environment. Since you are already using the caption
package, you may e.g. do
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
noindent
beginminipagetextwidth
centering
includegraphics[scale=0.4]example-image-a
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
beginthreeparttable
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endminipage
enddocument
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod The you could for instance wrap them in aminipage
or in atabular
, depending on your layout preferences.
– marmot
Apr 4 at 5:27
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
|
show 1 more comment
This is because you put the table in a figure
environment. Since you are already using the caption
package, you may e.g. do
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
noindent
beginminipagetextwidth
centering
includegraphics[scale=0.4]example-image-a
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
beginthreeparttable
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endminipage
enddocument
This is because you put the table in a figure
environment. Since you are already using the caption
package, you may e.g. do
documentclass[12pt]article
usepackage[margin=1in]geometry
usepackage[colorlinks]hyperref
usepackage[singlelinecheck=false]caption
usepackagebooktabs
usepackagethreeparttable
usepackagegraphicx
graphicspath ./images/
begindocument
stuff stuff autoreftable:nmr_nitro blah blah.
noindent
beginminipagetextwidth
centering
includegraphics[scale=0.4]example-image-a
captionoffigure3-Nitrobenzonitrile with hydrogens assignments
labelfigure:nmr_fig_nitro
addtocounterfootnote1
captionoftableNMR of 3-nitrobenzonitrile
labeltable:nmr_nitro
beginthreeparttable
begintabular c c
toprule
textbfSome Data & textbfAssignment \
midrule
8.542; 2.0 (2H); m; & A, B \
7.960; 2.1 (2H); m; & C, D \
bottomrule
endtabular
endthreeparttable
endminipage
enddocument
edited Apr 4 at 5:31
answered Apr 4 at 4:40
marmotmarmot
116k5147277
116k5147277
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod The you could for instance wrap them in aminipage
or in atabular
, depending on your layout preferences.
– marmot
Apr 4 at 5:27
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
|
show 1 more comment
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod The you could for instance wrap them in aminipage
or in atabular
, depending on your layout preferences.
– marmot
Apr 4 at 5:27
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
This doesnt work because I need the image and the table to be guaranteed to be on the same page.
– FailureGod
Apr 4 at 5:11
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod You can certainly make them appear on one side. The question is if you want them to float or be fixed at a given page.
– marmot
Apr 4 at 5:13
@FailureGod The you could for instance wrap them in a
minipage
or in a tabular
, depending on your layout preferences.– marmot
Apr 4 at 5:27
@FailureGod The you could for instance wrap them in a
minipage
or in a tabular
, depending on your layout preferences.– marmot
Apr 4 at 5:27
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
I need them to appear at a specific place in text. Like ''' Some text <image and figure> more text ''' where the image and the figure are not broken by a pagebreak.
– FailureGod
Apr 4 at 5:31
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
@FailureGod I added something of that sort.
– marmot
Apr 4 at 5:32
|
show 1 more comment
I think an easier solution would be to change caption
to capt-of
:
From:
usepackage[singlelinecheck=false]caption
To:
usepackagecaption2
captionsetupsinglelinecheck=false
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
What about usingusepackagecaption2
followed bycaptionsetupsinglelinecheck=false
instead? I think it addresses everything.
– Guilherme Silva
Apr 5 at 1:36
add a comment |
I think an easier solution would be to change caption
to capt-of
:
From:
usepackage[singlelinecheck=false]caption
To:
usepackagecaption2
captionsetupsinglelinecheck=false
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
What about usingusepackagecaption2
followed bycaptionsetupsinglelinecheck=false
instead? I think it addresses everything.
– Guilherme Silva
Apr 5 at 1:36
add a comment |
I think an easier solution would be to change caption
to capt-of
:
From:
usepackage[singlelinecheck=false]caption
To:
usepackagecaption2
captionsetupsinglelinecheck=false
I think an easier solution would be to change caption
to capt-of
:
From:
usepackage[singlelinecheck=false]caption
To:
usepackagecaption2
captionsetupsinglelinecheck=false
edited 3 hours ago
answered Apr 4 at 4:48
Guilherme SilvaGuilherme Silva
135
135
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
What about usingusepackagecaption2
followed bycaptionsetupsinglelinecheck=false
instead? I think it addresses everything.
– Guilherme Silva
Apr 5 at 1:36
add a comment |
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
What about usingusepackagecaption2
followed bycaptionsetupsinglelinecheck=false
instead? I think it addresses everything.
– Guilherme Silva
Apr 5 at 1:36
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
While this fixs the labeling problem it also prevents me from left aligning the caption.
– FailureGod
Apr 4 at 16:36
What about using
usepackagecaption2
followed by captionsetupsinglelinecheck=false
instead? I think it addresses everything.– Guilherme Silva
Apr 5 at 1:36
What about using
usepackagecaption2
followed by captionsetupsinglelinecheck=false
instead? I think it addresses everything.– Guilherme Silva
Apr 5 at 1:36
add a comment |
FailureGod is a new contributor. Be nice, and check out our Code of Conduct.
FailureGod is a new contributor. Be nice, and check out our Code of Conduct.
FailureGod is a new contributor. Be nice, and check out our Code of Conduct.
FailureGod is a new contributor. Be nice, and check out our Code of Conduct.
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%2f483087%2ftable-mislabeled-as-figure%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