Two tables side by side without losing caption
I am trying to do two tables side by side. I have also benefited from the following thread, followed this answer and a couple of others.
Two tables side by side with minipage
My code is the following
documentclass[preprint,12pt]{elsarticle}
usepackage{lineno}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{graphicx}
graphicspath{{./Figures/}}
usepackage{subfig}
usepackage{floatrow}
usepackage{dsfont}
usepackage{float}
usepackage[margin=1in]{geometry}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{algorithmic}
usepackage{algorithm}
usepackage{slashbox}
usepackage{subcaption}
usepackage[showframe]{geometry}
def hfillx {hspace*{-textwidth} hfill}
begin{document}
begin{table}[htb]
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
It gives me the following result:

I lose Caption 1 completely and the tables are not side-by-side. I tried to apply the answers from the related threads, but I can't seem to find where I am going wrong. How do I do them side by side?
tables subfloats subcaption
|
show 3 more comments
I am trying to do two tables side by side. I have also benefited from the following thread, followed this answer and a couple of others.
Two tables side by side with minipage
My code is the following
documentclass[preprint,12pt]{elsarticle}
usepackage{lineno}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{graphicx}
graphicspath{{./Figures/}}
usepackage{subfig}
usepackage{floatrow}
usepackage{dsfont}
usepackage{float}
usepackage[margin=1in]{geometry}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{algorithmic}
usepackage{algorithm}
usepackage{slashbox}
usepackage{subcaption}
usepackage[showframe]{geometry}
def hfillx {hspace*{-textwidth} hfill}
begin{document}
begin{table}[htb]
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
It gives me the following result:

I lose Caption 1 completely and the tables are not side-by-side. I tried to apply the answers from the related threads, but I can't seem to find where I am going wrong. How do I do them side by side?
tables subfloats subcaption
1
You're missing the second mandatory argument ofsubtableso your example code does not compile but instead show the error message:! Missing number, treated as zero.The correct usage isbegin{subtable}{<width>}with<width>={.5textwidth}or any other length of your choice.
– leandriis
Jan 2 at 19:47
I had the {.5textwidth} command but when I typeset it, it doesn't see {.5textwidth} as a command. It just prints .5 on the screen just before the tables. I edited the question accordingly.
– A Doe
Jan 2 at 20:05
1
Please make a minimal working example (MWE) that represents the described behaviour. If I complete the code you posted with the documentclassarticleand a) the above described width, the desired layout is produced. If I complete the code b) without the width the above described error occurs. That said, I am not able to reproduce either of the outputs in your screenshots.
– leandriis
Jan 2 at 20:09
I am editing the question accordingly now.
– A Doe
Jan 2 at 20:11
I created a small file that only has the table and its output. All my packages are on the example now.
– A Doe
Jan 2 at 20:18
|
show 3 more comments
I am trying to do two tables side by side. I have also benefited from the following thread, followed this answer and a couple of others.
Two tables side by side with minipage
My code is the following
documentclass[preprint,12pt]{elsarticle}
usepackage{lineno}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{graphicx}
graphicspath{{./Figures/}}
usepackage{subfig}
usepackage{floatrow}
usepackage{dsfont}
usepackage{float}
usepackage[margin=1in]{geometry}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{algorithmic}
usepackage{algorithm}
usepackage{slashbox}
usepackage{subcaption}
usepackage[showframe]{geometry}
def hfillx {hspace*{-textwidth} hfill}
begin{document}
begin{table}[htb]
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
It gives me the following result:

