In a Latex Table, how can I automatically resize cell heights to account for superscripts?Paragraph column in...
How to improve/restore vintage Peugeot bike, or is it even worth it?
Reconstruct a matrix from its traces
What was the state of the German rail system in 1944?
Can I get a paladin's steed by True Polymorphing into a monster that can cast Find Steed?
Moving the subject of the sentence into a dangling participle
Do I really need diodes to receive MIDI?
If prion is a protein. Why is it not disassembled by the digestive system?
How can I support myself financially as a 17 year old with a loan?
How can I get a job without pushing my family's income into a higher tax bracket?
Is there a legal ground for stripping the UK of its UN Veto if Scotland and/or N.Ireland split from the UK?
Unknowingly ran an infinite loop in terminal
Casual versus formal jacket
Enumerate Derangements
What happens to the Time Stone
Is there a term for the words whose stress is on the first syllable?
Selecting a secure PIN for building access
Besides the up and down quark, what other quarks are present in daily matter around us?
Python password manager
In Avengers 1, why does Thanos need Loki?
Why wasn't the Night King naked in S08E03?
Do I have to make someone coauthor if he/she solves a problem in StackExchange, asked by myself, which is later used in my paper?
Accidentally deleted the "/usr/share" folder
What are the differences between credential stuffing and password spraying?
Missed the connecting flight, separate tickets on same airline - who is responsible?
In a Latex Table, how can I automatically resize cell heights to account for superscripts?
Paragraph column in tabular working only in the first columnHow do I prevent cellcolor from over effect of hlineTabular and grid typesettingGenerate automatic revision's numbering tabulartabu package - gaps in vertical linesVertically aligning fixed height tablesIncorrect vertical line spacing after changing font size in tableHow can I find the cell height in a tabular?Different vertical alignment of text in 4-column table (tabularx)Prevent spreading of words in: Left aligned, automatically wrapped text, in a table
I have the following table created using the H command from the float package. The main problem below is that the exponents are too close to the top of the cell. Is there a way to increase the cell-height automatically? Thank you for any suggestions.
usepackage(float)
begin{table}[H]
centering
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}

tables bibtex
add a comment |
I have the following table created using the H command from the float package. The main problem below is that the exponents are too close to the top of the cell. Is there a way to increase the cell-height automatically? Thank you for any suggestions.
usepackage(float)
begin{table}[H]
centering
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}

tables bibtex
add a comment |
I have the following table created using the H command from the float package. The main problem below is that the exponents are too close to the top of the cell. Is there a way to increase the cell-height automatically? Thank you for any suggestions.
usepackage(float)
begin{table}[H]
centering
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}

tables bibtex
I have the following table created using the H command from the float package. The main problem below is that the exponents are too close to the top of the cell. Is there a way to increase the cell-height automatically? Thank you for any suggestions.
usepackage(float)
begin{table}[H]
centering
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}

tables bibtex
tables bibtex
asked 3 hours ago
user321627user321627
1262
1262
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
The cellspace package is here for that! You can define minimal vertical spacing at the top and bottom of cells in columns with specifier prefixed with the letter S (or C if you load siunitx, as this package already defines an S column type). Demo:
documentclass{article}
%usepackage{array}
usepackage{float}
usepackage{cellspace}
setlengthcellspacetoplimit{4pt}
setlengthcellspacebottomlimit{3pt}
begin{document}
begin{table}[H]
centering
begin{tabular}{|Sc|Sc|Sc|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

add a comment |
alternatively, with makecell package :-)
documentclass{article}
usepackage{makecell}
setcellgapes{4pt}
begin{document}
begin{table}[htb]
centering
makegapedcells
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$
& Correct & Incorrect \
Estimate on $(X^A, X^B)$
& Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

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%2f488503%2fin-a-latex-table-how-can-i-automatically-resize-cell-heights-to-account-for-sup%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
The cellspace package is here for that! You can define minimal vertical spacing at the top and bottom of cells in columns with specifier prefixed with the letter S (or C if you load siunitx, as this package already defines an S column type). Demo:
documentclass{article}
%usepackage{array}
usepackage{float}
usepackage{cellspace}
setlengthcellspacetoplimit{4pt}
setlengthcellspacebottomlimit{3pt}
begin{document}
begin{table}[H]
centering
begin{tabular}{|Sc|Sc|Sc|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

add a comment |
The cellspace package is here for that! You can define minimal vertical spacing at the top and bottom of cells in columns with specifier prefixed with the letter S (or C if you load siunitx, as this package already defines an S column type). Demo:
documentclass{article}
%usepackage{array}
usepackage{float}
usepackage{cellspace}
setlengthcellspacetoplimit{4pt}
setlengthcellspacebottomlimit{3pt}
begin{document}
begin{table}[H]
centering
begin{tabular}{|Sc|Sc|Sc|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

add a comment |
The cellspace package is here for that! You can define minimal vertical spacing at the top and bottom of cells in columns with specifier prefixed with the letter S (or C if you load siunitx, as this package already defines an S column type). Demo:
documentclass{article}
%usepackage{array}
usepackage{float}
usepackage{cellspace}
setlengthcellspacetoplimit{4pt}
setlengthcellspacebottomlimit{3pt}
begin{document}
begin{table}[H]
centering
begin{tabular}{|Sc|Sc|Sc|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

The cellspace package is here for that! You can define minimal vertical spacing at the top and bottom of cells in columns with specifier prefixed with the letter S (or C if you load siunitx, as this package already defines an S column type). Demo:
documentclass{article}
%usepackage{array}
usepackage{float}
usepackage{cellspace}
setlengthcellspacetoplimit{4pt}
setlengthcellspacebottomlimit{3pt}
begin{document}
begin{table}[H]
centering
begin{tabular}{|Sc|Sc|Sc|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$ & Correct & Incorrect \
Estimate on $(X^A, X^B)$ & Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

answered 3 hours ago
BernardBernard
178k779211
178k779211
add a comment |
add a comment |
alternatively, with makecell package :-)
documentclass{article}
usepackage{makecell}
setcellgapes{4pt}
begin{document}
begin{table}[htb]
centering
makegapedcells
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$
& Correct & Incorrect \
Estimate on $(X^A, X^B)$
& Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

add a comment |
alternatively, with makecell package :-)
documentclass{article}
usepackage{makecell}
setcellgapes{4pt}
begin{document}
begin{table}[htb]
centering
makegapedcells
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$
& Correct & Incorrect \
Estimate on $(X^A, X^B)$
& Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

add a comment |
alternatively, with makecell package :-)
documentclass{article}
usepackage{makecell}
setcellgapes{4pt}
begin{document}
begin{table}[htb]
centering
makegapedcells
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$
& Correct & Incorrect \
Estimate on $(X^A, X^B)$
& Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

alternatively, with makecell package :-)
documentclass{article}
usepackage{makecell}
setcellgapes{4pt}
begin{document}
begin{table}[htb]
centering
makegapedcells
begin{tabular}{|c|c|c|}
hline
& Compute on $X^A$ & Compute on $(X^A, X^B)$ \
hline
Estimate on $X^A$
& Correct & Incorrect \
Estimate on $(X^A, X^B)$
& Correct & Incorrect \
hline
end{tabular}
end{table}
end{document}

answered 2 hours ago
ZarkoZarko
132k871170
132k871170
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%2f488503%2fin-a-latex-table-how-can-i-automatically-resize-cell-heights-to-account-for-sup%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