I want to make a table like this. But i am unable to do the specific table












-2















documentclass{article}

usepackage{booktabs}
usepackage{multirow}
usepackage{siunitx}

begin{document}

begin{table}
begin{tabular}{lSSSSSS}
toprule
multirow{3}{0.3cm}{} &
multicolumn{3}{c}{Baripada } &
multicolumn{3}{c}{Jagatsinghpur} \
hline
& {Absolute Frequency } & {Frequency(%)} & {Cumulative Frequency} & {Absolute Frequency} & {Frequency(%)} & {Cumulative Frequency} \
midrule
Recently & 0& 0.00& 0 &6& 3.33& 6 \
More than 5 years & 3& 1.67& 3 &47& 26.11 &53\
Less than 10 years & 47& 26.11 &50& 14 &7.78& 67 \
More than 10 years & 58& 32.22& 108& 20 &11.11& 87 \
Since the party formed & 72& 40.00& 180& 93& 51.67& 180 \hline
Toatal& 180&100&*&180&100&*\
bottomrule
end{tabular}
end{table}

end{document}









share|improve this question




















  • 4





    Welcome to TeX.SX. What is the specific table?

    – Johannes_B
    Feb 4 at 6:49






  • 3





    Welcome to TeX.SE! Could you please explain what you want to achieve?

    – CarLaTeX
    Feb 4 at 6:52






  • 2





    You have the word Frequency in every column. Get it out to save space.

    – Johannes_B
    Feb 4 at 6:54











  • any news? now you have two examples of your table ...

    – Zarko
    Feb 5 at 9:16
















-2















documentclass{article}

usepackage{booktabs}
usepackage{multirow}
usepackage{siunitx}

begin{document}

begin{table}
begin{tabular}{lSSSSSS}
toprule
multirow{3}{0.3cm}{} &
multicolumn{3}{c}{Baripada } &
multicolumn{3}{c}{Jagatsinghpur} \
hline
& {Absolute Frequency } & {Frequency(%)} & {Cumulative Frequency} & {Absolute Frequency} & {Frequency(%)} & {Cumulative Frequency} \
midrule
Recently & 0& 0.00& 0 &6& 3.33& 6 \
More than 5 years & 3& 1.67& 3 &47& 26.11 &53\
Less than 10 years & 47& 26.11 &50& 14 &7.78& 67 \
More than 10 years & 58& 32.22& 108& 20 &11.11& 87 \
Since the party formed & 72& 40.00& 180& 93& 51.67& 180 \hline
Toatal& 180&100&*&180&100&*\
bottomrule
end{tabular}
end{table}

end{document}









share|improve this question




















  • 4





    Welcome to TeX.SX. What is the specific table?

    – Johannes_B
    Feb 4 at 6:49






  • 3





    Welcome to TeX.SE! Could you please explain what you want to achieve?

    – CarLaTeX
    Feb 4 at 6:52






  • 2





    You have the word Frequency in every column. Get it out to save space.

    – Johannes_B
    Feb 4 at 6:54











  • any news? now you have two examples of your table ...

    – Zarko
    Feb 5 at 9:16














-2












-2








-2


0






documentclass{article}

usepackage{booktabs}
usepackage{multirow}
usepackage{siunitx}

begin{document}

begin{table}
begin{tabular}{lSSSSSS}
toprule
multirow{3}{0.3cm}{} &
multicolumn{3}{c}{Baripada } &
multicolumn{3}{c}{Jagatsinghpur} \
hline
& {Absolute Frequency } & {Frequency(%)} & {Cumulative Frequency} & {Absolute Frequency} & {Frequency(%)} & {Cumulative Frequency} \
midrule
Recently & 0& 0.00& 0 &6& 3.33& 6 \
More than 5 years & 3& 1.67& 3 &47& 26.11 &53\
Less than 10 years & 47& 26.11 &50& 14 &7.78& 67 \
More than 10 years & 58& 32.22& 108& 20 &11.11& 87 \
Since the party formed & 72& 40.00& 180& 93& 51.67& 180 \hline
Toatal& 180&100&*&180&100&*\
bottomrule
end{tabular}
end{table}

