How to remove additional spaces in table in latex
I am using the following code to generate a table.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-{$newline$}
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
&
0%{$newline$}
-{$newline$}
-{$newline$}
&
100%{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
end{tabular}
label{table1}
end{table}
end{document}
However, as shown in the figure below there are empty spaces (highlighted in yellow). I am just wondering if there is a way to remove those extra lines from the table?
I am happy to provide any other details if needed :)
tables tex-core
New contributor
|
show 2 more comments
I am using the following code to generate a table.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-{$newline$}
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
&
0%{$newline$}
-{$newline$}
-{$newline$}
&
100%{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
end{tabular}
label{table1}
end{table}
end{document}
However, as shown in the figure below there are empty spaces (highlighted in yellow). I am just wondering if there is a way to remove those extra lines from the table?
I am happy to provide any other details if needed :)
tables tex-core
New contributor
Can you please provide us with a compilable document? When I compile your table with preambledocumentclass[12pt]{article} usepackage{amssymb}
I do not get such large spaces,
– marmot
2 hours ago
@marmot I am using the following document classdocumentclass[acmsmall]{acmart}
– Emi
1 hour ago
Please add this (as well asbegin{document}
andend{document}
) to your above code such that people have a complete example to play with.
– marmot
1 hour ago
@marmot Sure, I will add those details. By the way I am getting the same output in the following documentclasses as well;documentclass[smallextended]{svjour3}
anddocumentclass[jou,apacite]{apa6}
– Emi
1 hour ago
2
Possible duplicate of Removing extra space after itemize environment in longtable in memoir
– Henri Menke
1 hour ago
|
show 2 more comments
I am using the following code to generate a table.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-{$newline$}
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
&
0%{$newline$}
-{$newline$}
-{$newline$}
&
100%{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
end{tabular}
label{table1}
end{table}
end{document}
However, as shown in the figure below there are empty spaces (highlighted in yellow). I am just wondering if there is a way to remove those extra lines from the table?
I am happy to provide any other details if needed :)
tables tex-core
New contributor
I am using the following code to generate a table.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-{$newline$}
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
&
0%{$newline$}
-{$newline$}
-{$newline$}
&
100%{$newline$}
checkmark{$newline$}
checkmark{$newline$}
\
hline
end{tabular}
label{table1}
end{table}
end{document}
However, as shown in the figure below there are empty spaces (highlighted in yellow). I am just wondering if there is a way to remove those extra lines from the table?
I am happy to provide any other details if needed :)
tables tex-core
tables tex-core
New contributor
New contributor
edited 1 hour ago
Emi
New contributor
asked 2 hours ago
EmiEmi
304
304
New contributor
New contributor
Can you please provide us with a compilable document? When I compile your table with preambledocumentclass[12pt]{article} usepackage{amssymb}
I do not get such large spaces,
– marmot
2 hours ago
@marmot I am using the following document classdocumentclass[acmsmall]{acmart}
– Emi
1 hour ago
Please add this (as well asbegin{document}
andend{document}
) to your above code such that people have a complete example to play with.
– marmot
1 hour ago
@marmot Sure, I will add those details. By the way I am getting the same output in the following documentclasses as well;documentclass[smallextended]{svjour3}
anddocumentclass[jou,apacite]{apa6}
– Emi
1 hour ago
2
Possible duplicate of Removing extra space after itemize environment in longtable in memoir
– Henri Menke
1 hour ago
|
show 2 more comments
Can you please provide us with a compilable document? When I compile your table with preambledocumentclass[12pt]{article} usepackage{amssymb}
I do not get such large spaces,
– marmot
2 hours ago
@marmot I am using the following document classdocumentclass[acmsmall]{acmart}
– Emi
1 hour ago
Please add this (as well asbegin{document}
andend{document}
) to your above code such that people have a complete example to play with.
– marmot
1 hour ago
@marmot Sure, I will add those details. By the way I am getting the same output in the following documentclasses as well;documentclass[smallextended]{svjour3}
anddocumentclass[jou,apacite]{apa6}
– Emi
1 hour ago
2
Possible duplicate of Removing extra space after itemize environment in longtable in memoir
– Henri Menke
1 hour ago
Can you please provide us with a compilable document? When I compile your table with preamble
documentclass[12pt]{article} usepackage{amssymb}
I do not get such large spaces,– marmot
2 hours ago
Can you please provide us with a compilable document? When I compile your table with preamble
documentclass[12pt]{article} usepackage{amssymb}
I do not get such large spaces,– marmot
2 hours ago
@marmot I am using the following document class
documentclass[acmsmall]{acmart}
– Emi
1 hour ago
@marmot I am using the following document class
documentclass[acmsmall]{acmart}
– Emi
1 hour ago
Please add this (as well as
begin{document}
and end{document}
) to your above code such that people have a complete example to play with.– marmot
1 hour ago
Please add this (as well as
begin{document}
and end{document}
) to your above code such that people have a complete example to play with.– marmot
1 hour ago
@marmot Sure, I will add those details. By the way I am getting the same output in the following documentclasses as well;
documentclass[smallextended]{svjour3}
and documentclass[jou,apacite]{apa6}
– Emi
1 hour ago
@marmot Sure, I will add those details. By the way I am getting the same output in the following documentclasses as well;
documentclass[smallextended]{svjour3}
and documentclass[jou,apacite]{apa6}
– Emi
1 hour ago
2
2
Possible duplicate of Removing extra space after itemize environment in longtable in memoir
– Henri Menke
1 hour ago
Possible duplicate of Removing extra space after itemize environment in longtable in memoir
– Henri Menke
1 hour ago
|
show 2 more comments
2 Answers
2
active
oldest
votes
Put vspace*{-baselineskip}
after each itemize and remove the last {$newline$}
of each column.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
0%{$newline$}
-{$newline$}
-
&
100%{$newline$}
checkmark{$newline$}
checkmark
\
hline
end{tabular}
label{table1}
end{table}
end{document}
Here is a proposal how to format this table in a bit more appealing manner.
documentclass[acmsmall]{acmart}
usepackage{booktabs}
begin{document}
begin{table}[!t]
caption{Some text}
centering
begin{tabular}{@{}lcc@{}}
toprule
textbf{Some text} & textbf{Some text} & textbf{Some text} \
midrule
textbf{Some text:} & 43% & 57% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text} & 25% & 75% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text:} & 0% & 100% \
Some text & --- & checkmark \
Some text & --- & checkmark \
bottomrule
end{tabular}
label{table1}
end{table}
end{document}
add a comment |
Two suggestions:
Encase each
itemize
environment in a top-alignedminipage
environmentomit the final
{$newline$}
directive in each group
Optional: remove the instruction renewcommand{arraystretch}{1.3}
and add setlengthextrarowheight{2pt}
.
documentclass[acmsmall]{acmart}
usepackage{array}
%usepackage{enumitem}
%setlist[itemize]{nosep}
begin{document}
begin{table}[!t]
%renewcommand{arraystretch}{1.3}
setlengthextrarowheight{2pt}
caption{Some text}
label{table1}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text}
\ hline
%% 1st group
textbf{Some text:} & 43% & 57% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 2nd group
textbf{Some text} & 25% & 75%\
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 3rd group
textbf{Some text:} & 0% & 100% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
end{itemize}
end{minipage}
&
--{$newline$}
--%{$newline$}
&
checkmark{$newline$}
checkmark%{$newline$}
\ hline
end{tabular}
end{table}
end{document}
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
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
});
}
});
Emi 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%2f470476%2fhow-to-remove-additional-spaces-in-table-in-latex%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
Put vspace*{-baselineskip}
after each itemize and remove the last {$newline$}
of each column.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
0%{$newline$}
-{$newline$}
-
&
100%{$newline$}
checkmark{$newline$}
checkmark
\
hline
end{tabular}
label{table1}
end{table}
end{document}
Here is a proposal how to format this table in a bit more appealing manner.
documentclass[acmsmall]{acmart}
usepackage{booktabs}
begin{document}
begin{table}[!t]
caption{Some text}
centering
begin{tabular}{@{}lcc@{}}
toprule
textbf{Some text} & textbf{Some text} & textbf{Some text} \
midrule
textbf{Some text:} & 43% & 57% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text} & 25% & 75% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text:} & 0% & 100% \
Some text & --- & checkmark \
Some text & --- & checkmark \
bottomrule
end{tabular}
label{table1}
end{table}
end{document}
add a comment |
Put vspace*{-baselineskip}
after each itemize and remove the last {$newline$}
of each column.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
0%{$newline$}
-{$newline$}
-
&
100%{$newline$}
checkmark{$newline$}
checkmark
\
hline
end{tabular}
label{table1}
end{table}
end{document}
Here is a proposal how to format this table in a bit more appealing manner.
documentclass[acmsmall]{acmart}
usepackage{booktabs}
begin{document}
begin{table}[!t]
caption{Some text}
centering
begin{tabular}{@{}lcc@{}}
toprule
textbf{Some text} & textbf{Some text} & textbf{Some text} \
midrule
textbf{Some text:} & 43% & 57% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text} & 25% & 75% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text:} & 0% & 100% \
Some text & --- & checkmark \
Some text & --- & checkmark \
bottomrule
end{tabular}
label{table1}
end{table}
end{document}
add a comment |
Put vspace*{-baselineskip}
after each itemize and remove the last {$newline$}
of each column.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
0%{$newline$}
-{$newline$}
-
&
100%{$newline$}
checkmark{$newline$}
checkmark
\
hline
end{tabular}
label{table1}
end{table}
end{document}
Here is a proposal how to format this table in a bit more appealing manner.
documentclass[acmsmall]{acmart}
usepackage{booktabs}
begin{document}
begin{table}[!t]
caption{Some text}
centering
begin{tabular}{@{}lcc@{}}
toprule
textbf{Some text} & textbf{Some text} & textbf{Some text} \
midrule
textbf{Some text:} & 43% & 57% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text} & 25% & 75% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text:} & 0% & 100% \
Some text & --- & checkmark \
Some text & --- & checkmark \
bottomrule
end{tabular}
label{table1}
end{table}
end{document}
Put vspace*{-baselineskip}
after each itemize and remove the last {$newline$}
of each column.
documentclass[acmsmall]{acmart}
begin{document}
begin{table}[!t]
renewcommand{arraystretch}{1.3}
caption{Some text}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text} \
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
43%{$newline$}
checkmark{$newline$}
-{$newline$}
-
&
57%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
25%{$newline$}
checkmark{$newline$}
-{$newline$}
-{$newline$}
-
&
75%{$newline$}
-{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark
\
hline
textbf{Some text:}
begin{itemize}
item Some text
item Some text
end{itemize}
vspace*{-baselineskip}
&
0%{$newline$}
-{$newline$}
-
&
100%{$newline$}
checkmark{$newline$}
checkmark
\
hline
end{tabular}
label{table1}
end{table}
end{document}
Here is a proposal how to format this table in a bit more appealing manner.
documentclass[acmsmall]{acmart}
usepackage{booktabs}
begin{document}
begin{table}[!t]
caption{Some text}
centering
begin{tabular}{@{}lcc@{}}
toprule
textbf{Some text} & textbf{Some text} & textbf{Some text} \
midrule
textbf{Some text:} & 43% & 57% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text} & 25% & 75% \
Some text & checkmark & --- \
Some text & --- & checkmark \
Some text & --- & checkmark \
Some text & --- & checkmark \
addlinespace
textbf{Some text:} & 0% & 100% \
Some text & --- & checkmark \
Some text & --- & checkmark \
bottomrule
end{tabular}
label{table1}
end{table}
end{document}
edited 1 hour ago
answered 1 hour ago
Henri MenkeHenri Menke
71k8157264
71k8157264
add a comment |
add a comment |
Two suggestions:
Encase each
itemize
environment in a top-alignedminipage
environmentomit the final
{$newline$}
directive in each group
Optional: remove the instruction renewcommand{arraystretch}{1.3}
and add setlengthextrarowheight{2pt}
.
documentclass[acmsmall]{acmart}
usepackage{array}
%usepackage{enumitem}
%setlist[itemize]{nosep}
begin{document}
begin{table}[!t]
%renewcommand{arraystretch}{1.3}
setlengthextrarowheight{2pt}
caption{Some text}
label{table1}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text}
\ hline
%% 1st group
textbf{Some text:} & 43% & 57% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 2nd group
textbf{Some text} & 25% & 75%\
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 3rd group
textbf{Some text:} & 0% & 100% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
end{itemize}
end{minipage}
&
--{$newline$}
--%{$newline$}
&
checkmark{$newline$}
checkmark%{$newline$}
\ hline
end{tabular}
end{table}
end{document}
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
add a comment |
Two suggestions:
Encase each
itemize
environment in a top-alignedminipage
environmentomit the final
{$newline$}
directive in each group
Optional: remove the instruction renewcommand{arraystretch}{1.3}
and add setlengthextrarowheight{2pt}
.
documentclass[acmsmall]{acmart}
usepackage{array}
%usepackage{enumitem}
%setlist[itemize]{nosep}
begin{document}
begin{table}[!t]
%renewcommand{arraystretch}{1.3}
setlengthextrarowheight{2pt}
caption{Some text}
label{table1}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text}
\ hline
%% 1st group
textbf{Some text:} & 43% & 57% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 2nd group
textbf{Some text} & 25% & 75%\
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 3rd group
textbf{Some text:} & 0% & 100% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
end{itemize}
end{minipage}
&
--{$newline$}
--%{$newline$}
&
checkmark{$newline$}
checkmark%{$newline$}
\ hline
end{tabular}
end{table}
end{document}
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
add a comment |
Two suggestions:
Encase each
itemize
environment in a top-alignedminipage
environmentomit the final
{$newline$}
directive in each group
Optional: remove the instruction renewcommand{arraystretch}{1.3}
and add setlengthextrarowheight{2pt}
.
documentclass[acmsmall]{acmart}
usepackage{array}
%usepackage{enumitem}
%setlist[itemize]{nosep}
begin{document}
begin{table}[!t]
%renewcommand{arraystretch}{1.3}
setlengthextrarowheight{2pt}
caption{Some text}
label{table1}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text}
\ hline
%% 1st group
textbf{Some text:} & 43% & 57% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 2nd group
textbf{Some text} & 25% & 75%\
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 3rd group
textbf{Some text:} & 0% & 100% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
end{itemize}
end{minipage}
&
--{$newline$}
--%{$newline$}
&
checkmark{$newline$}
checkmark%{$newline$}
\ hline
end{tabular}
end{table}
end{document}
Two suggestions:
Encase each
itemize
environment in a top-alignedminipage
environmentomit the final
{$newline$}
directive in each group
Optional: remove the instruction renewcommand{arraystretch}{1.3}
and add setlengthextrarowheight{2pt}
.
documentclass[acmsmall]{acmart}
usepackage{array}
%usepackage{enumitem}
%setlist[itemize]{nosep}
begin{document}
begin{table}[!t]
%renewcommand{arraystretch}{1.3}
setlengthextrarowheight{2pt}
caption{Some text}
label{table1}
centering
begin{tabular}{|p{8.3cm}|p{1.7cm}|p{1.7cm}|}
hline
textbf{Some text} & textbf{Some text} & textbf{Some text}
\ hline
%% 1st group
textbf{Some text:} & 43% & 57% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 2nd group
textbf{Some text} & 25% & 75%\
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
item Some text
item Some text
end{itemize}
end{minipage}
&
checkmark{$newline$}
--{$newline$}
--{$newline$}
--%{$newline$}
&
--{$newline$}
checkmark{$newline$}
checkmark{$newline$}
checkmark%{$newline$}
\ hline
%% 3rd group
textbf{Some text:} & 0% & 100% \
begin{minipage}[t]{hsize}
begin{itemize}
item Some text
item Some text
end{itemize}
end{minipage}
&
--{$newline$}
--%{$newline$}
&
checkmark{$newline$}
checkmark%{$newline$}
\ hline
end{tabular}
end{table}
end{document}
answered 1 hour ago
MicoMico
275k30372760
275k30372760
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
add a comment |
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
Nice answer. I really like it. Thank you. :)
– Emi
1 hour ago
add a comment |
Emi is a new contributor. Be nice, and check out our Code of Conduct.
Emi is a new contributor. Be nice, and check out our Code of Conduct.
Emi is a new contributor. Be nice, and check out our Code of Conduct.
Emi 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%2f470476%2fhow-to-remove-additional-spaces-in-table-in-latex%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
Can you please provide us with a compilable document? When I compile your table with preamble
documentclass[12pt]{article} usepackage{amssymb}
I do not get such large spaces,– marmot
2 hours ago
@marmot I am using the following document class
documentclass[acmsmall]{acmart}
– Emi
1 hour ago
Please add this (as well as
begin{document}
andend{document}
) to your above code such that people have a complete example to play with.– marmot
1 hour ago
@marmot Sure, I will add those details. By the way I am getting the same output in the following documentclasses as well;
documentclass[smallextended]{svjour3}
anddocumentclass[jou,apacite]{apa6}
– Emi
1 hour ago
2
Possible duplicate of Removing extra space after itemize environment in longtable in memoir
– Henri Menke
1 hour ago