Misplaced omit.multispan ->omit@multispan. I expect to see omit only after tab marks or the cr of an...
I made this table that after compiling works properly but I got the message above: can anyone please help me in order to understand what is wrong?
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
bigskip
multicolumn{1}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
tables beamer
New contributor
add a comment |
I made this table that after compiling works properly but I got the message above: can anyone please help me in order to understand what is wrong?
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
bigskip
multicolumn{1}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
tables beamer
New contributor
You can't use bigskip before a multicolumn.
– Ulrike Fischer
17 hours ago
1
Off-topic(ish), but if each parameter only corresponds to one row, it might be better to not have the table at all. I feel like one of the main points of the table would be to allow you to compare different entries in the same column, and that isn't applicable if each column only has a single row.
– Teepeemm
13 hours ago
add a comment |
I made this table that after compiling works properly but I got the message above: can anyone please help me in order to understand what is wrong?
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
bigskip
multicolumn{1}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
tables beamer
New contributor
I made this table that after compiling works properly but I got the message above: can anyone please help me in order to understand what is wrong?
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
bigskip
multicolumn{1}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
tables beamer
tables beamer
New contributor
New contributor
edited 18 hours ago
JouleV
5,16511239
5,16511239
New contributor
asked 18 hours ago
Andrea MazzoranAndrea Mazzoran
183
183
New contributor
New contributor
You can't use bigskip before a multicolumn.
– Ulrike Fischer
17 hours ago
1
Off-topic(ish), but if each parameter only corresponds to one row, it might be better to not have the table at all. I feel like one of the main points of the table would be to allow you to compare different entries in the same column, and that isn't applicable if each column only has a single row.
– Teepeemm
13 hours ago
add a comment |
You can't use bigskip before a multicolumn.
– Ulrike Fischer
17 hours ago
1
Off-topic(ish), but if each parameter only corresponds to one row, it might be better to not have the table at all. I feel like one of the main points of the table would be to allow you to compare different entries in the same column, and that isn't applicable if each column only has a single row.
– Teepeemm
13 hours ago
You can't use bigskip before a multicolumn.
– Ulrike Fischer
17 hours ago
You can't use bigskip before a multicolumn.
– Ulrike Fischer
17 hours ago
1
1
Off-topic(ish), but if each parameter only corresponds to one row, it might be better to not have the table at all. I feel like one of the main points of the table would be to allow you to compare different entries in the same column, and that isn't applicable if each column only has a single row.
– Teepeemm
13 hours ago
Off-topic(ish), but if each parameter only corresponds to one row, it might be better to not have the table at all. I feel like one of the main points of the table would be to allow you to compare different entries in the same column, and that isn't applicable if each column only has a single row.
– Teepeemm
13 hours ago
add a comment |
2 Answers
2
active
oldest
votes
Two problems:
your first row only has 1+4=5 columns, while your table has 6 columns
instead of trying to add skips, I suggest to use
addlinespace
from thebooktabs
package
Not strictly speaking a problem, but with 0,13
the spacing around the ,
will most likely be wrong. I suggest to have a look at the siunitx
package
documentclass{beamer}
begin{document}
begin{frame}
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
% bigskip
multicolumn{2}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
% medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
end{frame}
end{document}
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
add a comment |
Sorry, but medskip
does not do what you expect to.
Consider the simple example
documentclass{article}
begin{document}
begin{tabular}{cc}
hline
a & b \
hline
medskip
c & d \
hline
end{tabular}qquad
begin{tabular}{cc}
hline
a & b \
hline
c & d \
hline
end{tabular}
end{document}
and its output
As you see, the vertical space is added below the second row, not between the first and second row.
You want, instead, to use siunitx
and booktabs
:
documentclass{article}
usepackage{siunitx,booktabs,array}
begin{document}
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
midrule
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
midrule
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
bigskip
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
end{document}
I'd prefer to avoid as many horizontal rules as I can, so I showed also the table without the unnecessary ones.
The second table, with some added vertical space and no boldface:
begin{tabular}{
l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{Model} & multicolumn{5}{c}{Parameters}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
addlinespace
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
addlinespace
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
Removing boldface is good, the additional vertical space is not really important.
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours 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
});
}
});
Andrea Mazzoran 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%2f478868%2fmisplaced-omit-multispan-omit-multispan-i-expect-to-see-omit-only-after%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
Two problems:
your first row only has 1+4=5 columns, while your table has 6 columns
instead of trying to add skips, I suggest to use
addlinespace
from thebooktabs
package
Not strictly speaking a problem, but with 0,13
the spacing around the ,
will most likely be wrong. I suggest to have a look at the siunitx
package
documentclass{beamer}
begin{document}
begin{frame}
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
% bigskip
multicolumn{2}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
% medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
end{frame}
end{document}
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
add a comment |
Two problems:
your first row only has 1+4=5 columns, while your table has 6 columns
instead of trying to add skips, I suggest to use
addlinespace
from thebooktabs
package
Not strictly speaking a problem, but with 0,13
the spacing around the ,
will most likely be wrong. I suggest to have a look at the siunitx
package
documentclass{beamer}
begin{document}
begin{frame}
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
% bigskip
multicolumn{2}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
% medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
end{frame}
end{document}
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
add a comment |
Two problems:
your first row only has 1+4=5 columns, while your table has 6 columns
instead of trying to add skips, I suggest to use
addlinespace
from thebooktabs
package
Not strictly speaking a problem, but with 0,13
the spacing around the ,
will most likely be wrong. I suggest to have a look at the siunitx
package
documentclass{beamer}
begin{document}
begin{frame}
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
% bigskip
multicolumn{2}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
% medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
end{frame}
end{document}
Two problems:
your first row only has 1+4=5 columns, while your table has 6 columns
instead of trying to add skips, I suggest to use
addlinespace
from thebooktabs
package
Not strictly speaking a problem, but with 0,13
the spacing around the ,
will most likely be wrong. I suggest to have a look at the siunitx
package
documentclass{beamer}
begin{document}
begin{frame}
begin{tabular}{cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}}
% bigskip
multicolumn{2}{c}{largetextbf{underline{Model}}}&multicolumn{4}{c}{largetextbf{underline{Parameters}}}\
% medskip
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \ hline
medskip
textbf{Poisson} & - & - & - & $2,66times10^{-2}$ & - \ hline
medskip
textbf{ Hawkes} & close to 0 & 3.53 & 3.97 & - & - \ hline
medskip
textbf{Branching} & - & - & - & - & $0,13times10^{-2}$ \ hline
end{tabular}
end{frame}
end{document}
edited 17 hours ago
answered 17 hours ago
samcartersamcarter
90.9k7104294
90.9k7104294
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
add a comment |
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
Thanks for the info, now it works properly. Last things: if I want to preserve this setting but putting the data centering with respect to the column, what should I do? I try to change something in cp{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm}p{1.5cm} but it doesn't work...
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
@AndreaMazzoran Not sure if I understand your comment correctly, but if you are looking for centred p columns, this answer will help: tex.stackexchange.com/a/157400/36296
– samcarter
11 hours ago
add a comment |
Sorry, but medskip
does not do what you expect to.
Consider the simple example
documentclass{article}
begin{document}
begin{tabular}{cc}
hline
a & b \
hline
medskip
c & d \
hline
end{tabular}qquad
begin{tabular}{cc}
hline
a & b \
hline
c & d \
hline
end{tabular}
end{document}
and its output
As you see, the vertical space is added below the second row, not between the first and second row.
You want, instead, to use siunitx
and booktabs
:
documentclass{article}
usepackage{siunitx,booktabs,array}
begin{document}
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
midrule
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
midrule
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
bigskip
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
end{document}
I'd prefer to avoid as many horizontal rules as I can, so I showed also the table without the unnecessary ones.
The second table, with some added vertical space and no boldface:
begin{tabular}{
l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{Model} & multicolumn{5}{c}{Parameters}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
addlinespace
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
addlinespace
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
Removing boldface is good, the additional vertical space is not really important.
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours ago
add a comment |
Sorry, but medskip
does not do what you expect to.
Consider the simple example
documentclass{article}
begin{document}
begin{tabular}{cc}
hline
a & b \
hline
medskip
c & d \
hline
end{tabular}qquad
begin{tabular}{cc}
hline
a & b \
hline
c & d \
hline
end{tabular}
end{document}
and its output
As you see, the vertical space is added below the second row, not between the first and second row.
You want, instead, to use siunitx
and booktabs
:
documentclass{article}
usepackage{siunitx,booktabs,array}
begin{document}
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
midrule
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
midrule
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
bigskip
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
end{document}
I'd prefer to avoid as many horizontal rules as I can, so I showed also the table without the unnecessary ones.
The second table, with some added vertical space and no boldface:
begin{tabular}{
l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{Model} & multicolumn{5}{c}{Parameters}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
addlinespace
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
addlinespace
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
Removing boldface is good, the additional vertical space is not really important.
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours ago
add a comment |
Sorry, but medskip
does not do what you expect to.
Consider the simple example
documentclass{article}
begin{document}
begin{tabular}{cc}
hline
a & b \
hline
medskip
c & d \
hline
end{tabular}qquad
begin{tabular}{cc}
hline
a & b \
hline
c & d \
hline
end{tabular}
end{document}
and its output
As you see, the vertical space is added below the second row, not between the first and second row.
You want, instead, to use siunitx
and booktabs
:
documentclass{article}
usepackage{siunitx,booktabs,array}
begin{document}
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
midrule
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
midrule
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
bigskip
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
end{document}
I'd prefer to avoid as many horizontal rules as I can, so I showed also the table without the unnecessary ones.
The second table, with some added vertical space and no boldface:
begin{tabular}{
l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{Model} & multicolumn{5}{c}{Parameters}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
addlinespace
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
addlinespace
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
Removing boldface is good, the additional vertical space is not really important.
Sorry, but medskip
does not do what you expect to.
Consider the simple example
documentclass{article}
begin{document}
begin{tabular}{cc}
hline
a & b \
hline
medskip
c & d \
hline
end{tabular}qquad
begin{tabular}{cc}
hline
a & b \
hline
c & d \
hline
end{tabular}
end{document}
and its output
As you see, the vertical space is added below the second row, not between the first and second row.
You want, instead, to use siunitx
and booktabs
:
documentclass{article}
usepackage{siunitx,booktabs,array}
begin{document}
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
midrule
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
midrule
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
bigskip
begin{tabular}{
>{bfseries}l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{textbf{Model}} & multicolumn{5}{c}{textbf{Parameters}}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
end{document}
I'd prefer to avoid as many horizontal rules as I can, so I showed also the table without the unnecessary ones.
The second table, with some added vertical space and no boldface:
begin{tabular}{
l
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2]
S[table-format=1.2e-1]
S[table-format=1.2e-1]
}
toprule
multicolumn{1}{c}{Model} & multicolumn{5}{c}{Parameters}\
cmidrule(r){1-1} cmidrule(l){2-6}
& $mu$ & $alpha$ & $beta$ & $lambda_p$ & $lambda_b$ \
midrule
Poisson & {--} & {--} & {--} & 2,66e-2 & {--} \
addlinespace
Hawkes & {close to 0} & 3.53 & 3.97 & {--} & {--} \
addlinespace
Branching & {--} & {--} & {--} & {--} & 0,13e-2 \
bottomrule
end{tabular}
Removing boldface is good, the additional vertical space is not really important.
answered 16 hours ago
egregegreg
725k8819193226
725k8819193226
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours ago
add a comment |
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours ago
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
Thanks, this is far better looking than mine. Last thing: if I want my table to be a little be wider (i.e. more space between mu alpha beta ecc.) without messing up all the centering what do I have to change in the second code?
– Andrea Mazzoran
11 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours ago
@AndreaMazzoran Are you sure this doesn't hinder readability?
– egreg
10 hours ago
add a comment |
Andrea Mazzoran is a new contributor. Be nice, and check out our Code of Conduct.
Andrea Mazzoran is a new contributor. Be nice, and check out our Code of Conduct.
Andrea Mazzoran is a new contributor. Be nice, and check out our Code of Conduct.
Andrea Mazzoran 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%2f478868%2fmisplaced-omit-multispan-omit-multispan-i-expect-to-see-omit-only-after%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
You can't use bigskip before a multicolumn.
– Ulrike Fischer
17 hours ago
1
Off-topic(ish), but if each parameter only corresponds to one row, it might be better to not have the table at all. I feel like one of the main points of the table would be to allow you to compare different entries in the same column, and that isn't applicable if each column only has a single row.
– Teepeemm
13 hours ago