end{document}









share|improve this question
















documentclass{article}

usepackage{booktabs}
usepackage{multirow}
usepackage{siunitx}

begin{document}

begin{table}
begin{tabular}{lSSSSSS}
toprule
multirow{3}{0.3cm}{} &
multicolumn{3}{c}{Baripada } &
multicolumn{3}{c}{Jagatsinghpur} \
hline
& {Absolute Frequency } & {Frequency(%)} & {Cumulative Frequency} & {Absolute Frequency} & {Frequency(%)} & {Cumulative Frequency} \
midrule
Recently & 0& 0.00& 0 &6& 3.33& 6 \
More than 5 years & 3& 1.67& 3 &47& 26.11 &53\
Less than 10 years & 47& 26.11 &50& 14 &7.78& 67 \
More than 10 years & 58& 32.22& 108& 20 &11.11& 87 \
Since the party formed & 72& 40.00& 180& 93& 51.67& 180 \hline
Toatal& 180&100&*&180&100&*\
bottomrule
end{tabular}
end{table}

end{document}






tables






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 4 at 6:48









Johannes_B

21k351204




21k351204










asked Feb 4 at 6:46









Pratapa Chandra NayakPratapa Chandra Nayak

31




31








  • 4





    Welcome to TeX.SX. What is the specific table?

    – Johannes_B
    Feb 4 at 6:49






  • 3





    Welcome to TeX.SE! Could you please explain what you want to achieve?

    – CarLaTeX
    Feb 4 at 6:52






  • 2





    You have the word Frequency in every column. Get it out to save space.

    – Johannes_B
    Feb 4 at 6:54











  • any news? now you have two examples of your table ...

    – Zarko
    Feb 5 at 9:16














  • 4





    Welcome to TeX.SX. What is the specific table?

    – Johannes_B
    Feb 4 at 6:49






  • 3





    Welcome to TeX.SE! Could you please explain what you want to achieve?

    – CarLaTeX
    Feb 4 at 6:52






  • 2





    You have the word Frequency in every column. Get it out to save space.

    – Johannes_B
    Feb 4 at 6:54











  • any news? now you have two examples of your table ...

    – Zarko
    Feb 5 at 9:16








4




4





Welcome to TeX.SX. What is the specific table?

– Johannes_B
Feb 4 at 6:49





Welcome to TeX.SX. What is the specific table?

– Johannes_B
Feb 4 at 6:49




3




3





Welcome to TeX.SE! Could you please explain what you want to achieve?

– CarLaTeX
Feb 4 at 6:52





Welcome to TeX.SE! Could you please explain what you want to achieve?

– CarLaTeX
Feb 4 at 6:52




2




2





You have the word Frequency in every column. Get it out to save space.

– Johannes_B
Feb 4 at 6:54





You have the word Frequency in every column. Get it out to save space.

– Johannes_B
Feb 4 at 6:54













any news? now you have two examples of your table ...

– Zarko
Feb 5 at 9:16





any news? now you have two examples of your table ...

– Zarko
Feb 5 at 9:16










1 Answer
1






active

oldest

votes


















9















  • your table is too wide to fit in the text area of your page

  • you have two possibilities:


    • use abbreviations for column heads and write their meaning as table notes below the table (for this is easily done with the threeparttable package)

    • make the text area wider (by using the geometry package) and write the column headers in two lines (using the thead macro from the package makecell)




  • first case:



    documentclass{article}

    usepackage{booktabs, threeparttable}
    usepackage{siunitx}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{threeparttable}[htb]
    caption{My table}
    label{tab:mytable}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    midrule[heavyrulewidth]
    end{tabular*}
    begin{tablenotes}[para,flushleft]footnotesize
    item[a] Absolute Frequency
    item[b] Frequency
    item[c] Cumulative Frequency
    end{tablenotes}
    end{threeparttable}
    end{table}
    end{document}



