Table formatting top left corner captionHow to force table caption on top?placing caption on the top right...

Does SQL Server 2017, including older versions, support 8k disk sector sizes?

Finding a mistake using Mayer-Vietoris

Why has the mole been redefined for 2019?

Roman Numerals equation 1

How long is the D&D Starter Set campaign?

Why is mind meld hard for T'pol in Star Trek: Enterprise?

Why are the books in the Game of Thrones citadel library shelved spine inwards?

Early credit roll before the end of the film

In Linux what happens if 1000 files in a directory are moved to another location while another 300 files were added to the source directory?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

What is 6÷2×(1+2) =?

Why zero tolerance on nudity in space?

Can a person refuse a presidential pardon?

Blindfold battle as a gladiatorial spectacle - what are the tactics and communication methods?

How to solve a large system of linear algebra?

Digits in an algebraic irrational number

Why would space fleets be aligned?

If I delete my router's history can my ISP still provide it to my parents?

Why do no American passenger airlines still operate dedicated cargo flights?

How much mayhem could I cause as a sentient fish?

Do authors have to be politically correct in article-writing?

What's a good word to describe a public place that looks like it wouldn't be rough?

Can making a creature unable to attack after it has been assigned as an attacker remove it from combat?

Caruana vs Carlsen game 10 (WCC) why not 18...Nxb6?



Table formatting top left corner caption


How to force table caption on top?placing caption on the top right or top left -Table caption align top-rightTable and caption formattingProblem with formatting two tabulars and long caption in table*Double hline and no top left cornerFormatting caption so it doesn't run off the table widthRemove top corner of a tableCaption at left side of the tableLeft align caption of table













4















I have a pretty typical format I follow for tables due to restrictions imposed by professors. While we are not required to use LaTeX it makes my life easier in terms of formatting and so on. However, due to the table format we must follow I am unable to use captions in my tables because I have struggled with a way to try and move them to the correct location. This in turn forces me to keep track of table numbers and all the annoying things that LaTeX tracks for us. I've included the format and what I used to create it below.enter image description here



begin{table}[H]
centering
setlength{arrayrulewidth}{2pt}
begin{tabular}{cccccc}
multicolumn{5}{l}{textbf{Table 3} Main Effects and Interactions}\
hline\
underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
hline
end{tabular}
label{tab:effects}
end{table}


I wanted to see if anyone knew of a way that I could position the table number and caption in the way that I have in the image so that I don't have to manually keep track of the numbers myself. I've tried things like defining the caption above the tabular environment and left justifying it but it hasn't worked. I don't necessarily agree with the positioning requirement but it effects our grade so I don't have much of a choice. Any help would be greatly appreciated.










share|improve this question







New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2





    Welcome to TeX.SX. Your "Minimal Working Example" (MWE) should start with documentclass, include all relevant usepackage commands, end with end{document} and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..

    – Sandy G
    8 hours ago
















4















I have a pretty typical format I follow for tables due to restrictions imposed by professors. While we are not required to use LaTeX it makes my life easier in terms of formatting and so on. However, due to the table format we must follow I am unable to use captions in my tables because I have struggled with a way to try and move them to the correct location. This in turn forces me to keep track of table numbers and all the annoying things that LaTeX tracks for us. I've included the format and what I used to create it below.enter image description here



begin{table}[H]
centering
setlength{arrayrulewidth}{2pt}
begin{tabular}{cccccc}
multicolumn{5}{l}{textbf{Table 3} Main Effects and Interactions}\
hline\
underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
hline
end{tabular}
label{tab:effects}
end{table}


I wanted to see if anyone knew of a way that I could position the table number and caption in the way that I have in the image so that I don't have to manually keep track of the numbers myself. I've tried things like defining the caption above the tabular environment and left justifying it but it hasn't worked. I don't necessarily agree with the positioning requirement but it effects our grade so I don't have much of a choice. Any help would be greatly appreciated.










share|improve this question







New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2





    Welcome to TeX.SX. Your "Minimal Working Example" (MWE) should start with documentclass, include all relevant usepackage commands, end with end{document} and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..

    – Sandy G
    8 hours ago














4












4








4








