Continuous vertical line using booktabs in tabularx table?Which tabular packages do which tasks and which packages conflict?Vertical table lines are discontinuous with booktabsVertical alignment using multirow and booktabsVertical table lines are discontinuous with booktabsTable without using booktabsvertical alignment using tabularx / arraystretchFormatting table using booktabsBooktabs table with multirows: alternative to vertical rules?Vertical line not shown in a booktabs style table.Discontinuous vertical dash lines in tabularx, booktabs environmentBroken vertical line in tabularxTable with vertical aligned header text [tabularx]
How does "Te vas a cansar" mean "You're going to get tired"?
What is my malfunctioning AI harvesting from humans?
Not going forward with internship interview process
What costs less energy? Roll or Yaw?
What gave Harry Potter the idea of writing in Tom Riddle's diary?
What does Apple mean by "This may decrease battery life"?
In a topological space if there exists a loop that cannot be contracted to a point does there exist a simple loop that cannot be contracted also?
Why does Intel's Haswell chip allow FP multiplication to be twice as fast as addition?
Identification of vintage sloping window
The cat ate your input again!
Multirow in tabularx?
How are you supposed to know the strumming pattern for a song from the "chord sheet music"?
Can a fight scene, component-wise, be too complex and complicated?
What game uses dice with sides powers of 2?
What happen to those who died but not from the snap?
AsyncDictionary - Can you break thread safety?
Are differences between uniformly distributed numbers uniformly distributed?
How to change a file name containing ":" in timing info
Dropdowns & Chevrons for Right to Left languages
Bitcoin successfully deducted on sender wallet but did not reach receiver wallet
Continuous vertical line using booktabs in tabularx table?
Extremely casual way to make requests to very close friends
Blocking people from taking pictures of me with smartphone
In SQL Server, why does backward scan of clustered index cannot use parallelism?
Continuous vertical line using booktabs in tabularx table?
Which tabular packages do which tasks and which packages conflict?Vertical table lines are discontinuous with booktabsVertical alignment using multirow and booktabsVertical table lines are discontinuous with booktabsTable without using booktabsvertical alignment using tabularx / arraystretchFormatting table using booktabsBooktabs table with multirows: alternative to vertical rules?Vertical line not shown in a booktabs style table.Discontinuous vertical dash lines in tabularx, booktabs environmentBroken vertical line in tabularxTable with vertical aligned header text [tabularx]
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
How can we draw a continuous vertical line using booktabs in table?
What is the simplest method to maximise the width of a table?
There are lots of methods, very confusing.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmall % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
centering
begintabularxtextwidthl>raggedrightarraybackslashccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule2-7
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig.
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
tables vertical-alignment tabularx booktabs
|
show 6 more comments
How can we draw a continuous vertical line using booktabs in table?
What is the simplest method to maximise the width of a table?
There are lots of methods, very confusing.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmall % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
centering
begintabularxtextwidthl>raggedrightarraybackslashccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule2-7
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig.
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
tables vertical-alignment tabularx booktabs
1
A tabularx environment requires at least oneX
column to make sense. This answers you second question. As to the first,booktabs
is not adapted to vertical rules. For which reason do you ue it?
– Bernard
8 hours ago
3
To quote from thebooktabs
manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. Never, ever use vertical rules. [...]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, usehline
instead of tehbooktabs
horizontal lines.
– leandriis
8 hours ago
Please also note, that oyu can removesmall
from athead
commands, as you already usedrenewcommandtheadfontsmall´ to automatically make all text in
thead` commands small. You can go even further and remove all thetextbf
inside ofthead
commands, if you userenewcommandtheadfontsmallbfseries
– leandriis
8 hours ago
Regarding "the simplest method to maximise the width of a table" where would you like the extra white space to be? Between column 1 and 2, or 4 and 5 or equally distributed between all columns? Are there entries in the first column that are wider than the shown one? Why would wou even want your table to be wieder than it currently is?
– leandriis
8 hours ago
1
Regarding the vertical lines, you might also want to have a loom at Vertical table lines are discontinuous with booktabs
– leandriis
7 hours ago
|
show 6 more comments
How can we draw a continuous vertical line using booktabs in table?
What is the simplest method to maximise the width of a table?
There are lots of methods, very confusing.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmall % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
centering
begintabularxtextwidthl>raggedrightarraybackslashccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule2-7
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig.
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
tables vertical-alignment tabularx booktabs
How can we draw a continuous vertical line using booktabs in table?
What is the simplest method to maximise the width of a table?
There are lots of methods, very confusing.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmall % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
centering
begintabularxtextwidthl>raggedrightarraybackslashccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule2-7
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig.
& small textbfStatistic
& theadsmall textbfdf
& theadsmall textbfSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
tables vertical-alignment tabularx booktabs
tables vertical-alignment tabularx booktabs
edited 8 hours ago
leandriis
17.8k1 gold badge11 silver badges37 bronze badges
17.8k1 gold badge11 silver badges37 bronze badges
asked 8 hours ago
aanaan
1566 bronze badges
1566 bronze badges
1
A tabularx environment requires at least oneX
column to make sense. This answers you second question. As to the first,booktabs
is not adapted to vertical rules. For which reason do you ue it?
– Bernard
8 hours ago
3
To quote from thebooktabs
manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. Never, ever use vertical rules. [...]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, usehline
instead of tehbooktabs
horizontal lines.
– leandriis
8 hours ago
Please also note, that oyu can removesmall
from athead
commands, as you already usedrenewcommandtheadfontsmall´ to automatically make all text in
thead` commands small. You can go even further and remove all thetextbf
inside ofthead
commands, if you userenewcommandtheadfontsmallbfseries
– leandriis
8 hours ago
Regarding "the simplest method to maximise the width of a table" where would you like the extra white space to be? Between column 1 and 2, or 4 and 5 or equally distributed between all columns? Are there entries in the first column that are wider than the shown one? Why would wou even want your table to be wieder than it currently is?
– leandriis
8 hours ago
1
Regarding the vertical lines, you might also want to have a loom at Vertical table lines are discontinuous with booktabs
– leandriis
7 hours ago
|
show 6 more comments
1
A tabularx environment requires at least oneX
column to make sense. This answers you second question. As to the first,booktabs
is not adapted to vertical rules. For which reason do you ue it?
– Bernard
8 hours ago
3
To quote from thebooktabs
manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. Never, ever use vertical rules. [...]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, usehline
instead of tehbooktabs
horizontal lines.
– leandriis
8 hours ago
Please also note, that oyu can removesmall
from athead
commands, as you already usedrenewcommandtheadfontsmall´ to automatically make all text in
thead` commands small. You can go even further and remove all thetextbf
inside ofthead
commands, if you userenewcommandtheadfontsmallbfseries
– leandriis
8 hours ago
Regarding "the simplest method to maximise the width of a table" where would you like the extra white space to be? Between column 1 and 2, or 4 and 5 or equally distributed between all columns? Are there entries in the first column that are wider than the shown one? Why would wou even want your table to be wieder than it currently is?
– leandriis
8 hours ago
1
Regarding the vertical lines, you might also want to have a loom at Vertical table lines are discontinuous with booktabs
– leandriis
7 hours ago
1
1
A tabularx environment requires at least one
X
column to make sense. This answers you second question. As to the first, booktabs
is not adapted to vertical rules. For which reason do you ue it?– Bernard
8 hours ago
A tabularx environment requires at least one
X
column to make sense. This answers you second question. As to the first, booktabs
is not adapted to vertical rules. For which reason do you ue it?– Bernard
8 hours ago
3
3
To quote from the
booktabs
manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. Never, ever use vertical rules. [...]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, use hline
instead of teh booktabs
horizontal lines.– leandriis
8 hours ago
To quote from the
booktabs
manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. Never, ever use vertical rules. [...]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, use hline
instead of teh booktabs
horizontal lines.– leandriis
8 hours ago
Please also note, that oyu can remove
small
from a thead
commands, as you already used renewcommandtheadfontsmall´ to automatically make all text in
thead` commands small. You can go even further and remove all the textbf
inside of thead
commands, if you use renewcommandtheadfontsmallbfseries
– leandriis
8 hours ago
Please also note, that oyu can remove
small
from a thead
commands, as you already used renewcommandtheadfontsmall´ to automatically make all text in
thead` commands small. You can go even further and remove all the textbf
inside of thead
commands, if you use renewcommandtheadfontsmallbfseries
– leandriis
8 hours ago
Regarding "the simplest method to maximise the width of a table" where would you like the extra white space to be? Between column 1 and 2, or 4 and 5 or equally distributed between all columns? Are there entries in the first column that are wider than the shown one? Why would wou even want your table to be wieder than it currently is?
– leandriis
8 hours ago
Regarding "the simplest method to maximise the width of a table" where would you like the extra white space to be? Between column 1 and 2, or 4 and 5 or equally distributed between all columns? Are there entries in the first column that are wider than the shown one? Why would wou even want your table to be wieder than it currently is?
– leandriis
8 hours ago
1
1
Regarding the vertical lines, you might also want to have a loom at Vertical table lines are discontinuous with booktabs
– leandriis
7 hours ago
Regarding the vertical lines, you might also want to have a loom at Vertical table lines are discontinuous with booktabs
– leandriis
7 hours ago
|
show 6 more comments
3 Answers
3
active
oldest
votes
Here is my suggestion. I have used tabular*
in combination with @extracolsepfill
to make the table as wide as the textwidth and to evenly distribute the excess white space between the columns. I have also removed the vertical line and replaced the single cmidrule
by two adjacent ones with a small white space inbetween. In order to clean up the code, I have also removed the repeated occurences ot small
and textbf
and instead added bfseries
to thedfont
:
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
begintabular*textwidth@extracolsepfilllcccccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule(r)2-4 cmidrule(l)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabular*
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
add a comment |
I would rather replace the vertical line with a supplementary empty column to have a clear separation between the two group of columns. Another possibility, aesthetically, might be to delete the vertical padding of horizontal rules, and replace it with the makegapedcells
command from makecell
, which adds a vertical space at the top and bottom of all cells. As a demonstration, I replaced the vertical line with thick, light grey vrule, which I find more pleasing to the eye than the default thin, black, vertical rule.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
usepackage[table, svgnames]xcolor
begindocument
begintable[!ht]
centering
begintabularxtextwidthX>raggedrightarraybackslashccccccc
toprule
& multicolumn3ctextbfPaired Differences1 & & multicolumn3ctextbfPaired Differences2\
cmidrule(lr)2-4 cmidrule(lr)6-8
& theadStatistic
& theaddf
& thead Sig.
& & theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
begintable[!ht]
centering
setlengthaboverulesep0pt
setlengthbelowrulesep0pt
setcellgapes3ptmakegapedcells
begintabularxtextwidthX>raggedrightarraybackslashccc!colorGainsboro!50!Lavendervline width 0.75emccc
toprule
& multicolumn3c!colorGainsboro!50!Lavendervline width 0.75emtextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\noalignvskip -0.033em
cmidrule(lr1.33em)2-4 cmidrule(lr)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
noalignvskip-0.05em
cmidrule[0.05em](r0.9em)1-4cmidrule[0.05em](l0.15em)5-7
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
add a comment |
With combination of S
and X
columns type, without vertical lines, with rounded numbers ... :
documentclassarticle
usepackagebooktabs, tabularx
usepackagexparse
NewExpandableDocumentCommandmcxO1m
multicolumn#1>Centeringsmallbfserieshsize=#1hsizeX#2
usepackageragged2e
usepackagesiunitx
begindocument
begintable[ht]
centering
setlengthtabcolsep0pt
sisetupround-integer-to-decimal,
round-mode=places,
table-format=2.2
begintabularxlinewidthl *6S
toprule
& mcx[3]Paired Differences 1
& mcx[3]Paired Differences 2 \
cmidrule(r)2-4cmidrule(l)5-7
& mcxStatistic & mcxdf & mcxSig.
& mcxStatistic & mcxdf & mcxSig. \
midrule
Difference
& 44.20 & 14.36 & 4.54 & 0.957 & 10 & 0.746 \
bottomrule
endtabularx
captionTesting Testing Testing
labeltab:test1234
endtable
enddocument
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%2f503806%2fcontinuous-vertical-line-using-booktabs-in-tabularx-table%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Here is my suggestion. I have used tabular*
in combination with @extracolsepfill
to make the table as wide as the textwidth and to evenly distribute the excess white space between the columns. I have also removed the vertical line and replaced the single cmidrule
by two adjacent ones with a small white space inbetween. In order to clean up the code, I have also removed the repeated occurences ot small
and textbf
and instead added bfseries
to thedfont
:
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
begintabular*textwidth@extracolsepfilllcccccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule(r)2-4 cmidrule(l)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabular*
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
add a comment |
Here is my suggestion. I have used tabular*
in combination with @extracolsepfill
to make the table as wide as the textwidth and to evenly distribute the excess white space between the columns. I have also removed the vertical line and replaced the single cmidrule
by two adjacent ones with a small white space inbetween. In order to clean up the code, I have also removed the repeated occurences ot small
and textbf
and instead added bfseries
to thedfont
:
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
begintabular*textwidth@extracolsepfilllcccccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule(r)2-4 cmidrule(l)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabular*
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
add a comment |
Here is my suggestion. I have used tabular*
in combination with @extracolsepfill
to make the table as wide as the textwidth and to evenly distribute the excess white space between the columns. I have also removed the vertical line and replaced the single cmidrule
by two adjacent ones with a small white space inbetween. In order to clean up the code, I have also removed the repeated occurences ot small
and textbf
and instead added bfseries
to thedfont
:
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
begintabular*textwidth@extracolsepfilllcccccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule(r)2-4 cmidrule(l)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabular*
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
Here is my suggestion. I have used tabular*
in combination with @extracolsepfill
to make the table as wide as the textwidth and to evenly distribute the excess white space between the columns. I have also removed the vertical line and replaced the single cmidrule
by two adjacent ones with a small white space inbetween. In order to clean up the code, I have also removed the repeated occurences ot small
and textbf
and instead added bfseries
to thedfont
:
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
begindocument
begintable[!ht]
begintabular*textwidth@extracolsepfilllcccccc
toprule
& multicolumn3ctextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\
cmidrule(r)2-4 cmidrule(l)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabular*
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
answered 6 hours ago
leandriisleandriis
17.8k1 gold badge11 silver badges37 bronze badges
17.8k1 gold badge11 silver badges37 bronze badges
add a comment |
add a comment |
I would rather replace the vertical line with a supplementary empty column to have a clear separation between the two group of columns. Another possibility, aesthetically, might be to delete the vertical padding of horizontal rules, and replace it with the makegapedcells
command from makecell
, which adds a vertical space at the top and bottom of all cells. As a demonstration, I replaced the vertical line with thick, light grey vrule, which I find more pleasing to the eye than the default thin, black, vertical rule.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
usepackage[table, svgnames]xcolor
begindocument
begintable[!ht]
centering
begintabularxtextwidthX>raggedrightarraybackslashccccccc
toprule
& multicolumn3ctextbfPaired Differences1 & & multicolumn3ctextbfPaired Differences2\
cmidrule(lr)2-4 cmidrule(lr)6-8
& theadStatistic
& theaddf
& thead Sig.
& & theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
begintable[!ht]
centering
setlengthaboverulesep0pt
setlengthbelowrulesep0pt
setcellgapes3ptmakegapedcells
begintabularxtextwidthX>raggedrightarraybackslashccc!colorGainsboro!50!Lavendervline width 0.75emccc
toprule
& multicolumn3c!colorGainsboro!50!Lavendervline width 0.75emtextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\noalignvskip -0.033em
cmidrule(lr1.33em)2-4 cmidrule(lr)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
noalignvskip-0.05em
cmidrule[0.05em](r0.9em)1-4cmidrule[0.05em](l0.15em)5-7
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
add a comment |
I would rather replace the vertical line with a supplementary empty column to have a clear separation between the two group of columns. Another possibility, aesthetically, might be to delete the vertical padding of horizontal rules, and replace it with the makegapedcells
command from makecell
, which adds a vertical space at the top and bottom of all cells. As a demonstration, I replaced the vertical line with thick, light grey vrule, which I find more pleasing to the eye than the default thin, black, vertical rule.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
usepackage[table, svgnames]xcolor
begindocument
begintable[!ht]
centering
begintabularxtextwidthX>raggedrightarraybackslashccccccc
toprule
& multicolumn3ctextbfPaired Differences1 & & multicolumn3ctextbfPaired Differences2\
cmidrule(lr)2-4 cmidrule(lr)6-8
& theadStatistic
& theaddf
& thead Sig.
& & theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
begintable[!ht]
centering
setlengthaboverulesep0pt
setlengthbelowrulesep0pt
setcellgapes3ptmakegapedcells
begintabularxtextwidthX>raggedrightarraybackslashccc!colorGainsboro!50!Lavendervline width 0.75emccc
toprule
& multicolumn3c!colorGainsboro!50!Lavendervline width 0.75emtextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\noalignvskip -0.033em
cmidrule(lr1.33em)2-4 cmidrule(lr)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
noalignvskip-0.05em
cmidrule[0.05em](r0.9em)1-4cmidrule[0.05em](l0.15em)5-7
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
add a comment |
I would rather replace the vertical line with a supplementary empty column to have a clear separation between the two group of columns. Another possibility, aesthetically, might be to delete the vertical padding of horizontal rules, and replace it with the makegapedcells
command from makecell
, which adds a vertical space at the top and bottom of all cells. As a demonstration, I replaced the vertical line with thick, light grey vrule, which I find more pleasing to the eye than the default thin, black, vertical rule.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
usepackage[table, svgnames]xcolor
begindocument
begintable[!ht]
centering
begintabularxtextwidthX>raggedrightarraybackslashccccccc
toprule
& multicolumn3ctextbfPaired Differences1 & & multicolumn3ctextbfPaired Differences2\
cmidrule(lr)2-4 cmidrule(lr)6-8
& theadStatistic
& theaddf
& thead Sig.
& & theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
begintable[!ht]
centering
setlengthaboverulesep0pt
setlengthbelowrulesep0pt
setcellgapes3ptmakegapedcells
begintabularxtextwidthX>raggedrightarraybackslashccc!colorGainsboro!50!Lavendervline width 0.75emccc
toprule
& multicolumn3c!colorGainsboro!50!Lavendervline width 0.75emtextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\noalignvskip -0.033em
cmidrule(lr1.33em)2-4 cmidrule(lr)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
noalignvskip-0.05em
cmidrule[0.05em](r0.9em)1-4cmidrule[0.05em](l0.15em)5-7
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
I would rather replace the vertical line with a supplementary empty column to have a clear separation between the two group of columns. Another possibility, aesthetically, might be to delete the vertical padding of horizontal rules, and replace it with the makegapedcells
command from makecell
, which adds a vertical space at the top and bottom of all cells. As a demonstration, I replaced the vertical line with thick, light grey vrule, which I find more pleasing to the eye than the default thin, black, vertical rule.
documentclassarticle
usepackagemakecell % for bold in table using small
renewcommandtheadfontsmallbfseries % for bold in table using small
usepackagetabularx, ragged2e
usepackagebooktabs
usepackage[table, svgnames]xcolor
begindocument
begintable[!ht]
centering
begintabularxtextwidthX>raggedrightarraybackslashccccccc
toprule
& multicolumn3ctextbfPaired Differences1 & & multicolumn3ctextbfPaired Differences2\
cmidrule(lr)2-4 cmidrule(lr)6-8
& theadStatistic
& theaddf
& thead Sig.
& & theadStatistic
& theaddf
& theadSig. \
midrule
Difference & 44.20 & 14.36 & 4.54 & & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
begintable[!ht]
centering
setlengthaboverulesep0pt
setlengthbelowrulesep0pt
setcellgapes3ptmakegapedcells
begintabularxtextwidthX>raggedrightarraybackslashccc!colorGainsboro!50!Lavendervline width 0.75emccc
toprule
& multicolumn3c!colorGainsboro!50!Lavendervline width 0.75emtextbfPaired Differences1 & multicolumn3ctextbfPaired Differences2\noalignvskip -0.033em
cmidrule(lr1.33em)2-4 cmidrule(lr)5-7
& theadStatistic
& theaddf
& theadSig.
& theadStatistic
& theaddf
& theadSig. \
noalignvskip-0.05em
cmidrule[0.05em](r0.9em)1-4cmidrule[0.05em](l0.15em)5-7
Difference & 44.20 & 14.36 & 4.54 & .957 & 10 & .746\
bottomrule
endtabularx
captionTesting Testing Testing%
labeltab:test1234%
endtable
enddocument
edited 6 hours ago
answered 7 hours ago
BernardBernard
187k7 gold badges84 silver badges221 bronze badges
187k7 gold badges84 silver badges221 bronze badges
add a comment |
add a comment |
With combination of S
and X
columns type, without vertical lines, with rounded numbers ... :
documentclassarticle
usepackagebooktabs, tabularx
usepackagexparse
NewExpandableDocumentCommandmcxO1m
multicolumn#1>Centeringsmallbfserieshsize=#1hsizeX#2
usepackageragged2e
usepackagesiunitx
begindocument
begintable[ht]
centering
setlengthtabcolsep0pt
sisetupround-integer-to-decimal,
round-mode=places,
table-format=2.2
begintabularxlinewidthl *6S
toprule
& mcx[3]Paired Differences 1
& mcx[3]Paired Differences 2 \
cmidrule(r)2-4cmidrule(l)5-7
& mcxStatistic & mcxdf & mcxSig.
& mcxStatistic & mcxdf & mcxSig. \
midrule
Difference
& 44.20 & 14.36 & 4.54 & 0.957 & 10 & 0.746 \
bottomrule
endtabularx
captionTesting Testing Testing
labeltab:test1234
endtable
enddocument
add a comment |
With combination of S
and X
columns type, without vertical lines, with rounded numbers ... :
documentclassarticle
usepackagebooktabs, tabularx
usepackagexparse
NewExpandableDocumentCommandmcxO1m
multicolumn#1>Centeringsmallbfserieshsize=#1hsizeX#2
usepackageragged2e
usepackagesiunitx
begindocument
begintable[ht]
centering
setlengthtabcolsep0pt
sisetupround-integer-to-decimal,
round-mode=places,
table-format=2.2
begintabularxlinewidthl *6S
toprule
& mcx[3]Paired Differences 1
& mcx[3]Paired Differences 2 \
cmidrule(r)2-4cmidrule(l)5-7
& mcxStatistic & mcxdf & mcxSig.
& mcxStatistic & mcxdf & mcxSig. \
midrule
Difference
& 44.20 & 14.36 & 4.54 & 0.957 & 10 & 0.746 \
bottomrule
endtabularx
captionTesting Testing Testing
labeltab:test1234
endtable
enddocument
add a comment |
With combination of S
and X
columns type, without vertical lines, with rounded numbers ... :
documentclassarticle
usepackagebooktabs, tabularx
usepackagexparse
NewExpandableDocumentCommandmcxO1m
multicolumn#1>Centeringsmallbfserieshsize=#1hsizeX#2
usepackageragged2e
usepackagesiunitx
begindocument
begintable[ht]
centering
setlengthtabcolsep0pt
sisetupround-integer-to-decimal,
round-mode=places,
table-format=2.2
begintabularxlinewidthl *6S
toprule
& mcx[3]Paired Differences 1
& mcx[3]Paired Differences 2 \
cmidrule(r)2-4cmidrule(l)5-7
& mcxStatistic & mcxdf & mcxSig.
& mcxStatistic & mcxdf & mcxSig. \
midrule
Difference
& 44.20 & 14.36 & 4.54 & 0.957 & 10 & 0.746 \
bottomrule
endtabularx
captionTesting Testing Testing
labeltab:test1234
endtable
enddocument
With combination of S
and X
columns type, without vertical lines, with rounded numbers ... :
documentclassarticle
usepackagebooktabs, tabularx
usepackagexparse
NewExpandableDocumentCommandmcxO1m
multicolumn#1>Centeringsmallbfserieshsize=#1hsizeX#2
usepackageragged2e
usepackagesiunitx
begindocument
begintable[ht]
centering
setlengthtabcolsep0pt
sisetupround-integer-to-decimal,
round-mode=places,
table-format=2.2
begintabularxlinewidthl *6S
toprule
& mcx[3]Paired Differences 1
& mcx[3]Paired Differences 2 \
cmidrule(r)2-4cmidrule(l)5-7
& mcxStatistic & mcxdf & mcxSig.
& mcxStatistic & mcxdf & mcxSig. \
midrule
Difference
& 44.20 & 14.36 & 4.54 & 0.957 & 10 & 0.746 \
bottomrule
endtabularx
captionTesting Testing Testing
labeltab:test1234
endtable
enddocument
edited 6 hours ago
answered 6 hours ago
ZarkoZarko
143k8 gold badges79 silver badges192 bronze badges
143k8 gold badges79 silver badges192 bronze badges
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%2f503806%2fcontinuous-vertical-line-using-booktabs-in-tabularx-table%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
1
A tabularx environment requires at least one
X
column to make sense. This answers you second question. As to the first,booktabs
is not adapted to vertical rules. For which reason do you ue it?– Bernard
8 hours ago
3
To quote from the
booktabs
manual: "You will not go far wrong if you remember two simple guidelines at all times: 1. Never, ever use vertical rules. [...]" Therefore, I'd recommend to either stick to this rule, or, if you prefer vertical lines, usehline
instead of tehbooktabs
horizontal lines.– leandriis
8 hours ago
Please also note, that oyu can remove
small
from athead
commands, as you already usedrenewcommandtheadfontsmall´ to automatically make all text in
thead` commands small. You can go even further and remove all thetextbf
inside ofthead
commands, if you userenewcommandtheadfontsmallbfseries
– leandriis
8 hours ago
Regarding "the simplest method to maximise the width of a table" where would you like the extra white space to be? Between column 1 and 2, or 4 and 5 or equally distributed between all columns? Are there entries in the first column that are wider than the shown one? Why would wou even want your table to be wieder than it currently is?
– leandriis
8 hours ago
1
Regarding the vertical lines, you might also want to have a loom at Vertical table lines are discontinuous with booktabs
– leandriis
7 hours ago