enter image description here



(red lines indicate text borders)





  • second case



    documentclass{article}
    usepackage{geometry}

    usepackage{booktabs, makecell}
    renewcommandtheadfont{normalsize}
    renewcommandtheadgape{}
    usepackage{siunitx}

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    bottomrule
    end{tabular*}
    end{table}
    end{document}



enter image description here






share|improve this answer


























  • @Andrew Swann, thank you for corrections of answer!

    – Zarko
    Feb 4 at 9:40











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473282%2fi-want-to-make-a-table-like-this-but-i-am-unable-to-do-the-specific-table%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









9















  • your table is too wide to fit in the text area of your page

  • you have two possibilities:


    • use abbreviations for column heads and write their meaning as table notes below the table (for this is easily done with the threeparttable package)

    • make the text area wider (by using the geometry package) and write the column headers in two lines (using the thead macro from the package makecell)




  • first case:



    documentclass{article}

    usepackage{booktabs, threeparttable}
    usepackage{siunitx}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{threeparttable}[htb]
    caption{My table}
    label{tab:mytable}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    midrule[heavyrulewidth]
    end{tabular*}
    begin{tablenotes}[para,flushleft]footnotesize
    item[a] Absolute Frequency
    item[b] Frequency
    item[c] Cumulative Frequency
    end{tablenotes}
    end{threeparttable}
    end{table}
    end{document}



enter image description here



(red lines indicate text borders)





  • second case



    documentclass{article}
    usepackage{geometry}

    usepackage{booktabs, makecell}
    renewcommandtheadfont{normalsize}
    renewcommandtheadgape{}
    usepackage{siunitx}

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    bottomrule
    end{tabular*}
    end{table}
    end{document}



enter image description here






share|improve this answer


























  • @Andrew Swann, thank you for corrections of answer!

    – Zarko
    Feb 4 at 9:40
















9















  • your table is too wide to fit in the text area of your page

  • you have two possibilities:


    • use abbreviations for column heads and write their meaning as table notes below the table (for this is easily done with the threeparttable package)

    • make the text area wider (by using the geometry package) and write the column headers in two lines (using the thead macro from the package makecell)




  • first case:



    documentclass{article}

    usepackage{booktabs, threeparttable}
    usepackage{siunitx}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{threeparttable}[htb]
    caption{My table}
    label{tab:mytable}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    midrule[heavyrulewidth]
    end{tabular*}
    begin{tablenotes}[para,flushleft]footnotesize
    item[a] Absolute Frequency
    item[b] Frequency
    item[c] Cumulative Frequency
    end{tablenotes}
    end{threeparttable}
    end{table}
    end{document}



enter image description here



(red lines indicate text borders)





  • second case



    documentclass{article}
    usepackage{geometry}

    usepackage{booktabs, makecell}
    renewcommandtheadfont{normalsize}
    renewcommandtheadgape{}
    usepackage{siunitx}

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    bottomrule
    end{tabular*}
    end{table}
    end{document}



enter image description here






share|improve this answer


























  • @Andrew Swann, thank you for corrections of answer!

    – Zarko
    Feb 4 at 9:40














9












9








9








  • your table is too wide to fit in the text area of your page

  • you have two possibilities:


    • use abbreviations for column heads and write their meaning as table notes below the table (for this is easily done with the threeparttable package)

    • make the text area wider (by using the geometry package) and write the column headers in two lines (using the thead macro from the package makecell)




  • first case:



    documentclass{article}

    usepackage{booktabs, threeparttable}
    usepackage{siunitx}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{threeparttable}[htb]
    caption{My table}
    label{tab:mytable}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    midrule[heavyrulewidth]
    end{tabular*}
    begin{tablenotes}[para,flushleft]footnotesize
    item[a] Absolute Frequency
    item[b] Frequency
    item[c] Cumulative Frequency
    end{tablenotes}
    end{threeparttable}
    end{table}
    end{document}