I have a pretty typical format I follow for tables due to restrictions imposed by professors. While we are not required to use LaTeX it makes my life easier in terms of formatting and so on. However, due to the table format we must follow I am unable to use captions in my tables because I have struggled with a way to try and move them to the correct location. This in turn forces me to keep track of table numbers and all the annoying things that LaTeX tracks for us. I've included the format and what I used to create it below.enter image description here



begin{table}[H]
centering
setlength{arrayrulewidth}{2pt}
begin{tabular}{cccccc}
multicolumn{5}{l}{textbf{Table 3} Main Effects and Interactions}\
hline\
underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
hline
end{tabular}
label{tab:effects}
end{table}


I wanted to see if anyone knew of a way that I could position the table number and caption in the way that I have in the image so that I don't have to manually keep track of the numbers myself. I've tried things like defining the caption above the tabular environment and left justifying it but it hasn't worked. I don't necessarily agree with the positioning requirement but it effects our grade so I don't have much of a choice. Any help would be greatly appreciated.










share|improve this question







New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have a pretty typical format I follow for tables due to restrictions imposed by professors. While we are not required to use LaTeX it makes my life easier in terms of formatting and so on. However, due to the table format we must follow I am unable to use captions in my tables because I have struggled with a way to try and move them to the correct location. This in turn forces me to keep track of table numbers and all the annoying things that LaTeX tracks for us. I've included the format and what I used to create it below.enter image description here



begin{table}[H]
centering
setlength{arrayrulewidth}{2pt}
begin{tabular}{cccccc}
multicolumn{5}{l}{textbf{Table 3} Main Effects and Interactions}\
hline\
underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
hline
end{tabular}
label{tab:effects}
end{table}


I wanted to see if anyone knew of a way that I could position the table number and caption in the way that I have in the image so that I don't have to manually keep track of the numbers myself. I've tried things like defining the caption above the tabular environment and left justifying it but it hasn't worked. I don't necessarily agree with the positioning requirement but it effects our grade so I don't have much of a choice. Any help would be greatly appreciated.







tables captions






share|improve this question







New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 8 hours ago









echo140echo140

232




232




New contributor




echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






echo140 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2





    Welcome to TeX.SX. Your "Minimal Working Example" (MWE) should start with documentclass, include all relevant usepackage commands, end with end{document} and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..

    – Sandy G
    8 hours ago














  • 2





    Welcome to TeX.SX. Your "Minimal Working Example" (MWE) should start with documentclass, include all relevant usepackage commands, end with end{document} and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..

    – Sandy G
    8 hours ago








2




2





Welcome to TeX.SX. Your "Minimal Working Example" (MWE) should start with documentclass, include all relevant usepackage commands, end with end{document} and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..

– Sandy G
8 hours ago





Welcome to TeX.SX. Your "Minimal Working Example" (MWE) should start with documentclass, include all relevant usepackage commands, end with end{document} and compile without errors, even if it does not produce your desired output. That way other users can just cut an paste your entire MWE as a starting point..

– Sandy G
8 hours ago










3 Answers
3






active

oldest

votes


















3














I would use the caption package to fine-tune the appearance of the captions to meet your professors' formatting requirements. In addition, I would load the siunitx package and its S column type to format the numeric data columns, and I would load the booktabs package for well-spaced horizontal lines. Don't use underline, please; instead, use cmidrule. Finally, consider using a tabular* environment instead of a tabular environment, to help the tabular material fit inside the width of the text block.



enter image description here



