In a table how can I put the number in the middle of each column?
Clash Royale CLAN TAG#URR8PPP
up vote
2
down vote
favorite
documentclass[10pt]beamer
begindocument
begintabularp1.1cm
hline
multicolumn7textbfW1011daily \
hline
textbf1& textbf2&textbf3& textbfdots dots & textbf150& textbfdots dots & textbf252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
tables
add a comment |
up vote
2
down vote
favorite
documentclass[10pt]beamer
begindocument
begintabularp1.1cm
hline
multicolumn7textbfW1011daily \
hline
textbf1& textbf2&textbf3& textbfdots dots & textbf150& textbfdots dots & textbf252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
tables
All numbers or just the column headers?
– samcarter
Nov 28 at 14:08
@samcarter the headline
– Tommaso Dellolmo
Nov 28 at 14:09
add a comment |
up vote
2
down vote
favorite
up vote
2
down vote
favorite
documentclass[10pt]beamer
begindocument
begintabularp1.1cm
hline
multicolumn7textbfW1011daily \
hline
textbf1& textbf2&textbf3& textbfdots dots & textbf150& textbfdots dots & textbf252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
tables
documentclass[10pt]beamer
begindocument
begintabularp1.1cm
hline
multicolumn7textbfW1011daily \
hline
textbf1& textbf2&textbf3& textbfdots dots & textbf150& textbfdots dots & textbf252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
tables
tables
edited Nov 28 at 14:07
samcarter
83.2k794267
83.2k794267
asked Nov 28 at 14:01
Tommaso Dellolmo
1025
1025
All numbers or just the column headers?
– samcarter
Nov 28 at 14:08
@samcarter the headline
– Tommaso Dellolmo
Nov 28 at 14:09
add a comment |
All numbers or just the column headers?
– samcarter
Nov 28 at 14:08
@samcarter the headline
– Tommaso Dellolmo
Nov 28 at 14:09
All numbers or just the column headers?
– samcarter
Nov 28 at 14:08
All numbers or just the column headers?
– samcarter
Nov 28 at 14:08
@samcarter the headline
– Tommaso Dellolmo
Nov 28 at 14:09
@samcarter the headline
– Tommaso Dellolmo
Nov 28 at 14:09
add a comment |
2 Answers
2
active
oldest
votes
up vote
5
down vote
To centre the column headlines you can use makecell[c]...
or thead
from the makecell
package
documentclass[10pt]beamer
usepackagemakecell
renewcommandtheadfontbfseriesnormalsize
begindocument
begintabularp1.1cm
hline
multicolumn7theadW1011daily \
hline
thead1& thead2&thead3& theaddots dots & thead150& theaddots dots & thead252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
Personally I'd prefer a cleaner table without all the vertical lines and numbers aligned by their decimal marker:
documentclass[10pt]beamer
usepackagemakecell
usepackagebooktabs
usepackagetabularx
usepackagesiunitx
renewcommandtheadfontbfseriesnormalsize
begindocument
beginframe
begintabularxlinewidth%
@
S[table-format=4.4]
S[table-format=4.4]
S[table-format=4.4]
X
S[table-format=4.4]
X
S[table-format=4.4]
@
toprule
multicolumn7ctextbfW1011daily\
midrule
thead1 & thead2 & thead3& dots & thead150& dots & thead252\
midrule
1000.182 & 996.4293 & 993.6557 & dots & 992.7738 & dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots & 999.3244& dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots & 1030.053& dots & 961.9883\
vdots & vdots & vdots & & vdots & & vdots \
1013.578 &1023.227& 1071.947 & dots & 832.6109 & dots & 1143.922\
vdots & vdots & vdots & & vdots & & vdots \
734.5305 &821.8897 & 825.8748 & dots & 947.0167 & dots & 1356.77\
bottomrule
endtabularx
endframe
enddocument
add a comment |
up vote
2
down vote
I believe this answer has been addressed, here.
To keep it most similar to the math Latex that I know, I would use
documentclass[conference]IEEEtran
begindocument
begintable
centering
begintabularc
hline
Reconstruction strategy & aa & bb( %) \ hline
Classic & 3342 voxels & 68 % \ hline
VC & 4296 voxels & 87 % \ hline
V m=7 & 4745 voxels & 96 % \ hline
endtabular
newlinenewline
captiontitlelabeltab1
endtable
enddocument
Credit to sandoval31 for that snippet of code.
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
To centre the column headlines you can use makecell[c]...
or thead
from the makecell
package
documentclass[10pt]beamer
usepackagemakecell
renewcommandtheadfontbfseriesnormalsize
begindocument
begintabularp1.1cm
hline
multicolumn7theadW1011daily \
hline
thead1& thead2&thead3& theaddots dots & thead150& theaddots dots & thead252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
Personally I'd prefer a cleaner table without all the vertical lines and numbers aligned by their decimal marker:
documentclass[10pt]beamer
usepackagemakecell
usepackagebooktabs
usepackagetabularx
usepackagesiunitx
renewcommandtheadfontbfseriesnormalsize
begindocument
beginframe
begintabularxlinewidth%
@
S[table-format=4.4]
S[table-format=4.4]
S[table-format=4.4]
X
S[table-format=4.4]
X
S[table-format=4.4]
@
toprule
multicolumn7ctextbfW1011daily\
midrule
thead1 & thead2 & thead3& dots & thead150& dots & thead252\
midrule
1000.182 & 996.4293 & 993.6557 & dots & 992.7738 & dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots & 999.3244& dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots & 1030.053& dots & 961.9883\
vdots & vdots & vdots & & vdots & & vdots \
1013.578 &1023.227& 1071.947 & dots & 832.6109 & dots & 1143.922\
vdots & vdots & vdots & & vdots & & vdots \
734.5305 &821.8897 & 825.8748 & dots & 947.0167 & dots & 1356.77\
bottomrule
endtabularx
endframe
enddocument
add a comment |
up vote
5
down vote
To centre the column headlines you can use makecell[c]...
or thead
from the makecell
package
documentclass[10pt]beamer
usepackagemakecell
renewcommandtheadfontbfseriesnormalsize
begindocument
begintabularp1.1cm
hline
multicolumn7theadW1011daily \
hline
thead1& thead2&thead3& theaddots dots & thead150& theaddots dots & thead252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
Personally I'd prefer a cleaner table without all the vertical lines and numbers aligned by their decimal marker:
documentclass[10pt]beamer
usepackagemakecell
usepackagebooktabs
usepackagetabularx
usepackagesiunitx
renewcommandtheadfontbfseriesnormalsize
begindocument
beginframe
begintabularxlinewidth%
@
S[table-format=4.4]
S[table-format=4.4]
S[table-format=4.4]
X
S[table-format=4.4]
X
S[table-format=4.4]
@
toprule
multicolumn7ctextbfW1011daily\
midrule
thead1 & thead2 & thead3& dots & thead150& dots & thead252\
midrule
1000.182 & 996.4293 & 993.6557 & dots & 992.7738 & dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots & 999.3244& dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots & 1030.053& dots & 961.9883\
vdots & vdots & vdots & & vdots & & vdots \
1013.578 &1023.227& 1071.947 & dots & 832.6109 & dots & 1143.922\
vdots & vdots & vdots & & vdots & & vdots \
734.5305 &821.8897 & 825.8748 & dots & 947.0167 & dots & 1356.77\
bottomrule
endtabularx
endframe
enddocument
add a comment |
up vote
5
down vote
up vote
5
down vote
To centre the column headlines you can use makecell[c]...
or thead
from the makecell
package
documentclass[10pt]beamer
usepackagemakecell
renewcommandtheadfontbfseriesnormalsize
begindocument
begintabularp1.1cm
hline
multicolumn7theadW1011daily \
hline
thead1& thead2&thead3& theaddots dots & thead150& theaddots dots & thead252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
Personally I'd prefer a cleaner table without all the vertical lines and numbers aligned by their decimal marker:
documentclass[10pt]beamer
usepackagemakecell
usepackagebooktabs
usepackagetabularx
usepackagesiunitx
renewcommandtheadfontbfseriesnormalsize
begindocument
beginframe
begintabularxlinewidth%
@
S[table-format=4.4]
S[table-format=4.4]
S[table-format=4.4]
X
S[table-format=4.4]
X
S[table-format=4.4]
@
toprule
multicolumn7ctextbfW1011daily\
midrule
thead1 & thead2 & thead3& dots & thead150& dots & thead252\
midrule
1000.182 & 996.4293 & 993.6557 & dots & 992.7738 & dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots & 999.3244& dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots & 1030.053& dots & 961.9883\
vdots & vdots & vdots & & vdots & & vdots \
1013.578 &1023.227& 1071.947 & dots & 832.6109 & dots & 1143.922\
vdots & vdots & vdots & & vdots & & vdots \
734.5305 &821.8897 & 825.8748 & dots & 947.0167 & dots & 1356.77\
bottomrule
endtabularx
endframe
enddocument
To centre the column headlines you can use makecell[c]...
or thead
from the makecell
package
documentclass[10pt]beamer
usepackagemakecell
renewcommandtheadfontbfseriesnormalsize
begindocument
begintabularp1.1cm
hline
multicolumn7theadW1011daily \
hline
thead1& thead2&thead3& theaddots dots & thead150& theaddots dots & thead252 \
hline
1000.182 & 996.4293 &993.6557 & dots dots & 992.7738& dots dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots dots & 999.3244& dots dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots dots & 1030.053& dots dots & 961.9883\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
1013.578 &1023.227& 1071.947 & dots dots & 832.6109 & dots dots & 1143.922\
vdots & vdots & vdots & vdots & vdots & vdots & vdots \
734.5305 &821.8897 & 825.8748 & dots dots & 947.0167 & dots dots & 1356.77\
hline
endtabular
enddocument
Personally I'd prefer a cleaner table without all the vertical lines and numbers aligned by their decimal marker:
documentclass[10pt]beamer
usepackagemakecell
usepackagebooktabs
usepackagetabularx
usepackagesiunitx
renewcommandtheadfontbfseriesnormalsize
begindocument
beginframe
begintabularxlinewidth%
@
S[table-format=4.4]
S[table-format=4.4]
S[table-format=4.4]
X
S[table-format=4.4]
X
S[table-format=4.4]
@
toprule
multicolumn7ctextbfW1011daily\
midrule
thead1 & thead2 & thead3& dots & thead150& dots & thead252\
midrule
1000.182 & 996.4293 & 993.6557 & dots & 992.7738 & dots & 987.8528 \
996.6344& 990.0872 & 990.881 & dots & 999.3244& dots & 989.349\
990.2731 & 987.3196 & 988.7692& dots & 1030.053& dots & 961.9883\
vdots & vdots & vdots & & vdots & & vdots \
1013.578 &1023.227& 1071.947 & dots & 832.6109 & dots & 1143.922\
vdots & vdots & vdots & & vdots & & vdots \
734.5305 &821.8897 & 825.8748 & dots & 947.0167 & dots & 1356.77\
bottomrule
endtabularx
endframe
enddocument
edited Nov 28 at 16:57
answered Nov 28 at 14:11
samcarter
83.2k794267
83.2k794267
add a comment |
add a comment |
up vote
2
down vote
I believe this answer has been addressed, here.
To keep it most similar to the math Latex that I know, I would use
documentclass[conference]IEEEtran
begindocument
begintable
centering
begintabularc
hline
Reconstruction strategy & aa & bb( %) \ hline
Classic & 3342 voxels & 68 % \ hline
VC & 4296 voxels & 87 % \ hline
V m=7 & 4745 voxels & 96 % \ hline
endtabular
newlinenewline
captiontitlelabeltab1
endtable
enddocument
Credit to sandoval31 for that snippet of code.
add a comment |
up vote
2
down vote
I believe this answer has been addressed, here.
To keep it most similar to the math Latex that I know, I would use
documentclass[conference]IEEEtran
begindocument
begintable
centering
begintabularc
hline
Reconstruction strategy & aa & bb( %) \ hline
Classic & 3342 voxels & 68 % \ hline
VC & 4296 voxels & 87 % \ hline
V m=7 & 4745 voxels & 96 % \ hline
endtabular
newlinenewline
captiontitlelabeltab1
endtable
enddocument
Credit to sandoval31 for that snippet of code.
add a comment |
up vote
2
down vote
up vote
2
down vote
I believe this answer has been addressed, here.
To keep it most similar to the math Latex that I know, I would use
documentclass[conference]IEEEtran
begindocument
begintable
centering
begintabularc
hline
Reconstruction strategy & aa & bb( %) \ hline
Classic & 3342 voxels & 68 % \ hline
VC & 4296 voxels & 87 % \ hline
V m=7 & 4745 voxels & 96 % \ hline
endtabular
newlinenewline
captiontitlelabeltab1
endtable
enddocument
Credit to sandoval31 for that snippet of code.
I believe this answer has been addressed, here.
To keep it most similar to the math Latex that I know, I would use
documentclass[conference]IEEEtran
begindocument
begintable
centering
begintabularc
hline
Reconstruction strategy & aa & bb( %) \ hline
Classic & 3342 voxels & 68 % \ hline
VC & 4296 voxels & 87 % \ hline
V m=7 & 4745 voxels & 96 % \ hline
endtabular
newlinenewline
captiontitlelabeltab1
endtable
enddocument
Credit to sandoval31 for that snippet of code.
answered Nov 28 at 14:08
apjansing
212
212
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f462169%2fin-a-table-how-can-i-put-the-number-in-the-middle-of-each-column%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
All numbers or just the column headers?
– samcarter
Nov 28 at 14:08
@samcarter the headline
– Tommaso Dellolmo
Nov 28 at 14:09