I lose Caption 1 completely and the tables are not side-by-side. I tried to apply the answers from the related threads, but I can't seem to find where I am going wrong. How do I do them side by side?
tables subfloats subcaption
I am trying to do two tables side by side. I have also benefited from the following thread, followed this answer and a couple of others.
Two tables side by side with minipage
My code is the following
documentclass[preprint,12pt]{elsarticle}
usepackage{lineno}
usepackage{amsmath}
usepackage{amsthm}
usepackage{amsfonts}
usepackage{amssymb}
usepackage{graphicx}
graphicspath{{./Figures/}}
usepackage{subfig}
usepackage{floatrow}
usepackage{dsfont}
usepackage{float}
usepackage[margin=1in]{geometry}
usepackage{fancyhdr}
usepackage{titlesec}
usepackage{algorithmic}
usepackage{algorithm}
usepackage{slashbox}
usepackage{subcaption}
usepackage[showframe]{geometry}
def hfillx {hspace*{-textwidth} hfill}
begin{document}
begin{table}[htb]
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
tiny
begin{tabular}{c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
It gives me the following result:

I lose Caption 1 completely and the tables are not side-by-side. I tried to apply the answers from the related threads, but I can't seem to find where I am going wrong. How do I do them side by side?
tables subfloats subcaption
tables subfloats subcaption
edited Jan 2 at 20:17
A Doe
asked Jan 2 at 19:41
A DoeA Doe
133
133
1
You're missing the second mandatory argument ofsubtableso your example code does not compile but instead show the error message:! Missing number, treated as zero.The correct usage isbegin{subtable}{<width>}with<width>={.5textwidth}or any other length of your choice.
– leandriis
Jan 2 at 19:47
I had the {.5textwidth} command but when I typeset it, it doesn't see {.5textwidth} as a command. It just prints .5 on the screen just before the tables. I edited the question accordingly.
– A Doe
Jan 2 at 20:05
1
Please make a minimal working example (MWE) that represents the described behaviour. If I complete the code you posted with the documentclassarticleand a) the above described width, the desired layout is produced. If I complete the code b) without the width the above described error occurs. That said, I am not able to reproduce either of the outputs in your screenshots.
– leandriis
Jan 2 at 20:09
I am editing the question accordingly now.
– A Doe
Jan 2 at 20:11
I created a small file that only has the table and its output. All my packages are on the example now.
– A Doe
Jan 2 at 20:18
|
show 3 more comments
1
You're missing the second mandatory argument ofsubtableso your example code does not compile but instead show the error message:! Missing number, treated as zero.The correct usage isbegin{subtable}{<width>}with<width>={.5textwidth}or any other length of your choice.
– leandriis
Jan 2 at 19:47
I had the {.5textwidth} command but when I typeset it, it doesn't see {.5textwidth} as a command. It just prints .5 on the screen just before the tables. I edited the question accordingly.
– A Doe
Jan 2 at 20:05
1
Please make a minimal working example (MWE) that represents the described behaviour. If I complete the code you posted with the documentclassarticleand a) the above described width, the desired layout is produced. If I complete the code b) without the width the above described error occurs. That said, I am not able to reproduce either of the outputs in your screenshots.
– leandriis
Jan 2 at 20:09
I am editing the question accordingly now.
– A Doe
Jan 2 at 20:11
I created a small file that only has the table and its output. All my packages are on the example now.
– A Doe
Jan 2 at 20:18
1
1
You're missing the second mandatory argument of
subtable so your example code does not compile but instead show the error message: ! Missing number, treated as zero. The correct usage is begin{subtable}{<width>} with <width>= {.5textwidth} or any other length of your choice.– leandriis
Jan 2 at 19:47
You're missing the second mandatory argument of
subtable so your example code does not compile but instead show the error message: ! Missing number, treated as zero. The correct usage is begin{subtable}{<width>} with <width>= {.5textwidth} or any other length of your choice.– leandriis
Jan 2 at 19:47
I had the {.5textwidth} command but when I typeset it, it doesn't see {.5textwidth} as a command. It just prints .5 on the screen just before the tables. I edited the question accordingly.
– A Doe
Jan 2 at 20:05
I had the {.5textwidth} command but when I typeset it, it doesn't see {.5textwidth} as a command. It just prints .5 on the screen just before the tables. I edited the question accordingly.
– A Doe
Jan 2 at 20:05
1
1
Please make a minimal working example (MWE) that represents the described behaviour. If I complete the code you posted with the documentclass
article and a) the above described width, the desired layout is produced. If I complete the code b) without the width the above described error occurs. That said, I am not able to reproduce either of the outputs in your screenshots.– leandriis
Jan 2 at 20:09
Please make a minimal working example (MWE) that represents the described behaviour. If I complete the code you posted with the documentclass
article and a) the above described width, the desired layout is produced. If I complete the code b) without the width the above described error occurs. That said, I am not able to reproduce either of the outputs in your screenshots.– leandriis
Jan 2 at 20:09
I am editing the question accordingly now.
– A Doe
Jan 2 at 20:11
I am editing the question accordingly now.
– A Doe
Jan 2 at 20:11
I created a small file that only has the table and its output. All my packages are on the example now.
– A Doe
Jan 2 at 20:18
I created a small file that only has the table and its output. All my packages are on the example now.
– A Doe
Jan 2 at 20:18
|
show 3 more comments
1 Answer
1
active
oldest
votes
assuming that you like to have sub captions for each table ....
documentclass[preprint,12pt]{elsarticle}
usepackage[showframe]{geometry}
usepackage{subcaption}
begin{document}
begin{table}[htb]
setlengthtabcolsep{0pt}
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular*}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular*}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
gives