documentclass{article} 
usepackage{booktabs} % for sell-spaced horizontal lines
usepackage{siunitx} % for 'S' column type
usepackage{caption} % fine control over caption appearance
captionsetup{labelfont=bf,singlelinecheck=false,
labelsep=space,skip=2pt}
begin{document}
begin{table}
setlengthheavyrulewidth{2pt} % does it have to be soooo wide?
setlengthextrarowheight{2pt}
setlengthtabcolsep{0pt}
caption{Main Effects and Interactions} label{tab:effects}
begin{tabular*}{textwidth}{@{extracolsep{fill}}
c *{2}{S[table-format= 3.2]}
S[table-format=-3.2]
S[table-format=-2.3]
S[table-format= 2.3] @{}}
toprule
Combination & {$sumDelta T^{+}$} &
{$sumDelta T^{-}$} & {Contrast} &
{Main Effect ($E$)} & {Abs. Effect $|E|$} \
cmidrule{1-1} cmidrule{2-2} cmidrule{3-3}
cmidrule{4-4} cmidrule{5-5} cmidrule{6-6}
A & 251.03& 376.99& -125.96& -10.49 & 10.49\
B & 372.03& 255.99& 116.04& 9.67 & 9.67 \
AB & 305.82& 322.2 & -16.38& -1.365 & 1.365\
C & 274.89& 353.13& -78.24& -6.52 & 6.52 \
AC & 324.9 & 303.12& 21.78& 1.815 & 1.815\
BC & 337.3 & 290.72& 46.58& 3.88 & 3.88 \
ABC & 306.09& 321.93& -15.84& -1.32 & 1.32 \
bottomrule
end{tabular*}
end{table}
end{document}





