How do I create this table?
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
I want to create this table:
I started with this, but it doesn't work:
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx
usepackagegraphicx
usepackagesiunitx
usepackagebooktabs
begindocument
begincenter
begintabularc
hello & hello \
toprule
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument}
How can I fix this?
tables
add a comment |Â
up vote
6
down vote
favorite
I want to create this table:
I started with this, but it doesn't work:
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx
usepackagegraphicx
usepackagesiunitx
usepackagebooktabs
begindocument
begincenter
begintabularc
hello & hello \
toprule
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument}
How can I fix this?
tables
2
You cannot use vertical lines withbooktabs
horizontal rules. So you need to either replacetoprule
withhline
or get rid of the vertical line. Howevertoprule
is not the correct choice of rule, it should bemidrule
but I expect what you're really going for is a thicker line, which demands a different solution tex.stackexchange.com/questions/256731/â¦
â Au101
Aug 26 at 16:46
2
In terms of the too wide table cell, there are various solutions, the most basic of which would be to use something likep2cm
(where 2cm is a fairly arbitrary length, you will have to select the width that you would like to use) instead of ac
column. Withc
the column will be as wide as its contents, and if that means too wide for the page then unfortunately the table will run off the page, the line won't break, because you haven't told it when to break. Withp2cm
you tell it you want a 2cm wide cell and then the line will break to respect that
â Au101
Aug 26 at 16:48
1
You can usespecialruleheavyrulewidth0pt0pt
: it will have the same thickness astoprule
but no vertical padding. An alternative: loadboldline
, from theshipunov
bundle, which defines horizontal and vertical lines with custom thickness.
â Bernard
Aug 26 at 16:53
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I want to create this table:
I started with this, but it doesn't work:
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx
usepackagegraphicx
usepackagesiunitx
usepackagebooktabs
begindocument
begincenter
begintabularc
hello & hello \
toprule
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument}
How can I fix this?
tables
I want to create this table:
I started with this, but it doesn't work:
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackageamsmath
usepackageamsfonts
usepackageamssymb
usepackagegraphicx
usepackagegraphicx
usepackagesiunitx
usepackagebooktabs
begindocument
begincenter
begintabularc
hello & hello \
toprule
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument}
How can I fix this?
tables
tables
edited Aug 27 at 4:04
Peter Mortensen
49336
49336
asked Aug 26 at 16:39
Vidal
1166
1166
2
You cannot use vertical lines withbooktabs
horizontal rules. So you need to either replacetoprule
withhline
or get rid of the vertical line. Howevertoprule
is not the correct choice of rule, it should bemidrule
but I expect what you're really going for is a thicker line, which demands a different solution tex.stackexchange.com/questions/256731/â¦
â Au101
Aug 26 at 16:46
2
In terms of the too wide table cell, there are various solutions, the most basic of which would be to use something likep2cm
(where 2cm is a fairly arbitrary length, you will have to select the width that you would like to use) instead of ac
column. Withc
the column will be as wide as its contents, and if that means too wide for the page then unfortunately the table will run off the page, the line won't break, because you haven't told it when to break. Withp2cm
you tell it you want a 2cm wide cell and then the line will break to respect that
â Au101
Aug 26 at 16:48
1
You can usespecialruleheavyrulewidth0pt0pt
: it will have the same thickness astoprule
but no vertical padding. An alternative: loadboldline
, from theshipunov
bundle, which defines horizontal and vertical lines with custom thickness.
â Bernard
Aug 26 at 16:53
add a comment |Â
2
You cannot use vertical lines withbooktabs
horizontal rules. So you need to either replacetoprule
withhline
or get rid of the vertical line. Howevertoprule
is not the correct choice of rule, it should bemidrule
but I expect what you're really going for is a thicker line, which demands a different solution tex.stackexchange.com/questions/256731/â¦
â Au101
Aug 26 at 16:46
2
In terms of the too wide table cell, there are various solutions, the most basic of which would be to use something likep2cm
(where 2cm is a fairly arbitrary length, you will have to select the width that you would like to use) instead of ac
column. Withc
the column will be as wide as its contents, and if that means too wide for the page then unfortunately the table will run off the page, the line won't break, because you haven't told it when to break. Withp2cm
you tell it you want a 2cm wide cell and then the line will break to respect that
â Au101
Aug 26 at 16:48
1
You can usespecialruleheavyrulewidth0pt0pt
: it will have the same thickness astoprule
but no vertical padding. An alternative: loadboldline
, from theshipunov
bundle, which defines horizontal and vertical lines with custom thickness.
â Bernard
Aug 26 at 16:53
2
2
You cannot use vertical lines with
booktabs
horizontal rules. So you need to either replace toprule
with hline
or get rid of the vertical line. However toprule
is not the correct choice of rule, it should be midrule
but I expect what you're really going for is a thicker line, which demands a different solution tex.stackexchange.com/questions/256731/â¦â Au101
Aug 26 at 16:46
You cannot use vertical lines with
booktabs
horizontal rules. So you need to either replace toprule
with hline
or get rid of the vertical line. However toprule
is not the correct choice of rule, it should be midrule
but I expect what you're really going for is a thicker line, which demands a different solution tex.stackexchange.com/questions/256731/â¦â Au101
Aug 26 at 16:46
2
2
In terms of the too wide table cell, there are various solutions, the most basic of which would be to use something like
p2cm
(where 2cm is a fairly arbitrary length, you will have to select the width that you would like to use) instead of a c
column. With c
the column will be as wide as its contents, and if that means too wide for the page then unfortunately the table will run off the page, the line won't break, because you haven't told it when to break. With p2cm
you tell it you want a 2cm wide cell and then the line will break to respect thatâ Au101
Aug 26 at 16:48
In terms of the too wide table cell, there are various solutions, the most basic of which would be to use something like
p2cm
(where 2cm is a fairly arbitrary length, you will have to select the width that you would like to use) instead of a c
column. With c
the column will be as wide as its contents, and if that means too wide for the page then unfortunately the table will run off the page, the line won't break, because you haven't told it when to break. With p2cm
you tell it you want a 2cm wide cell and then the line will break to respect thatâ Au101
Aug 26 at 16:48
1
1
You can use
specialruleheavyrulewidth0pt0pt
: it will have the same thickness as toprule
but no vertical padding. An alternative: load boldline
, from the shipunov
bundle, which defines horizontal and vertical lines with custom thickness.â Bernard
Aug 26 at 16:53
You can use
specialruleheavyrulewidth0pt0pt
: it will have the same thickness as toprule
but no vertical padding. An alternative: load boldline
, from the shipunov
bundle, which defines horizontal and vertical lines with custom thickness.â Bernard
Aug 26 at 16:53
add a comment |Â
3 Answers
3
active
oldest
votes
up vote
4
down vote
accepted
like this:
beside tabularx
are used options !<option>
and Xhline<width>
from the package array
(in this case loaded by the package tabularx
) and macro makecell
from the package of the same name:
documentclass[11pt,a4paper]article
usepackagemakecell, tabularx
begindocument
begincenter
setcellgapes5ptmakegapedcells
begintabularxtextwidthX!vline width 1pt X
makecellhello & makecellhello \
Xhline1pt
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
endtabularx
endcenter
enddocument
perfect! thank you :)
â Vidal
Aug 27 at 10:02
add a comment |Â
up vote
12
down vote
Don't use booktabs
with vertical rules.
And don't load packages twice (you have two usepackagegraphicx
).
I have used tabularx
, and \[4pt]
and rule0pt16pt
to add some space before and after the horizontal rule.
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackagetabularx
begindocument
begincenter
begintabularxtextwidthX
multicolumn1chello &
multicolumn1chello \[4pt]
hline
rule0pt16pthello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabularx
endcenter
enddocument
add a comment |Â
up vote
7
down vote
The screenshot that accompanies your query creates the impression that each table column should be just wide enough (but no wider) to typeset three instances of the word "hello", separated by whitespace. If this impression is correct, you should use the p
column type for both columns. The p
column type takes an argument -- the usable width. In the preamble, be sure to set up a length parameter and measure the width of "hello hello hello" via a settowidth
directive.
Oh, and don't use the booktabs
package (and midrule
directives) if you employ vertical lines. Instead, use hline
.
documentclass[11pt,a4paper]article
usepackagearray % for "extrarowheight" macro
newlengthmylen
settowidthmylensffamily hello hello hello % measure width of "hello hello hello"
begindocument
begincenter
sffamily % switch to sans-serif
setlengthextrarowheight2pt % for a more open "look"
begintabularpmylen
multicolumn1chello &
multicolumn1chello \[2pt]
hline
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
like this:
beside tabularx
are used options !<option>
and Xhline<width>
from the package array
(in this case loaded by the package tabularx
) and macro makecell
from the package of the same name:
documentclass[11pt,a4paper]article
usepackagemakecell, tabularx
begindocument
begincenter
setcellgapes5ptmakegapedcells
begintabularxtextwidthX!vline width 1pt X
makecellhello & makecellhello \
Xhline1pt
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
endtabularx
endcenter
enddocument
perfect! thank you :)
â Vidal
Aug 27 at 10:02
add a comment |Â
up vote
4
down vote
accepted
like this:
beside tabularx
are used options !<option>
and Xhline<width>
from the package array
(in this case loaded by the package tabularx
) and macro makecell
from the package of the same name:
documentclass[11pt,a4paper]article
usepackagemakecell, tabularx
begindocument
begincenter
setcellgapes5ptmakegapedcells
begintabularxtextwidthX!vline width 1pt X
makecellhello & makecellhello \
Xhline1pt
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
endtabularx
endcenter
enddocument
perfect! thank you :)
â Vidal
Aug 27 at 10:02
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
like this:
beside tabularx
are used options !<option>
and Xhline<width>
from the package array
(in this case loaded by the package tabularx
) and macro makecell
from the package of the same name:
documentclass[11pt,a4paper]article
usepackagemakecell, tabularx
begindocument
begincenter
setcellgapes5ptmakegapedcells
begintabularxtextwidthX!vline width 1pt X
makecellhello & makecellhello \
Xhline1pt
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
endtabularx
endcenter
enddocument
like this:
beside tabularx
are used options !<option>
and Xhline<width>
from the package array
(in this case loaded by the package tabularx
) and macro makecell
from the package of the same name:
documentclass[11pt,a4paper]article
usepackagemakecell, tabularx
begindocument
begincenter
setcellgapes5ptmakegapedcells
begintabularxtextwidthX!vline width 1pt X
makecellhello & makecellhello \
Xhline1pt
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
hello hello hello hello hello hello hello hello hello hello space infinity
& hello hello hello hello \
endtabularx
endcenter
enddocument
edited Aug 27 at 11:54
answered Aug 26 at 18:46
Zarko
113k861150
113k861150
perfect! thank you :)
â Vidal
Aug 27 at 10:02
add a comment |Â
perfect! thank you :)
â Vidal
Aug 27 at 10:02
perfect! thank you :)
â Vidal
Aug 27 at 10:02
perfect! thank you :)
â Vidal
Aug 27 at 10:02
add a comment |Â
up vote
12
down vote
Don't use booktabs
with vertical rules.
And don't load packages twice (you have two usepackagegraphicx
).
I have used tabularx
, and \[4pt]
and rule0pt16pt
to add some space before and after the horizontal rule.
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackagetabularx
begindocument
begincenter
begintabularxtextwidthX
multicolumn1chello &
multicolumn1chello \[4pt]
hline
rule0pt16pthello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabularx
endcenter
enddocument
add a comment |Â
up vote
12
down vote
Don't use booktabs
with vertical rules.
And don't load packages twice (you have two usepackagegraphicx
).
I have used tabularx
, and \[4pt]
and rule0pt16pt
to add some space before and after the horizontal rule.
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackagetabularx
begindocument
begincenter
begintabularxtextwidthX
multicolumn1chello &
multicolumn1chello \[4pt]
hline
rule0pt16pthello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabularx
endcenter
enddocument
add a comment |Â
up vote
12
down vote
up vote
12
down vote
Don't use booktabs
with vertical rules.
And don't load packages twice (you have two usepackagegraphicx
).
I have used tabularx
, and \[4pt]
and rule0pt16pt
to add some space before and after the horizontal rule.
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackagetabularx
begindocument
begincenter
begintabularxtextwidthX
multicolumn1chello &
multicolumn1chello \[4pt]
hline
rule0pt16pthello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabularx
endcenter
enddocument
Don't use booktabs
with vertical rules.
And don't load packages twice (you have two usepackagegraphicx
).
I have used tabularx
, and \[4pt]
and rule0pt16pt
to add some space before and after the horizontal rule.
documentclass[11pt,a4paper]article
usepackage[latin1]inputenc
usepackagetabularx
begindocument
begincenter
begintabularxtextwidthX
multicolumn1chello &
multicolumn1chello \[4pt]
hline
rule0pt16pthello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabularx
endcenter
enddocument
answered Aug 26 at 16:55
CarLaTeX
25.5k443111
25.5k443111
add a comment |Â
add a comment |Â
up vote
7
down vote
The screenshot that accompanies your query creates the impression that each table column should be just wide enough (but no wider) to typeset three instances of the word "hello", separated by whitespace. If this impression is correct, you should use the p
column type for both columns. The p
column type takes an argument -- the usable width. In the preamble, be sure to set up a length parameter and measure the width of "hello hello hello" via a settowidth
directive.
Oh, and don't use the booktabs
package (and midrule
directives) if you employ vertical lines. Instead, use hline
.
documentclass[11pt,a4paper]article
usepackagearray % for "extrarowheight" macro
newlengthmylen
settowidthmylensffamily hello hello hello % measure width of "hello hello hello"
begindocument
begincenter
sffamily % switch to sans-serif
setlengthextrarowheight2pt % for a more open "look"
begintabularpmylen
multicolumn1chello &
multicolumn1chello \[2pt]
hline
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument
add a comment |Â
up vote
7
down vote
The screenshot that accompanies your query creates the impression that each table column should be just wide enough (but no wider) to typeset three instances of the word "hello", separated by whitespace. If this impression is correct, you should use the p
column type for both columns. The p
column type takes an argument -- the usable width. In the preamble, be sure to set up a length parameter and measure the width of "hello hello hello" via a settowidth
directive.
Oh, and don't use the booktabs
package (and midrule
directives) if you employ vertical lines. Instead, use hline
.
documentclass[11pt,a4paper]article
usepackagearray % for "extrarowheight" macro
newlengthmylen
settowidthmylensffamily hello hello hello % measure width of "hello hello hello"
begindocument
begincenter
sffamily % switch to sans-serif
setlengthextrarowheight2pt % for a more open "look"
begintabularpmylen
multicolumn1chello &
multicolumn1chello \[2pt]
hline
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument
add a comment |Â
up vote
7
down vote
up vote
7
down vote
The screenshot that accompanies your query creates the impression that each table column should be just wide enough (but no wider) to typeset three instances of the word "hello", separated by whitespace. If this impression is correct, you should use the p
column type for both columns. The p
column type takes an argument -- the usable width. In the preamble, be sure to set up a length parameter and measure the width of "hello hello hello" via a settowidth
directive.
Oh, and don't use the booktabs
package (and midrule
directives) if you employ vertical lines. Instead, use hline
.
documentclass[11pt,a4paper]article
usepackagearray % for "extrarowheight" macro
newlengthmylen
settowidthmylensffamily hello hello hello % measure width of "hello hello hello"
begindocument
begincenter
sffamily % switch to sans-serif
setlengthextrarowheight2pt % for a more open "look"
begintabularpmylen
multicolumn1chello &
multicolumn1chello \[2pt]
hline
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument
The screenshot that accompanies your query creates the impression that each table column should be just wide enough (but no wider) to typeset three instances of the word "hello", separated by whitespace. If this impression is correct, you should use the p
column type for both columns. The p
column type takes an argument -- the usable width. In the preamble, be sure to set up a length parameter and measure the width of "hello hello hello" via a settowidth
directive.
Oh, and don't use the booktabs
package (and midrule
directives) if you employ vertical lines. Instead, use hline
.
documentclass[11pt,a4paper]article
usepackagearray % for "extrarowheight" macro
newlengthmylen
settowidthmylensffamily hello hello hello % measure width of "hello hello hello"
begindocument
begincenter
sffamily % switch to sans-serif
setlengthextrarowheight2pt % for a more open "look"
begintabularpmylen
multicolumn1chello &
multicolumn1chello \[2pt]
hline
hello hello hello hello hello hello hello hello hello hello space infinity & hello hello hello hello \
hello hello hello hello hello & hello hello hello hello \
endtabular
endcenter
enddocument
edited Aug 27 at 13:01
answered Aug 26 at 18:49
Mico
263k30355731
263k30355731
add a comment |Â
add a comment |Â
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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f447812%2fhow-do-i-create-this-table%23new-answer', 'question_page');
);
Post as a guest
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
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
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
2
You cannot use vertical lines with
booktabs
horizontal rules. So you need to either replacetoprule
withhline
or get rid of the vertical line. Howevertoprule
is not the correct choice of rule, it should bemidrule
but I expect what you're really going for is a thicker line, which demands a different solution tex.stackexchange.com/questions/256731/â¦â Au101
Aug 26 at 16:46
2
In terms of the too wide table cell, there are various solutions, the most basic of which would be to use something like
p2cm
(where 2cm is a fairly arbitrary length, you will have to select the width that you would like to use) instead of ac
column. Withc
the column will be as wide as its contents, and if that means too wide for the page then unfortunately the table will run off the page, the line won't break, because you haven't told it when to break. Withp2cm
you tell it you want a 2cm wide cell and then the line will break to respect thatâ Au101
Aug 26 at 16:48
1
You can use
specialruleheavyrulewidth0pt0pt
: it will have the same thickness astoprule
but no vertical padding. An alternative: loadboldline
, from theshipunov
bundle, which defines horizontal and vertical lines with custom thickness.â Bernard
Aug 26 at 16:53