enter image description here



(red lines indicate text borders)





  • second case



    documentclass{article}
    usepackage{geometry}

    usepackage{booktabs, makecell}
    renewcommandtheadfont{normalsize}
    renewcommandtheadgape{}
    usepackage{siunitx}

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    bottomrule
    end{tabular*}
    end{table}
    end{document}



enter image description here






share|improve this answer
















  • your table is too wide to fit in the text area of your page

  • you have two possibilities:


    • use abbreviations for column heads and write their meaning as table notes below the table (for this is easily done with the threeparttable package)

    • make the text area wider (by using the geometry package) and write the column headers in two lines (using the thead macro from the package makecell)




  • first case:



    documentclass{article}

    usepackage{booktabs, threeparttable}
    usepackage{siunitx}

    %---------------- show page layout. don't use in a real document!
    usepackage{showframe}
    renewcommandShowFrameLinethickness{0.15pt}
    renewcommand*ShowFrameColor{color{red}}
    %---------------------------------------------------------------%

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{threeparttable}[htb]
    caption{My table}
    label{tab:mytable}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}}
    & {AFtnote{a}}
    & {Ftnote{b} (%)}
    & {CFtnote{c}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    midrule[heavyrulewidth]
    end{tabular*}
    begin{tablenotes}[para,flushleft]footnotesize
    item[a] Absolute Frequency
    item[b] Frequency
    item[c] Cumulative Frequency
    end{tablenotes}
    end{threeparttable}
    end{table}
    end{document}



enter image description here



(red lines indicate text borders)





  • second case



    documentclass{article}
    usepackage{geometry}

    usepackage{booktabs, makecell}
    renewcommandtheadfont{normalsize}
    renewcommandtheadgape{}
    usepackage{siunitx}

    begin{document}
    begin{table}
    setlengthtabcolsep{0pt}
    begin{tabular*}{linewidth}{@{extracolsep{fill}}
    l
    *{2}{S[table-format=3.0]
    S[table-format=3.2]
    S[table-format=3.0]}
    }
    toprule
    & multicolumn{3}{c}{Baripada}
    & multicolumn{3}{c}{Jagatsinghpur} \
    cmidrule{2-4}cmidrule{5-7}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}}
    & {thead{Absolute\ Frequency}}
    & {thead{Frequency\ (%)}}
    & {thead{Cumulative\ Frequency}} \
    midrule
    Recently & 0 & 0.00 & 0 & 6 & 3.33 & 6 \
    More than 5 years & 3 & 1.67 & 3 & 47 & 26.11 & 53 \
    Less than 10 years & 47 & 26.11 & 50 & 14 & 7.78 & 67 \
    More than 10 years & 58 & 32.22 & 108 & 20 & 11.11 & 87 \
    Since the party formed & 72 & 40.00 & 180 & 93 & 51.67 & 180 \
    midrule
    Toatal & 180 & 100 & * & 180 & 100 & * \
    bottomrule
    end{tabular*}
    end{table}
    end{document}



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 4 at 9:28









Andrew Swann

77.7k9130331




77.7k9130331










answered Feb 4 at 8:55









ZarkoZarko

127k868167




127k868167













  • @Andrew Swann, thank you for corrections of answer!

    – Zarko
    Feb 4 at 9:40



















  • @Andrew Swann, thank you for corrections of answer!

    – Zarko
    Feb 4 at 9:40

















@Andrew Swann, thank you for corrections of answer!

– Zarko
Feb 4 at 9:40





@Andrew Swann, thank you for corrections of answer!

– Zarko
Feb 4 at 9:40


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f473282%2fi-want-to-make-a-table-like-this-but-i-am-unable-to-do-the-specific-table%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

Human spaceflight

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

File:DeusFollowingSea.jpg