Misplaced omit.multispan ->omit@multispan. I expect to see omit only after tab marks or the cr of an...












3















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}









share|improve this question

























  • You can't use bigskip before a multicolumn.

    – Ulrike Fischer
    Mar 11 at 10:54






  • 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
    Mar 11 at 14:42
















3















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}









share|improve this question

























  • You can't use bigskip before a multicolumn.

    – Ulrike Fischer
    Mar 11 at 10:54






  • 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
    Mar 11 at 14:42














3












3








3








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}









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 11 at 10:26









JouleV

6,68521951




6,68521951










asked Mar 11 at 10:22









Andrea MazzoranAndrea Mazzoran

184




184













  • You can't use bigskip before a multicolumn.

    – Ulrike Fischer
    Mar 11 at 10:54






  • 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
    Mar 11 at 14:42



















  • You can't use bigskip before a multicolumn.

    – Ulrike Fischer
    Mar 11 at 10:54






  • 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
    Mar 11 at 14:42

















You can't use bigskip before a multicolumn.

– Ulrike Fischer
Mar 11 at 10:54





You can't use bigskip before a multicolumn.

– Ulrike Fischer
Mar 11 at 10:54




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
Mar 11 at 14:42





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
Mar 11 at 14:42










2 Answers
2






active

oldest

votes


















2














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 the booktabs 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}





share|improve this answer


























  • 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
    Mar 11 at 17:18













  • @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
    Mar 11 at 17:27











  • That was EXACTLY what I was looking for, thanks again, you are a master!

    – Andrea Mazzoran
    Mar 12 at 18:21











  • @AndreaMazzoran You're welcome!

    – samcarter
    Mar 12 at 18:23



















5














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



enter image description here



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.



enter image description here



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}


enter image description here



Removing boldface is good, the additional vertical space is not really important.






share|improve this answer
























  • 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
    Mar 11 at 17:20











  • @AndreaMazzoran Are you sure this doesn't hinder readability?

    – egreg
    Mar 11 at 18:07











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
});


}
});














draft saved

draft discarded


















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









2














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 the booktabs 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}





share|improve this answer


























  • 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
    Mar 11 at 17:18













  • @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
    Mar 11 at 17:27











  • That was EXACTLY what I was looking for, thanks again, you are a master!

    – Andrea Mazzoran
    Mar 12 at 18:21











  • @AndreaMazzoran You're welcome!

    – samcarter
    Mar 12 at 18:23
















2














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 the booktabs 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}





share|improve this answer


























  • 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
    Mar 11 at 17:18













  • @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
    Mar 11 at 17:27











  • That was EXACTLY what I was looking for, thanks again, you are a master!

    – Andrea Mazzoran
    Mar 12 at 18:21











  • @AndreaMazzoran You're welcome!

    – samcarter
    Mar 12 at 18:23














2












2








2







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 the booktabs 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}





share|improve this answer















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 the booktabs 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}






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 11 at 10:39

























answered Mar 11 at 10:29









samcartersamcarter

92.2k7105298




92.2k7105298













  • 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
    Mar 11 at 17:18













  • @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
    Mar 11 at 17:27











  • That was EXACTLY what I was looking for, thanks again, you are a master!

    – Andrea Mazzoran
    Mar 12 at 18:21











  • @AndreaMazzoran You're welcome!

    – samcarter
    Mar 12 at 18:23



















  • 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
    Mar 11 at 17:18













  • @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
    Mar 11 at 17:27











  • That was EXACTLY what I was looking for, thanks again, you are a master!

    – Andrea Mazzoran
    Mar 12 at 18:21











  • @AndreaMazzoran You're welcome!

    – samcarter
    Mar 12 at 18:23

















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
Mar 11 at 17:18







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
Mar 11 at 17:18















@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
Mar 11 at 17:27





@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
Mar 11 at 17:27













That was EXACTLY what I was looking for, thanks again, you are a master!

– Andrea Mazzoran
Mar 12 at 18:21





That was EXACTLY what I was looking for, thanks again, you are a master!

– Andrea Mazzoran
Mar 12 at 18:21













@AndreaMazzoran You're welcome!

– samcarter
Mar 12 at 18:23





@AndreaMazzoran You're welcome!

– samcarter
Mar 12 at 18:23











5














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



enter image description here



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.



enter image description here



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}


enter image description here



Removing boldface is good, the additional vertical space is not really important.






share|improve this answer
























  • 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
    Mar 11 at 17:20











  • @AndreaMazzoran Are you sure this doesn't hinder readability?

    – egreg
    Mar 11 at 18:07
















5














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



enter image description here



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.



enter image description here



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}


enter image description here



Removing boldface is good, the additional vertical space is not really important.






share|improve this answer
























  • 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
    Mar 11 at 17:20











  • @AndreaMazzoran Are you sure this doesn't hinder readability?

    – egreg
    Mar 11 at 18:07














5












5








5







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



enter image description here



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.



enter image description here



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}


enter image description here



Removing boldface is good, the additional vertical space is not really important.






share|improve this answer













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



enter image description here



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.



enter image description here



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}


enter image description here



Removing boldface is good, the additional vertical space is not really important.







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 11 at 11:54









egregegreg

727k8819233233




727k8819233233













  • 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
    Mar 11 at 17:20











  • @AndreaMazzoran Are you sure this doesn't hinder readability?

    – egreg
    Mar 11 at 18:07



















  • 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
    Mar 11 at 17:20











  • @AndreaMazzoran Are you sure this doesn't hinder readability?

    – egreg
    Mar 11 at 18:07

















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
Mar 11 at 17:20





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
Mar 11 at 17:20













@AndreaMazzoran Are you sure this doesn't hinder readability?

– egreg
Mar 11 at 18:07





@AndreaMazzoran Are you sure this doesn't hinder readability?

– egreg
Mar 11 at 18:07


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

Can I use Tabulator js library in my java Spring + Thymeleaf project?