however, your mwe has problems with preamble. you cannot use in the subfig and subcaption in the same document. delete subfig package. and use the package geometry only once, if you really needed 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%2f468308%2ftwo-tables-side-by-side-without-losing-caption%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
assuming that you like to have sub captions for each table ....
documentclass[preprint,12pt]{elsarticle}
usepackage[showframe]{geometry}
usepackage{subcaption}
begin{document}
begin{table}[htb]
setlengthtabcolsep{0pt}
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular*}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular*}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
gives

however, your mwe has problems with preamble. you cannot use in the subfig and subcaption in the same document. delete subfig package. and use the package geometry only once, if you really needed it.
add a comment |
assuming that you like to have sub captions for each table ....
documentclass[preprint,12pt]{elsarticle}
usepackage[showframe]{geometry}
usepackage{subcaption}
begin{document}
begin{table}[htb]
setlengthtabcolsep{0pt}
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular*}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular*}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
gives

however, your mwe has problems with preamble. you cannot use in the subfig and subcaption in the same document. delete subfig package. and use the package geometry only once, if you really needed it.
add a comment |
assuming that you like to have sub captions for each table ....
documentclass[preprint,12pt]{elsarticle}
usepackage[showframe]{geometry}
usepackage{subcaption}
begin{document}
begin{table}[htb]
setlengthtabcolsep{0pt}
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular*}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular*}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
gives

however, your mwe has problems with preamble. you cannot use in the subfig and subcaption in the same document. delete subfig package. and use the package geometry only once, if you really needed it.
assuming that you like to have sub captions for each table ....
documentclass[preprint,12pt]{elsarticle}
usepackage[showframe]{geometry}
usepackage{subcaption}
begin{document}
begin{table}[htb]
setlengthtabcolsep{0pt}
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.31 & 0.48 & 2.00 & 1.38 \
2 & 0.32 & 0.49 & - & 1.36 \
3 & 0.26 & 0.44 & 1.57 & 1.50\
4 & 0.25 & 0.41 & 2.00 & 1.47 \
hline
end{tabular*}
caption{Caption1 that is long}
label{subtable:pr1rnn}
end{subtable}%
begin{subtable}{.5textwidth}
centering
begin{tabular*}{0.9linewidth}{@{extracolsep{fill}}c c c c c}
Cluster & MAE & MSE & E[over] & E[under] \
hline
1 & 0.40 & 0.59 & 1.50 & 1.28 \
2 & 0.51 & 0.82 & 1.44 & 1.44 \
3 & 0.53 & 0.77 & 1.31 & 1.31 \
4 & 0.41 & 0.62 & 1.88 & 1.28 \
hline
end{tabular*}
caption{Caption2 that is long}
label{subtable:pr2rfres}
end{subtable}
end{table}
end{document}
gives

however, your mwe has problems with preamble. you cannot use in the subfig and subcaption in the same document. delete subfig package. and use the package geometry only once, if you really needed it.
answered Jan 2 at 20:33
ZarkoZarko
122k865158
122k865158
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%2f468308%2ftwo-tables-side-by-side-without-losing-caption%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
1
You're missing the second mandatory argument of
subtableso your example code does not compile but instead show the error message:! Missing number, treated as zero.The correct usage isbegin{subtable}{<width>}with<width>={.5textwidth}or any other length of your choice.– leandriis
Jan 2 at 19:47
I had the {.5textwidth} command but when I typeset it, it doesn't see {.5textwidth} as a command. It just prints .5 on the screen just before the tables. I edited the question accordingly.
– A Doe
Jan 2 at 20:05
1
Please make a minimal working example (MWE) that represents the described behaviour. If I complete the code you posted with the documentclass
articleand a) the above described width, the desired layout is produced. If I complete the code b) without the width the above described error occurs. That said, I am not able to reproduce either of the outputs in your screenshots.– leandriis
Jan 2 at 20:09
I am editing the question accordingly now.
– A Doe
Jan 2 at 20:11
I created a small file that only has the table and its output. All my packages are on the example now.
– A Doe
Jan 2 at 20:18