Table number of columns
up vote
1
down vote
favorite
Where do I please make mistake when I want to delete two columns?
I have this code:
documentclass[12pt,a4paper]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[czech]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable text block parameters
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{booktabs,siunitx}
newcommand{Mo}{mathrm{M}_{odot}}
newcommand{Ro}{mathrm{R}_{odot}}
begin{document}
begin{table}
footnotesize
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
S[table-format=1.6(2)]
S[table-format=5.3(2)]
S[table-format=2.3]
*{5}{S[table-format=3.2]}
@{}
}
toprule
Zdroj &
{$P$} &
{$T_0$} &
{$e$} &
{$omega$} &
{$i$} &
{$a$} &
{$a$} &
{$M_1$} \[0.33ex]
& {(dny)}
& {(RJD)}
& {}
& {(${}^circ$)}
& {(${}^circ$)}
& {($Ro$)}
& {($Mo$)}
& {($Mo$)}
\
midrule
1 & 5,732436(15) & 54002,780(46) & 12.345 & 123.45 & 123.45 & 123.45 & 123.45 &\
bottomrule
addlinespace
multicolumn{9}{@{}l}{textit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabular*}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
I edited in bad way:
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx,ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L cc c c *{2}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & mc{$e$} & mc{$omega$} & mc{$i$} & mc{$a$} & mc{$a$} & multicolumn{1}{c@{}}{$M_1$} \[0.33ex]
& (dny) & (RJD) & & mc{($^circ$)} & mc{($mathrm{M}_{odot}$)} & multicolumn{1}{c@{}}{($mathrm{M}_{odot}$)} \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
Thank you
tables
add a comment |
up vote
1
down vote
favorite
Where do I please make mistake when I want to delete two columns?
I have this code:
documentclass[12pt,a4paper]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[czech]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable text block parameters
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{booktabs,siunitx}
newcommand{Mo}{mathrm{M}_{odot}}
newcommand{Ro}{mathrm{R}_{odot}}
begin{document}
begin{table}
footnotesize
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
S[table-format=1.6(2)]
S[table-format=5.3(2)]
S[table-format=2.3]
*{5}{S[table-format=3.2]}
@{}
}
toprule
Zdroj &
{$P$} &
{$T_0$} &
{$e$} &
{$omega$} &
{$i$} &
{$a$} &
{$a$} &
{$M_1$} \[0.33ex]
& {(dny)}
& {(RJD)}
& {}
& {(${}^circ$)}
& {(${}^circ$)}
& {($Ro$)}
& {($Mo$)}
& {($Mo$)}
\
midrule
1 & 5,732436(15) & 54002,780(46) & 12.345 & 123.45 & 123.45 & 123.45 & 123.45 &\
bottomrule
addlinespace
multicolumn{9}{@{}l}{textit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabular*}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
I edited in bad way:
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx,ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L cc c c *{2}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & mc{$e$} & mc{$omega$} & mc{$i$} & mc{$a$} & mc{$a$} & multicolumn{1}{c@{}}{$M_1$} \[0.33ex]
& (dny) & (RJD) & & mc{($^circ$)} & mc{($mathrm{M}_{odot}$)} & multicolumn{1}{c@{}}{($mathrm{M}_{odot}$)} \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
Thank you
tables
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Where do I please make mistake when I want to delete two columns?
I have this code:
documentclass[12pt,a4paper]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[czech]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable text block parameters
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{booktabs,siunitx}
newcommand{Mo}{mathrm{M}_{odot}}
newcommand{Ro}{mathrm{R}_{odot}}
begin{document}
begin{table}
footnotesize
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
S[table-format=1.6(2)]
S[table-format=5.3(2)]
S[table-format=2.3]
*{5}{S[table-format=3.2]}
@{}
}
toprule
Zdroj &
{$P$} &
{$T_0$} &
{$e$} &
{$omega$} &
{$i$} &
{$a$} &
{$a$} &
{$M_1$} \[0.33ex]
& {(dny)}
& {(RJD)}
& {}
& {(${}^circ$)}
& {(${}^circ$)}
& {($Ro$)}
& {($Mo$)}
& {($Mo$)}
\
midrule
1 & 5,732436(15) & 54002,780(46) & 12.345 & 123.45 & 123.45 & 123.45 & 123.45 &\
bottomrule
addlinespace
multicolumn{9}{@{}l}{textit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabular*}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
I edited in bad way:
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx,ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L cc c c *{2}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & mc{$e$} & mc{$omega$} & mc{$i$} & mc{$a$} & mc{$a$} & multicolumn{1}{c@{}}{$M_1$} \[0.33ex]
& (dny) & (RJD) & & mc{($^circ$)} & mc{($mathrm{M}_{odot}$)} & multicolumn{1}{c@{}}{($mathrm{M}_{odot}$)} \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
Thank you
tables
Where do I please make mistake when I want to delete two columns?
I have this code:
documentclass[12pt,a4paper]{report}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
usepackage[czech]{babel}
usepackage[margin=2.5cm]{geometry} % choose suitable text block parameters
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{booktabs,siunitx}
newcommand{Mo}{mathrm{M}_{odot}}
newcommand{Ro}{mathrm{R}_{odot}}
begin{document}
begin{table}
footnotesize
begin{tabular*}{textwidth}{
@{extracolsep{fill}}
l
S[table-format=1.6(2)]
S[table-format=5.3(2)]
S[table-format=2.3]
*{5}{S[table-format=3.2]}
@{}
}
toprule
Zdroj &
{$P$} &
{$T_0$} &
{$e$} &
{$omega$} &
{$i$} &
{$a$} &
{$a$} &
{$M_1$} \[0.33ex]
& {(dny)}
& {(RJD)}
& {}
& {(${}^circ$)}
& {(${}^circ$)}
& {($Ro$)}
& {($Mo$)}
& {($Mo$)}
\
midrule
1 & 5,732436(15) & 54002,780(46) & 12.345 & 123.45 & 123.45 & 123.45 & 123.45 &\
bottomrule
addlinespace
multicolumn{9}{@{}l}{textit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabular*}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
I edited in bad way:
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath,amssymb,bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx,ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L cc c c *{2}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & mc{$e$} & mc{$omega$} & mc{$i$} & mc{$a$} & mc{$a$} & multicolumn{1}{c@{}}{$M_1$} \[0.33ex]
& (dny) & (RJD) & & mc{($^circ$)} & mc{($mathrm{M}_{odot}$)} & multicolumn{1}{c@{}}{($mathrm{M}_{odot}$)} \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
Thank you
tables
tables
edited 19 hours ago
Bernard
162k767192
162k767192
asked 19 hours ago
Elisabeth
1536
1536
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
Your table has 8 centred columns, not 6. I took the opportunity to simplify your code – what's the point of using multicolumn{1}{c}{...}
in a c
column?
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L *{8}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & $e$ & $omega$ & $i$ & $a$ & $a$ & $M_1$ \[0.33ex]
& (dny) & (RJD) & & ($^circ$) & ($mathrm{M}_{odot}$) & ($mathrm{M}_{odot}$) \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
Your table has 8 centred columns, not 6. I took the opportunity to simplify your code – what's the point of using multicolumn{1}{c}{...}
in a c
column?
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L *{8}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & $e$ & $omega$ & $i$ & $a$ & $a$ & $M_1$ \[0.33ex]
& (dny) & (RJD) & & ($^circ$) & ($mathrm{M}_{odot}$) & ($mathrm{M}_{odot}$) \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
add a comment |
up vote
2
down vote
accepted
Your table has 8 centred columns, not 6. I took the opportunity to simplify your code – what's the point of using multicolumn{1}{c}{...}
in a c
column?
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L *{8}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & $e$ & $omega$ & $i$ & $a$ & $a$ & $M_1$ \[0.33ex]
& (dny) & (RJD) & & ($^circ$) & ($mathrm{M}_{odot}$) & ($mathrm{M}_{odot}$) \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
Your table has 8 centred columns, not 6. I took the opportunity to simplify your code – what's the point of using multicolumn{1}{c}{...}
in a c
column?
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L *{8}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & $e$ & $omega$ & $i$ & $a$ & $a$ & $M_1$ \[0.33ex]
& (dny) & (RJD) & & ($^circ$) & ($mathrm{M}_{odot}$) & ($mathrm{M}_{odot}$) \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
Your table has 8 centred columns, not 6. I took the opportunity to simplify your code – what's the point of using multicolumn{1}{c}{...}
in a c
column?
documentclass[12pt,a4paper]{report}
usepackage[english,czech]{babel}
usepackage[margin=2.5cm]{geometry}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}
usepackage{lmodern,textcomp}
usepackage{amsmath, amssymb, bm}
usepackage[nottoc]{tocbibind}
usepackage{icomma,dcolumn,booktabs}
newcommand{mc}[1]{multicolumn{1}{c}{#1}}
usepackage{tabularx, ragged2e}
newcolumntype{d}[1]{D{.}{,}{#1}}
newcolumntype{L}{>{RaggedRightarraybackslash}X}
begin{document}
begin{table}small
setlengthtabcolsep{3pt}
begin{tabularx}{textwidth}{@{} L *{8}{c} @{}}
toprule
Zdroj & $P$ & $T_0$ & $e$ & $omega$ & $i$ & $a$ & $a$ & $M_1$ \[0.33ex]
& (dny) & (RJD) & & ($^circ$) & ($mathrm{M}_{odot}$) & ($mathrm{M}_{odot}$) \
midrule
1 & 5,732436(15) & 54002,780(46) & 0,0910(37) & 12.345 & 123.45 & 123.45 \
bottomrule
addlinespace
multicolumn{6}{@{}l}{footnotesizetextit{Pozn:} $^a$ Směrodatná chyba odhadu metodou Monte Carlo.}
end{tabularx}
caption{Maximálně věrohodné odhady v~modelu M.}label{tab03:Nejaka}
end{table}
end{document}
answered 18 hours ago
Bernard
162k767192
162k767192
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461670%2ftable-number-of-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