Small separation between columns
On the bottom you will find a minimal example of my code (perhaps a little bit too much packages).
My problem is that I would like to have a very small separation between each column. That's why I inserted a column with width 0.01cm, but somehow these columns are way larger.
Did I make a mistake with my definition or is there an easier way?
documentclass[letter,11pt,twoside]{article}
usepackage{tikz} usepackage{amsmath} usepackage{breqn}
usepackage{stmaryrd} usepackage{pdfpages} usepackage{pstricks}
usepackage{pst-plot} usepackage{pst-pdf} usepackage{multirow}
usepackage{subfig,rotating,longtable,lscape,geometry,layouts}
usepackage{rotating,tabularx} usepackage{verbatim} usepackage{placeins}
usepackage{listings} usepackage{float,mdwlist,enumerate} usepackage{etex}
usepackage{makecell} usepackage{float,mdwlist,enumitem} usepackage{siunitx} usepackage{dcolumn}
newcolumntype{d}[1]{D{.}{.}{#1}}
newcommand{muc}[2]{multicolumn{1}{C{#1}}{#2}}
newcommand{mucThree}[2]{multicolumn{3}{C{#1}}{#2}}
newcolumntype{P}[1]{>{centeringarraybackslash}p{dimexpr#1textwidth-2tabcolseprelax}}
newcolumntype{C}[1]{>{centeringarraybackslash}p{#1}}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular}{C{1.5cm}|p{0.01cm}|C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}}
&&&mucThree{3cm}{$c_{S_1}=18$} && mucThree{3cm}{$c_{S_1}=20$} &&mucThree{3cm}{$c_{S_1}=22$} \ cline{3-7} cline{9-13}
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ &&$Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ \
$c_{S_2}=18$ && 4208 && 4364 && 1,04 && 3934 && 4236 && 1,08 && 3819 && 4109 && 1,08
end{tabular}
end{table}
end{document}
tables columns
add a comment |
On the bottom you will find a minimal example of my code (perhaps a little bit too much packages).
My problem is that I would like to have a very small separation between each column. That's why I inserted a column with width 0.01cm, but somehow these columns are way larger.
Did I make a mistake with my definition or is there an easier way?
documentclass[letter,11pt,twoside]{article}
usepackage{tikz} usepackage{amsmath} usepackage{breqn}
usepackage{stmaryrd} usepackage{pdfpages} usepackage{pstricks}
usepackage{pst-plot} usepackage{pst-pdf} usepackage{multirow}
usepackage{subfig,rotating,longtable,lscape,geometry,layouts}
usepackage{rotating,tabularx} usepackage{verbatim} usepackage{placeins}
usepackage{listings} usepackage{float,mdwlist,enumerate} usepackage{etex}
usepackage{makecell} usepackage{float,mdwlist,enumitem} usepackage{siunitx} usepackage{dcolumn}
newcolumntype{d}[1]{D{.}{.}{#1}}
newcommand{muc}[2]{multicolumn{1}{C{#1}}{#2}}
newcommand{mucThree}[2]{multicolumn{3}{C{#1}}{#2}}
newcolumntype{P}[1]{>{centeringarraybackslash}p{dimexpr#1textwidth-2tabcolseprelax}}
newcolumntype{C}[1]{>{centeringarraybackslash}p{#1}}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular}{C{1.5cm}|p{0.01cm}|C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}}
&&&mucThree{3cm}{$c_{S_1}=18$} && mucThree{3cm}{$c_{S_1}=20$} &&mucThree{3cm}{$c_{S_1}=22$} \ cline{3-7} cline{9-13}
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ &&$Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ \
$c_{S_2}=18$ && 4208 && 4364 && 1,04 && 3934 && 4236 && 1,08 && 3819 && 4109 && 1,08
end{tabular}
end{table}
end{document}
tables columns
Why do you use all thouse fixed width columns? Would ac
type column not be sufficient as you don't seem to need line breaks in cells. Apart from that, you might want to remove all occurences ofC{0.01cm}
and usesetlength{tabcolsep}{3pt}
or anyl other length of your choice (default is 6pt).
– leandriis
Mar 21 at 9:56
add a comment |
On the bottom you will find a minimal example of my code (perhaps a little bit too much packages).
My problem is that I would like to have a very small separation between each column. That's why I inserted a column with width 0.01cm, but somehow these columns are way larger.
Did I make a mistake with my definition or is there an easier way?
documentclass[letter,11pt,twoside]{article}
usepackage{tikz} usepackage{amsmath} usepackage{breqn}
usepackage{stmaryrd} usepackage{pdfpages} usepackage{pstricks}
usepackage{pst-plot} usepackage{pst-pdf} usepackage{multirow}
usepackage{subfig,rotating,longtable,lscape,geometry,layouts}
usepackage{rotating,tabularx} usepackage{verbatim} usepackage{placeins}
usepackage{listings} usepackage{float,mdwlist,enumerate} usepackage{etex}
usepackage{makecell} usepackage{float,mdwlist,enumitem} usepackage{siunitx} usepackage{dcolumn}
newcolumntype{d}[1]{D{.}{.}{#1}}
newcommand{muc}[2]{multicolumn{1}{C{#1}}{#2}}
newcommand{mucThree}[2]{multicolumn{3}{C{#1}}{#2}}
newcolumntype{P}[1]{>{centeringarraybackslash}p{dimexpr#1textwidth-2tabcolseprelax}}
newcolumntype{C}[1]{>{centeringarraybackslash}p{#1}}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular}{C{1.5cm}|p{0.01cm}|C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}}
&&&mucThree{3cm}{$c_{S_1}=18$} && mucThree{3cm}{$c_{S_1}=20$} &&mucThree{3cm}{$c_{S_1}=22$} \ cline{3-7} cline{9-13}
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ &&$Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ \
$c_{S_2}=18$ && 4208 && 4364 && 1,04 && 3934 && 4236 && 1,08 && 3819 && 4109 && 1,08
end{tabular}
end{table}
end{document}
tables columns
On the bottom you will find a minimal example of my code (perhaps a little bit too much packages).
My problem is that I would like to have a very small separation between each column. That's why I inserted a column with width 0.01cm, but somehow these columns are way larger.
Did I make a mistake with my definition or is there an easier way?
documentclass[letter,11pt,twoside]{article}
usepackage{tikz} usepackage{amsmath} usepackage{breqn}
usepackage{stmaryrd} usepackage{pdfpages} usepackage{pstricks}
usepackage{pst-plot} usepackage{pst-pdf} usepackage{multirow}
usepackage{subfig,rotating,longtable,lscape,geometry,layouts}
usepackage{rotating,tabularx} usepackage{verbatim} usepackage{placeins}
usepackage{listings} usepackage{float,mdwlist,enumerate} usepackage{etex}
usepackage{makecell} usepackage{float,mdwlist,enumitem} usepackage{siunitx} usepackage{dcolumn}
newcolumntype{d}[1]{D{.}{.}{#1}}
newcommand{muc}[2]{multicolumn{1}{C{#1}}{#2}}
newcommand{mucThree}[2]{multicolumn{3}{C{#1}}{#2}}
newcolumntype{P}[1]{>{centeringarraybackslash}p{dimexpr#1textwidth-2tabcolseprelax}}
newcolumntype{C}[1]{>{centeringarraybackslash}p{#1}}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular}{C{1.5cm}|p{0.01cm}|C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}C{1.5cm}C{0.01cm}}
&&&mucThree{3cm}{$c_{S_1}=18$} && mucThree{3cm}{$c_{S_1}=20$} &&mucThree{3cm}{$c_{S_1}=22$} \ cline{3-7} cline{9-13}
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$
&& $Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ &&$Eleft[pi_R^{bar{c}}right]$ && $Eleft[pi_R^{c}right]$ && $Eleft[pi_R^{c}right]/Eleft[pi_R^{bar{c}}right]$ \
$c_{S_2}=18$ && 4208 && 4364 && 1,04 && 3934 && 4236 && 1,08 && 3819 && 4109 && 1,08
end{tabular}
end{table}
end{document}
tables columns
tables columns
edited Mar 21 at 17:30
CarLaTeX
34.3k552141
34.3k552141
asked Mar 21 at 9:18
AndreasAndreas
183
183
Why do you use all thouse fixed width columns? Would ac
type column not be sufficient as you don't seem to need line breaks in cells. Apart from that, you might want to remove all occurences ofC{0.01cm}
and usesetlength{tabcolsep}{3pt}
or anyl other length of your choice (default is 6pt).
– leandriis
Mar 21 at 9:56
add a comment |
Why do you use all thouse fixed width columns? Would ac
type column not be sufficient as you don't seem to need line breaks in cells. Apart from that, you might want to remove all occurences ofC{0.01cm}
and usesetlength{tabcolsep}{3pt}
or anyl other length of your choice (default is 6pt).
– leandriis
Mar 21 at 9:56
Why do you use all thouse fixed width columns? Would a
c
type column not be sufficient as you don't seem to need line breaks in cells. Apart from that, you might want to remove all occurences of C{0.01cm}
and use setlength{tabcolsep}{3pt}
or anyl other length of your choice (default is 6pt).– leandriis
Mar 21 at 9:56
Why do you use all thouse fixed width columns? Would a
c
type column not be sufficient as you don't seem to need line breaks in cells. Apart from that, you might want to remove all occurences of C{0.01cm}
and use setlength{tabcolsep}{3pt}
or anyl other length of your choice (default is 6pt).– leandriis
Mar 21 at 9:56
add a comment |
1 Answer
1
active
oldest
votes
Definitely too many packages for the example. Note also that
mdwlist
has been unmaintained for more than 20 years- loading both
enumitem
andenumerate
is wrong
pstricks
andtikz
? Are you sure?
letter
is not an option forarticle
; it should beletterpaper
(or omitted, as it's the default)
Now the table: most of the space is eaten up by the headers; since they're repeated, it's better to give them a name and repeat that, with an explanation at the bottom.
I recommend using siunitx
features and booktabs
.
documentclass{article}
usepackage{array,siunitx,booktabs}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
*{3}{
S[table-format=4.0]
S[table-format=4.0]
S[table-format=1.2]
}
@{}
}
toprule
& multicolumn{3}{c}{$c_{S_1}=18$}
& multicolumn{3}{c}{$c_{S_1}=20$}
& multicolumn{3}{c}{$c_{S_1}=22$} \
cmidrule(lr){2-4} cmidrule(lr){5-7} cmidrule(l){8-10}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)} \
midrule
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
midrule[heavyrulewidth]
multicolumn{10}{@{}l@{}}{%
(1): $E[pi_R^{bar{c}}]$;qquad
(2): $E[pi_R^{c}]$;qquad
(3): $E[pi_R^{c}]/E[pi_R^{bar{c}}]$%
}
end{tabular*}
end{table}
end{document}
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
add a comment |
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%2f480643%2fsmall-separation-between-columns%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Definitely too many packages for the example. Note also that
mdwlist
has been unmaintained for more than 20 years- loading both
enumitem
andenumerate
is wrong
pstricks
andtikz
? Are you sure?
letter
is not an option forarticle
; it should beletterpaper
(or omitted, as it's the default)
Now the table: most of the space is eaten up by the headers; since they're repeated, it's better to give them a name and repeat that, with an explanation at the bottom.
I recommend using siunitx
features and booktabs
.
documentclass{article}
usepackage{array,siunitx,booktabs}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
*{3}{
S[table-format=4.0]
S[table-format=4.0]
S[table-format=1.2]
}
@{}
}
toprule
& multicolumn{3}{c}{$c_{S_1}=18$}
& multicolumn{3}{c}{$c_{S_1}=20$}
& multicolumn{3}{c}{$c_{S_1}=22$} \
cmidrule(lr){2-4} cmidrule(lr){5-7} cmidrule(l){8-10}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)} \
midrule
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
midrule[heavyrulewidth]
multicolumn{10}{@{}l@{}}{%
(1): $E[pi_R^{bar{c}}]$;qquad
(2): $E[pi_R^{c}]$;qquad
(3): $E[pi_R^{c}]/E[pi_R^{bar{c}}]$%
}
end{tabular*}
end{table}
end{document}
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
add a comment |
Definitely too many packages for the example. Note also that
mdwlist
has been unmaintained for more than 20 years- loading both
enumitem
andenumerate
is wrong
pstricks
andtikz
? Are you sure?
letter
is not an option forarticle
; it should beletterpaper
(or omitted, as it's the default)
Now the table: most of the space is eaten up by the headers; since they're repeated, it's better to give them a name and repeat that, with an explanation at the bottom.
I recommend using siunitx
features and booktabs
.
documentclass{article}
usepackage{array,siunitx,booktabs}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
*{3}{
S[table-format=4.0]
S[table-format=4.0]
S[table-format=1.2]
}
@{}
}
toprule
& multicolumn{3}{c}{$c_{S_1}=18$}
& multicolumn{3}{c}{$c_{S_1}=20$}
& multicolumn{3}{c}{$c_{S_1}=22$} \
cmidrule(lr){2-4} cmidrule(lr){5-7} cmidrule(l){8-10}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)} \
midrule
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
midrule[heavyrulewidth]
multicolumn{10}{@{}l@{}}{%
(1): $E[pi_R^{bar{c}}]$;qquad
(2): $E[pi_R^{c}]$;qquad
(3): $E[pi_R^{c}]/E[pi_R^{bar{c}}]$%
}
end{tabular*}
end{table}
end{document}
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
add a comment |
Definitely too many packages for the example. Note also that
mdwlist
has been unmaintained for more than 20 years- loading both
enumitem
andenumerate
is wrong
pstricks
andtikz
? Are you sure?
letter
is not an option forarticle
; it should beletterpaper
(or omitted, as it's the default)
Now the table: most of the space is eaten up by the headers; since they're repeated, it's better to give them a name and repeat that, with an explanation at the bottom.
I recommend using siunitx
features and booktabs
.
documentclass{article}
usepackage{array,siunitx,booktabs}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
*{3}{
S[table-format=4.0]
S[table-format=4.0]
S[table-format=1.2]
}
@{}
}
toprule
& multicolumn{3}{c}{$c_{S_1}=18$}
& multicolumn{3}{c}{$c_{S_1}=20$}
& multicolumn{3}{c}{$c_{S_1}=22$} \
cmidrule(lr){2-4} cmidrule(lr){5-7} cmidrule(l){8-10}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)} \
midrule
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
midrule[heavyrulewidth]
multicolumn{10}{@{}l@{}}{%
(1): $E[pi_R^{bar{c}}]$;qquad
(2): $E[pi_R^{c}]$;qquad
(3): $E[pi_R^{c}]/E[pi_R^{bar{c}}]$%
}
end{tabular*}
end{table}
end{document}
Definitely too many packages for the example. Note also that
mdwlist
has been unmaintained for more than 20 years- loading both
enumitem
andenumerate
is wrong
pstricks
andtikz
? Are you sure?
letter
is not an option forarticle
; it should beletterpaper
(or omitted, as it's the default)
Now the table: most of the space is eaten up by the headers; since they're repeated, it's better to give them a name and repeat that, with an explanation at the bottom.
I recommend using siunitx
features and booktabs
.
documentclass{article}
usepackage{array,siunitx,booktabs}
begin{document}
begin{table}[h!]
caption{Bereits erbrachte Leistungen}
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
*{3}{
S[table-format=4.0]
S[table-format=4.0]
S[table-format=1.2]
}
@{}
}
toprule
& multicolumn{3}{c}{$c_{S_1}=18$}
& multicolumn{3}{c}{$c_{S_1}=20$}
& multicolumn{3}{c}{$c_{S_1}=22$} \
cmidrule(lr){2-4} cmidrule(lr){5-7} cmidrule(l){8-10}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)}
& {(1)} & {(2)} & {(3)} \
midrule
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
$c_{S_2}=18$
& 4208 & 4364 & 1,04 & 3934 & 4236 & 1,08 & 3819 & 4109 & 1,08 \
midrule[heavyrulewidth]
multicolumn{10}{@{}l@{}}{%
(1): $E[pi_R^{bar{c}}]$;qquad
(2): $E[pi_R^{c}]$;qquad
(3): $E[pi_R^{c}]/E[pi_R^{bar{c}}]$%
}
end{tabular*}
end{table}
end{document}
answered Mar 21 at 11:43
egregegreg
730k8819293243
730k8819293243
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
add a comment |
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
This looks amazing, thank you very much
– Andreas
Mar 21 at 12:40
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%2f480643%2fsmall-separation-between-columns%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
Why do you use all thouse fixed width columns? Would a
c
type column not be sufficient as you don't seem to need line breaks in cells. Apart from that, you might want to remove all occurences ofC{0.01cm}
and usesetlength{tabcolsep}{3pt}
or anyl other length of your choice (default is 6pt).– leandriis
Mar 21 at 9:56