share|improve this answer

































    1














    I think of something like that with the caption package and some options?



    documentclass[12pt]{article}
    usepackage[labelfont=bf]{caption}
    captionsetup{justification=raggedright,
    singlelinecheck=false
    }

    begin{document}

    begin{table}[h]
    centering
    setlength{arrayrulewidth}{2pt}
    caption{Main Effects and Interaction}
    begin{tabular}{cccccc}
    hline\
    underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
    A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
    B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
    AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
    C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
    AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
    BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
    ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
    hline
    end{tabular}
    label{tab:effects}
    end{table}


    end{document}


    Hope it helps :-)



    Romain






    share|improve this answer



















    • 1





      Thats exactly what I needed. Thank you!

      – echo140
      7 hours ago











    • This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

      – Mico
      7 hours ago





















    1














    If I've well understood what you want, you can obtain what you want with the caption and floatrow packages. I added some improvements to your table – replacing the underlines with cmidrule (from booktabs), so as to have all shortlines at the same level, and changing columnspecifier from c to S, to have all numbers in a column aligned on the decimal dot.



    Aldo, your table is too wide for default margins? So I loaded geometry, which defines more sensible defaults.



    documentclass{article}
    usepackage{array, caption, floatrow, booktabs}
    usepackage{siunitx}
    usepackage[showframe]{geometry}

    begin{document}
    setcounter{table}{2}

    begin{table}[!htb]
    centering
    captionsetup{singlelinecheck=off, labelfont=bf, skip=0pt}
    floatsetup{captionskip=6pt}
    setlength{arrayrulewidth}{2pt}
    sisetup{ table-number-alignment=center}
    ttabbox{caption{Main Effects and Interactions}label{tab:effects}}
    {begin{tabular}{c*{2}{S[table-format=3.2]}S[table-format=-3.2]S[table-format=-2.3]S[table-format=2.3]}
    toprule
    Combination & {$sumDelta T^{+}$} & {$sumDelta T^{-}$} & {Contrast} & {Main Effect (E)} &{Absolute Effect $|E|$}\
    cmidrule(lr){1-1}cmidrule(lr){2-2}cmidrule(lr){3-3}cmidrule(lr){4-4}cmidrule(lr){5-5}cmidrule(lr){6-6}
    addlinespace
    A & 251.03& 376.99& -125.96& -10.49 & 10.49\
    addlinespace
    B & 372.03& 255.99& 116.04& 9.67 & 9.67\
    addlinespace
    AB & 305.82& 322.2& -16.38& -1.365 & 1.365\
    addlinespace
    C & 274.89& 353.13& -78.24& -6.52 & 6.52\
    addlinespace
    AC & 324.9& 303.12& 21.78& 1.815 & 1.815\
    addlinespace
    BC & 337.3& 290.72& 46.58& 3.88 & 3.88\
    addlinespace
    ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\
    bottomrule
    end{tabular}}
    end{table}

    end{document}


    enter image description here






    share|improve this answer
























    • +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

      – Mico
      1 hour ago











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


    }
    });






    echo140 is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477229%2ftable-formatting-top-left-corner-caption%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









    3














    I would use the caption package to fine-tune the appearance of the captions to meet your professors' formatting requirements. In addition, I would load the siunitx package and its S column type to format the numeric data columns, and I would load the booktabs package for well-spaced horizontal lines. Don't use underline, please; instead, use cmidrule. Finally, consider using a tabular* environment instead of a tabular environment, to help the tabular material fit inside the width of the text block.



    enter image description here



    documentclass{article} 
    usepackage{booktabs} % for sell-spaced horizontal lines
    usepackage{siunitx} % for 'S' column type
    usepackage{caption} % fine control over caption appearance
    captionsetup{labelfont=bf,singlelinecheck=false,
    labelsep=space,skip=2pt}
    begin{document}
    begin{table}
    setlengthheavyrulewidth{2pt} % does it have to be soooo wide?
    setlengthextrarowheight{2pt}
    setlengthtabcolsep{0pt}
    caption{Main Effects and Interactions} label{tab:effects}
    begin{tabular*}{textwidth}{@{extracolsep{fill}}
    c *{2}{S[table-format= 3.2]}
    S[table-format=-3.2]
    S[table-format=-2.3]
    S[table-format= 2.3] @{}}
    toprule
    Combination & {$sumDelta T^{+}$} &
    {$sumDelta T^{-}$} & {Contrast} &
    {Main Effect ($E$)} & {Abs. Effect $|E|$} \
    cmidrule{1-1} cmidrule{2-2} cmidrule{3-3}
    cmidrule{4-4} cmidrule{5-5} cmidrule{6-6}
    A & 251.03& 376.99& -125.96& -10.49 & 10.49\
    B & 372.03& 255.99& 116.04& 9.67 & 9.67 \
    AB & 305.82& 322.2 & -16.38& -1.365 & 1.365\
    C & 274.89& 353.13& -78.24& -6.52 & 6.52 \
    AC & 324.9 & 303.12& 21.78& 1.815 & 1.815\
    BC & 337.3 & 290.72& 46.58& 3.88 & 3.88 \
    ABC & 306.09& 321.93& -15.84& -1.32 & 1.32 \
    bottomrule
    end{tabular*}
    end{table}
    end{document}





    share|improve this answer






























      3














      I would use the caption package to fine-tune the appearance of the captions to meet your professors' formatting requirements. In addition, I would load the siunitx package and its S column type to format the numeric data columns, and I would load the booktabs package for well-spaced horizontal lines. Don't use underline, please; instead, use cmidrule. Finally, consider using a tabular* environment instead of a tabular environment, to help the tabular material fit inside the width of the text block.



      enter image description here



      documentclass{article} 
      usepackage{booktabs} % for sell-spaced horizontal lines
      usepackage{siunitx} % for 'S' column type
      usepackage{caption} % fine control over caption appearance
      captionsetup{labelfont=bf,singlelinecheck=false,
      labelsep=space,skip=2pt}
      begin{document}
      begin{table}
      setlengthheavyrulewidth{2pt} % does it have to be soooo wide?
      setlengthextrarowheight{2pt}
      setlengthtabcolsep{0pt}
      caption{Main Effects and Interactions} label{tab:effects}
      begin{tabular*}{textwidth}{@{extracolsep{fill}}
      c *{2}{S[table-format= 3.2]}
      S[table-format=-3.2]
      S[table-format=-2.3]
      S[table-format= 2.3] @{}}
      toprule
      Combination & {$sumDelta T^{+}$} &
      {$sumDelta T^{-}$} & {Contrast} &
      {Main Effect ($E$)} & {Abs. Effect $|E|$} \
      cmidrule{1-1} cmidrule{2-2} cmidrule{3-3}
      cmidrule{4-4} cmidrule{5-5} cmidrule{6-6}
      A & 251.03& 376.99& -125.96& -10.49 & 10.49\
      B & 372.03& 255.99& 116.04& 9.67 & 9.67 \
      AB & 305.82& 322.2 & -16.38& -1.365 & 1.365\
      C & 274.89& 353.13& -78.24& -6.52 & 6.52 \
      AC & 324.9 & 303.12& 21.78& 1.815 & 1.815\
      BC & 337.3 & 290.72& 46.58& 3.88 & 3.88 \
      ABC & 306.09& 321.93& -15.84& -1.32 & 1.32 \
      bottomrule
      end{tabular*}
      end{table}
      end{document}





      share|improve this answer




























        3












        3








        3







        I would use the caption package to fine-tune the appearance of the captions to meet your professors' formatting requirements. In addition, I would load the siunitx package and its S column type to format the numeric data columns, and I would load the booktabs package for well-spaced horizontal lines. Don't use underline, please; instead, use cmidrule. Finally, consider using a tabular* environment instead of a tabular environment, to help the tabular material fit inside the width of the text block.



        enter image description here



        documentclass{article} 
        usepackage{booktabs} % for sell-spaced horizontal lines
        usepackage{siunitx} % for 'S' column type
        usepackage{caption} % fine control over caption appearance
        captionsetup{labelfont=bf,singlelinecheck=false,
        labelsep=space,skip=2pt}
        begin{document}
        begin{table}
        setlengthheavyrulewidth{2pt} % does it have to be soooo wide?
        setlengthextrarowheight{2pt}
        setlengthtabcolsep{0pt}
        caption{Main Effects and Interactions} label{tab:effects}
        begin{tabular*}{textwidth}{@{extracolsep{fill}}
        c *{2}{S[table-format= 3.2]}
        S[table-format=-3.2]
        S[table-format=-2.3]
        S[table-format= 2.3] @{}}
        toprule
        Combination & {$sumDelta T^{+}$} &
        {$sumDelta T^{-}$} & {Contrast} &
        {Main Effect ($E$)} & {Abs. Effect $|E|$} \
        cmidrule{1-1} cmidrule{2-2} cmidrule{3-3}
        cmidrule{4-4} cmidrule{5-5} cmidrule{6-6}
        A & 251.03& 376.99& -125.96& -10.49 & 10.49\
        B & 372.03& 255.99& 116.04& 9.67 & 9.67 \
        AB & 305.82& 322.2 & -16.38& -1.365 & 1.365\
        C & 274.89& 353.13& -78.24& -6.52 & 6.52 \
        AC & 324.9 & 303.12& 21.78& 1.815 & 1.815\
        BC & 337.3 & 290.72& 46.58& 3.88 & 3.88 \
        ABC & 306.09& 321.93& -15.84& -1.32 & 1.32 \
        bottomrule
        end{tabular*}
        end{table}
        end{document}





        share|improve this answer















        I would use the caption package to fine-tune the appearance of the captions to meet your professors' formatting requirements. In addition, I would load the siunitx package and its S column type to format the numeric data columns, and I would load the booktabs package for well-spaced horizontal lines. Don't use underline, please; instead, use cmidrule. Finally, consider using a tabular* environment instead of a tabular environment, to help the tabular material fit inside the width of the text block.



        enter image description here



        documentclass{article} 
        usepackage{booktabs} % for sell-spaced horizontal lines
        usepackage{siunitx} % for 'S' column type
        usepackage{caption} % fine control over caption appearance
        captionsetup{labelfont=bf,singlelinecheck=false,
        labelsep=space,skip=2pt}
        begin{document}
        begin{table}
        setlengthheavyrulewidth{2pt} % does it have to be soooo wide?
        setlengthextrarowheight{2pt}
        setlengthtabcolsep{0pt}
        caption{Main Effects and Interactions} label{tab:effects}
        begin{tabular*}{textwidth}{@{extracolsep{fill}}
        c *{2}{S[table-format= 3.2]}
        S[table-format=-3.2]
        S[table-format=-2.3]
        S[table-format= 2.3] @{}}
        toprule
        Combination & {$sumDelta T^{+}$} &
        {$sumDelta T^{-}$} & {Contrast} &
        {Main Effect ($E$)} & {Abs. Effect $|E|$} \
        cmidrule{1-1} cmidrule{2-2} cmidrule{3-3}
        cmidrule{4-4} cmidrule{5-5} cmidrule{6-6}
        A & 251.03& 376.99& -125.96& -10.49 & 10.49\
        B & 372.03& 255.99& 116.04& 9.67 & 9.67 \
        AB & 305.82& 322.2 & -16.38& -1.365 & 1.365\
        C & 274.89& 353.13& -78.24& -6.52 & 6.52 \
        AC & 324.9 & 303.12& 21.78& 1.815 & 1.815\
        BC & 337.3 & 290.72& 46.58& 3.88 & 3.88 \
        ABC & 306.09& 321.93& -15.84& -1.32 & 1.32 \
        bottomrule
        end{tabular*}
        end{table}
        end{document}






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 7 hours ago

























        answered 7 hours ago









        MicoMico

        281k31384772




        281k31384772























            1














            I think of something like that with the caption package and some options?



            documentclass[12pt]{article}
            usepackage[labelfont=bf]{caption}
            captionsetup{justification=raggedright,
            singlelinecheck=false
            }

            begin{document}

            begin{table}[h]
            centering
            setlength{arrayrulewidth}{2pt}
            caption{Main Effects and Interaction}
            begin{tabular}{cccccc}
            hline\
            underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
            hline
            end{tabular}
            label{tab:effects}
            end{table}


            end{document}


            Hope it helps :-)



            Romain






            share|improve this answer



















            • 1





              Thats exactly what I needed. Thank you!

              – echo140
              7 hours ago











            • This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

              – Mico
              7 hours ago


















            1














            I think of something like that with the caption package and some options?



            documentclass[12pt]{article}
            usepackage[labelfont=bf]{caption}
            captionsetup{justification=raggedright,
            singlelinecheck=false
            }

            begin{document}

            begin{table}[h]
            centering
            setlength{arrayrulewidth}{2pt}
            caption{Main Effects and Interaction}
            begin{tabular}{cccccc}
            hline\
            underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
            hline
            end{tabular}
            label{tab:effects}
            end{table}


            end{document}


            Hope it helps :-)



            Romain






            share|improve this answer



















            • 1





              Thats exactly what I needed. Thank you!

              – echo140
              7 hours ago











            • This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

              – Mico
              7 hours ago
















            1












            1








            1







            I think of something like that with the caption package and some options?



            documentclass[12pt]{article}
            usepackage[labelfont=bf]{caption}
            captionsetup{justification=raggedright,
            singlelinecheck=false
            }

            begin{document}

            begin{table}[h]
            centering
            setlength{arrayrulewidth}{2pt}
            caption{Main Effects and Interaction}
            begin{tabular}{cccccc}
            hline\
            underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
            hline
            end{tabular}
            label{tab:effects}
            end{table}


            end{document}


            Hope it helps :-)



            Romain






            share|improve this answer













            I think of something like that with the caption package and some options?



            documentclass[12pt]{article}
            usepackage[labelfont=bf]{caption}
            captionsetup{justification=raggedright,
            singlelinecheck=false
            }

            begin{document}

            begin{table}[h]
            centering
            setlength{arrayrulewidth}{2pt}
            caption{Main Effects and Interaction}
            begin{tabular}{cccccc}
            hline\
            underline{Combination} & underline{$sumDelta T^{+}$} & underline{$sumDelta T^{-}$} & underline{Contrast} & underline{Main Effect (E)} & underline{Absolute Effect $|E|$}\[0.25cm]
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\[0.125cm]
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\[0.125cm]
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\[0.125cm]
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\[0.125cm]
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\[0.125cm]
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\[0.125cm]
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\[0.125cm]
            hline
            end{tabular}
            label{tab:effects}
            end{table}


            end{document}


            Hope it helps :-)



            Romain







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 8 hours ago









            RockyRockRockyRock

            8861212




            8861212








            • 1





              Thats exactly what I needed. Thank you!

              – echo140
              7 hours ago











            • This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

              – Mico
              7 hours ago
















            • 1





              Thats exactly what I needed. Thank you!

              – echo140
              7 hours ago











            • This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

              – Mico
              7 hours ago










            1




            1





            Thats exactly what I needed. Thank you!

            – echo140
            7 hours ago





            Thats exactly what I needed. Thank you!

            – echo140
            7 hours ago













            This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

            – Mico
            7 hours ago







            This solution leaves a lot more vertical space between the caption and the start of the tabular environment than would seem to be desirable given the OP's screenshot. Moreover, it uses a colon instead of whitespace as the separator between the caption label and the caption text. Can you think of ways to address these issues?

            – Mico
            7 hours ago













            1














            If I've well understood what you want, you can obtain what you want with the caption and floatrow packages. I added some improvements to your table – replacing the underlines with cmidrule (from booktabs), so as to have all shortlines at the same level, and changing columnspecifier from c to S, to have all numbers in a column aligned on the decimal dot.



            Aldo, your table is too wide for default margins? So I loaded geometry, which defines more sensible defaults.



            documentclass{article}
            usepackage{array, caption, floatrow, booktabs}
            usepackage{siunitx}
            usepackage[showframe]{geometry}

            begin{document}
            setcounter{table}{2}

            begin{table}[!htb]
            centering
            captionsetup{singlelinecheck=off, labelfont=bf, skip=0pt}
            floatsetup{captionskip=6pt}
            setlength{arrayrulewidth}{2pt}
            sisetup{ table-number-alignment=center}
            ttabbox{caption{Main Effects and Interactions}label{tab:effects}}
            {begin{tabular}{c*{2}{S[table-format=3.2]}S[table-format=-3.2]S[table-format=-2.3]S[table-format=2.3]}
            toprule
            Combination & {$sumDelta T^{+}$} & {$sumDelta T^{-}$} & {Contrast} & {Main Effect (E)} &{Absolute Effect $|E|$}\
            cmidrule(lr){1-1}cmidrule(lr){2-2}cmidrule(lr){3-3}cmidrule(lr){4-4}cmidrule(lr){5-5}cmidrule(lr){6-6}
            addlinespace
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\
            addlinespace
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\
            addlinespace
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\
            addlinespace
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\
            addlinespace
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\
            addlinespace
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\
            addlinespace
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\
            bottomrule
            end{tabular}}
            end{table}

            end{document}


            enter image description here






            share|improve this answer
























            • +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

              – Mico
              1 hour ago
















            1














            If I've well understood what you want, you can obtain what you want with the caption and floatrow packages. I added some improvements to your table – replacing the underlines with cmidrule (from booktabs), so as to have all shortlines at the same level, and changing columnspecifier from c to S, to have all numbers in a column aligned on the decimal dot.



            Aldo, your table is too wide for default margins? So I loaded geometry, which defines more sensible defaults.



            documentclass{article}
            usepackage{array, caption, floatrow, booktabs}
            usepackage{siunitx}
            usepackage[showframe]{geometry}

            begin{document}
            setcounter{table}{2}

            begin{table}[!htb]
            centering
            captionsetup{singlelinecheck=off, labelfont=bf, skip=0pt}
            floatsetup{captionskip=6pt}
            setlength{arrayrulewidth}{2pt}
            sisetup{ table-number-alignment=center}
            ttabbox{caption{Main Effects and Interactions}label{tab:effects}}
            {begin{tabular}{c*{2}{S[table-format=3.2]}S[table-format=-3.2]S[table-format=-2.3]S[table-format=2.3]}
            toprule
            Combination & {$sumDelta T^{+}$} & {$sumDelta T^{-}$} & {Contrast} & {Main Effect (E)} &{Absolute Effect $|E|$}\
            cmidrule(lr){1-1}cmidrule(lr){2-2}cmidrule(lr){3-3}cmidrule(lr){4-4}cmidrule(lr){5-5}cmidrule(lr){6-6}
            addlinespace
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\
            addlinespace
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\
            addlinespace
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\
            addlinespace
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\
            addlinespace
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\
            addlinespace
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\
            addlinespace
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\
            bottomrule
            end{tabular}}
            end{table}

            end{document}


            enter image description here






            share|improve this answer
























            • +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

              – Mico
              1 hour ago














            1












            1








            1







            If I've well understood what you want, you can obtain what you want with the caption and floatrow packages. I added some improvements to your table – replacing the underlines with cmidrule (from booktabs), so as to have all shortlines at the same level, and changing columnspecifier from c to S, to have all numbers in a column aligned on the decimal dot.



            Aldo, your table is too wide for default margins? So I loaded geometry, which defines more sensible defaults.



            documentclass{article}
            usepackage{array, caption, floatrow, booktabs}
            usepackage{siunitx}
            usepackage[showframe]{geometry}

            begin{document}
            setcounter{table}{2}

            begin{table}[!htb]
            centering
            captionsetup{singlelinecheck=off, labelfont=bf, skip=0pt}
            floatsetup{captionskip=6pt}
            setlength{arrayrulewidth}{2pt}
            sisetup{ table-number-alignment=center}
            ttabbox{caption{Main Effects and Interactions}label{tab:effects}}
            {begin{tabular}{c*{2}{S[table-format=3.2]}S[table-format=-3.2]S[table-format=-2.3]S[table-format=2.3]}
            toprule
            Combination & {$sumDelta T^{+}$} & {$sumDelta T^{-}$} & {Contrast} & {Main Effect (E)} &{Absolute Effect $|E|$}\
            cmidrule(lr){1-1}cmidrule(lr){2-2}cmidrule(lr){3-3}cmidrule(lr){4-4}cmidrule(lr){5-5}cmidrule(lr){6-6}
            addlinespace
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\
            addlinespace
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\
            addlinespace
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\
            addlinespace
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\
            addlinespace
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\
            addlinespace
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\
            addlinespace
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\
            bottomrule
            end{tabular}}
            end{table}

            end{document}


            enter image description here






            share|improve this answer













            If I've well understood what you want, you can obtain what you want with the caption and floatrow packages. I added some improvements to your table – replacing the underlines with cmidrule (from booktabs), so as to have all shortlines at the same level, and changing columnspecifier from c to S, to have all numbers in a column aligned on the decimal dot.



            Aldo, your table is too wide for default margins? So I loaded geometry, which defines more sensible defaults.



            documentclass{article}
            usepackage{array, caption, floatrow, booktabs}
            usepackage{siunitx}
            usepackage[showframe]{geometry}

            begin{document}
            setcounter{table}{2}

            begin{table}[!htb]
            centering
            captionsetup{singlelinecheck=off, labelfont=bf, skip=0pt}
            floatsetup{captionskip=6pt}
            setlength{arrayrulewidth}{2pt}
            sisetup{ table-number-alignment=center}
            ttabbox{caption{Main Effects and Interactions}label{tab:effects}}
            {begin{tabular}{c*{2}{S[table-format=3.2]}S[table-format=-3.2]S[table-format=-2.3]S[table-format=2.3]}
            toprule
            Combination & {$sumDelta T^{+}$} & {$sumDelta T^{-}$} & {Contrast} & {Main Effect (E)} &{Absolute Effect $|E|$}\
            cmidrule(lr){1-1}cmidrule(lr){2-2}cmidrule(lr){3-3}cmidrule(lr){4-4}cmidrule(lr){5-5}cmidrule(lr){6-6}
            addlinespace
            A & 251.03& 376.99& -125.96& -10.49 & 10.49\
            addlinespace
            B & 372.03& 255.99& 116.04& 9.67 & 9.67\
            addlinespace
            AB & 305.82& 322.2& -16.38& -1.365 & 1.365\
            addlinespace
            C & 274.89& 353.13& -78.24& -6.52 & 6.52\
            addlinespace
            AC & 324.9& 303.12& 21.78& 1.815 & 1.815\
            addlinespace
            BC & 337.3& 290.72& 46.58& 3.88 & 3.88\
            addlinespace
            ABC & 306.09& 321.93& -15.84& -1.32 & 1.32\
            bottomrule
            end{tabular}}
            end{table}

            end{document}


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 7 hours ago









            BernardBernard

            171k775203




            171k775203













            • +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

              – Mico
              1 hour ago



















            • +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

              – Mico
              1 hour ago

















            +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

            – Mico
            1 hour ago





            +1. You may want to add a sentence or two to explain the contribution of the ttabbox directive.

            – Mico
            1 hour ago










            echo140 is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            echo140 is a new contributor. Be nice, and check out our Code of Conduct.













            echo140 is a new contributor. Be nice, and check out our Code of Conduct.












            echo140 is a new contributor. Be nice, and check out our Code of Conduct.
















            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%2f477229%2ftable-formatting-top-left-corner-caption%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

            is 'sed' thread safeWhat should someone know about using Python scripts in the shell?Nexenta bash script uses...

            How do i solve the “ No module named 'mlxtend' ” issue on Jupyter?

            Pilgersdorf Inhaltsverzeichnis Geografie | Geschichte | Bevölkerungsentwicklung | Politik | Kultur...