How make a table fit inside the margins?Fit table a bit outside of text marginsInitial page numbers wrongTable going past marginsMargins- table how do i put the table inside the marginstabu package - gaps in vertical linesLongtable does not fit the page marginsHow to make the table fit better?Fit table into page margins and center the second headingFit table into page marginsMake table fit into the column

I wish, I yearn, for an answer to this riddle

Co-worker is now managing my team. Does this mean that I'm being demoted?

Do details of my undergraduate title matter?

Do my partner and son need an SSN to be dependents on my taxes?

Probability Dilemma

How to avoid offending original culture when making conculture inspired from original

What is the context for Napoleon's quote "[the Austrians] did not know the value of five minutes"?

Why swap space doesn't get filesystem check at boot time?

Should I email my professor to clear up a (possibly very irrelevant) awkward misunderstanding?

Is there a risk to write an invitation letter for a stranger to obtain a Czech (Schengen) visa?

How to sort human readable size

How "fast" do astronomical events occur?

Fibonacci sequence and other metallic sequences emerged in the form of fractions

Does knowing the surface area of all faces uniquely determine a tetrahedron?

Is there a term for someone whose preferred policies are a mix of left and right?

My student in one course asks for paid tutoring in another course. Appropriate?

How much steel armor can you wear and still be able to swim?

How to use random to choose colors

Do Battery Electrons Only Move If There is a Positive Terminal at the End of the Wire?

How could I create a situation in which a PC has to make a saving throw or be forced to pet a dog?

Does cooling a potato change the nature of its carbohydrates?

Why do you need to heat the pan before heating the olive oil?

When is the phrase "j'ai bon" used?

How did Frodo know where the Bree village was?



How make a table fit inside the margins?


Fit table a bit outside of text marginsInitial page numbers wrongTable going past marginsMargins- table how do i put the table inside the marginstabu package - gaps in vertical linesLongtable does not fit the page marginsHow to make the table fit better?Fit table into page margins and center the second headingFit table into page marginsMake table fit into the column






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















How can I make this table fit inside left and right margin?



documentclassarticle
usepackage[T1]fontenc
usepackagearray


textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm


begindocument
begintable
noindent
begintabularc
hline
& base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
numIters & 20 & 20 & 20 & 20 & 20 \ hline
numEps & 20 & 20 & 20 & 20 & 20 \ hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
cpuct & 1 & 1 & 1 & 1 & 1 \ hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
& & & & & \ hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
epochs & 10 & 10 & 10 & 10 & 10 \ hline
batch_size & 32 & 32 & 32 & 32 & 32 \ hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
endtabular
endtable
enddocument


May someone help me please? Using makebox is not a good output!



EDIT:



textwidth 15cm









share|improve this question









New contributor



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














  • 3





    it is always best to show a complete small document, in particular here you have given no indication of your page size.

    – David Carlisle
    Jun 9 at 17:36











  • @DavidCarlisle edited!

    – Davide
    Jun 9 at 17:47











  • @Davide and font size? It would be easier if you just created a proper MWE, starting at documentclass and ending at enddocument which includes everything necessary to reproduce your table with the size it would have in your report, but nothing more (so say, for this table usepackagexcolor wouldn't be necessary).

    – Skillmon
    Jun 9 at 17:53











  • @Skillmon hope that I added all of them!

    – Davide
    Jun 9 at 17:56











  • @Davide no it still means anyone wanting to test answers has to construct a document much better if you do it. There are also hundreds of examples on this site of making tables smaller, putting small before it for example.

    – David Carlisle
    Jun 9 at 17:57

















3















How can I make this table fit inside left and right margin?



documentclassarticle
usepackage[T1]fontenc
usepackagearray


textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm


begindocument
begintable
noindent
begintabularc
hline
& base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
numIters & 20 & 20 & 20 & 20 & 20 \ hline
numEps & 20 & 20 & 20 & 20 & 20 \ hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
cpuct & 1 & 1 & 1 & 1 & 1 \ hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
& & & & & \ hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
epochs & 10 & 10 & 10 & 10 & 10 \ hline
batch_size & 32 & 32 & 32 & 32 & 32 \ hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
endtabular
endtable
enddocument


May someone help me please? Using makebox is not a good output!



EDIT:



textwidth 15cm









share|improve this question









New contributor



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














  • 3





    it is always best to show a complete small document, in particular here you have given no indication of your page size.

    – David Carlisle
    Jun 9 at 17:36











  • @DavidCarlisle edited!

    – Davide
    Jun 9 at 17:47











  • @Davide and font size? It would be easier if you just created a proper MWE, starting at documentclass and ending at enddocument which includes everything necessary to reproduce your table with the size it would have in your report, but nothing more (so say, for this table usepackagexcolor wouldn't be necessary).

    – Skillmon
    Jun 9 at 17:53











  • @Skillmon hope that I added all of them!

    – Davide
    Jun 9 at 17:56











  • @Davide no it still means anyone wanting to test answers has to construct a document much better if you do it. There are also hundreds of examples on this site of making tables smaller, putting small before it for example.

    – David Carlisle
    Jun 9 at 17:57













3












3








3








How can I make this table fit inside left and right margin?



documentclassarticle
usepackage[T1]fontenc
usepackagearray


textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm


begindocument
begintable
noindent
begintabularc
hline
& base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
numIters & 20 & 20 & 20 & 20 & 20 \ hline
numEps & 20 & 20 & 20 & 20 & 20 \ hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
cpuct & 1 & 1 & 1 & 1 & 1 \ hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
& & & & & \ hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
epochs & 10 & 10 & 10 & 10 & 10 \ hline
batch_size & 32 & 32 & 32 & 32 & 32 \ hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
endtabular
endtable
enddocument


May someone help me please? Using makebox is not a good output!



EDIT:



textwidth 15cm









share|improve this question









New contributor



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











How can I make this table fit inside left and right margin?



documentclassarticle
usepackage[T1]fontenc
usepackagearray


textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm


begindocument
begintable
noindent
begintabularc
hline
& base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
numIters & 20 & 20 & 20 & 20 & 20 \ hline
numEps & 20 & 20 & 20 & 20 & 20 \ hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
cpuct & 1 & 1 & 1 & 1 & 1 \ hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
& & & & & \ hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
epochs & 10 & 10 & 10 & 10 & 10 \ hline
batch_size & 32 & 32 & 32 & 32 & 32 \ hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
endtabular
endtable
enddocument


May someone help me please? Using makebox is not a good output!



EDIT:



textwidth 15cm






tables horizontal-alignment margins






share|improve this question









New contributor



Davide 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



Davide 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








edited Jun 9 at 18:01









David Carlisle

510k4311591917




510k4311591917






New contributor



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








asked Jun 9 at 17:34









DavideDavide

184




184




New contributor



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




New contributor




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









  • 3





    it is always best to show a complete small document, in particular here you have given no indication of your page size.

    – David Carlisle
    Jun 9 at 17:36











  • @DavidCarlisle edited!

    – Davide
    Jun 9 at 17:47











  • @Davide and font size? It would be easier if you just created a proper MWE, starting at documentclass and ending at enddocument which includes everything necessary to reproduce your table with the size it would have in your report, but nothing more (so say, for this table usepackagexcolor wouldn't be necessary).

    – Skillmon
    Jun 9 at 17:53











  • @Skillmon hope that I added all of them!

    – Davide
    Jun 9 at 17:56











  • @Davide no it still means anyone wanting to test answers has to construct a document much better if you do it. There are also hundreds of examples on this site of making tables smaller, putting small before it for example.

    – David Carlisle
    Jun 9 at 17:57












  • 3





    it is always best to show a complete small document, in particular here you have given no indication of your page size.

    – David Carlisle
    Jun 9 at 17:36











  • @DavidCarlisle edited!

    – Davide
    Jun 9 at 17:47











  • @Davide and font size? It would be easier if you just created a proper MWE, starting at documentclass and ending at enddocument which includes everything necessary to reproduce your table with the size it would have in your report, but nothing more (so say, for this table usepackagexcolor wouldn't be necessary).

    – Skillmon
    Jun 9 at 17:53











  • @Skillmon hope that I added all of them!

    – Davide
    Jun 9 at 17:56











  • @Davide no it still means anyone wanting to test answers has to construct a document much better if you do it. There are also hundreds of examples on this site of making tables smaller, putting small before it for example.

    – David Carlisle
    Jun 9 at 17:57







3




3





it is always best to show a complete small document, in particular here you have given no indication of your page size.

– David Carlisle
Jun 9 at 17:36





it is always best to show a complete small document, in particular here you have given no indication of your page size.

– David Carlisle
Jun 9 at 17:36













@DavidCarlisle edited!

– Davide
Jun 9 at 17:47





@DavidCarlisle edited!

– Davide
Jun 9 at 17:47













@Davide and font size? It would be easier if you just created a proper MWE, starting at documentclass and ending at enddocument which includes everything necessary to reproduce your table with the size it would have in your report, but nothing more (so say, for this table usepackagexcolor wouldn't be necessary).

– Skillmon
Jun 9 at 17:53





@Davide and font size? It would be easier if you just created a proper MWE, starting at documentclass and ending at enddocument which includes everything necessary to reproduce your table with the size it would have in your report, but nothing more (so say, for this table usepackagexcolor wouldn't be necessary).

– Skillmon
Jun 9 at 17:53













@Skillmon hope that I added all of them!

– Davide
Jun 9 at 17:56





@Skillmon hope that I added all of them!

– Davide
Jun 9 at 17:56













@Davide no it still means anyone wanting to test answers has to construct a document much better if you do it. There are also hundreds of examples on this site of making tables smaller, putting small before it for example.

– David Carlisle
Jun 9 at 17:57





@Davide no it still means anyone wanting to test answers has to construct a document much better if you do it. There are also hundreds of examples on this site of making tables smaller, putting small before it for example.

– David Carlisle
Jun 9 at 17:57










3 Answers
3






active

oldest

votes


















4














Moving the duplicate information of exp-resLayer out of each head and above them in a multicolumn does wonders to your table width:



documentclassarticle
usepackage[T1]fontenc
usepackagearray

textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm

begindocument
begintable
begintabularc
hline
& & multicolumn4cexp-resLayer \
cline3-6
& base & 2 & 10 & 2-lr & 10-lr \
hline
numIters & 20 & 20 & 20 & 20 & 20 \
hline
numEps & 20 & 20 & 20 & 20 & 20 \
hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \
hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \
hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \
hline
cpuct & 1 & 1 & 1 & 1 & 1 \
hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
hline
& & & & & \
hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
hline
epochs & 10 & 10 & 10 & 10 & 10 \
hline
batch_size & 32 & 32 & 32 & 32 & 32 \
hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \
hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \
hline
endtabular
endtable
enddocument


enter image description here



EDIT: if it should be more clear that each of the columns should be something like exp-resLayer<i> then one could change that to:



documentclassarticle
usepackage[T1]fontenc
usepackagearray

textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm

begindocument
begintable
begintabularc
hline
& & multicolumn4cexp-resLayer$langle irangle$ \
cline3-6
& base & 2 & 10 & 2-lr & 10-lr \
hline
numIters & 20 & 20 & 20 & 20 & 20 \
hline
numEps & 20 & 20 & 20 & 20 & 20 \
hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \
hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \
hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \
hline
cpuct & 1 & 1 & 1 & 1 & 1 \
hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
hline
& & & & & \
hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
hline
epochs & 10 & 10 & 10 & 10 & 10 \
hline
batch_size & 32 & 32 & 32 & 32 & 32 \
hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \
hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \
hline
endtabular
endtable
enddocument


enter image description here



An imho prettier version without all those vertical rules and less horizontal ones:



documentclassarticle
usepackage[T1]fontenc
usepackagearray

textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm

usepackagebooktabs

begindocument
begintable
begintabularl*5c
toprule
& & multicolumn4cexp-resLayer \
cmidrule3-6
& base & 2 & 10 & 2-lr & 10-lr \
midrule
numIters & 20 & 20 & 20 & 20 & 20 \
numEps & 20 & 20 & 20 & 20 & 20 \
tempThreshold & 400 & 400 & 400 & 400 & 400 \
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
numMCTSSims & 50 & 50 & 50 & 50 & 50 \
arenaCompare & 20 & 20 & 20 & 20 & 20 \
cpuct & 1 & 1 & 1 & 1 & 1 \
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
noalignmedskip
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
epochs & 10 & 10 & 10 & 10 & 10 \
batch_size & 32 & 32 & 32 & 32 & 32 \
residual_block_num & 5 & 2 & 10 & 2 & 10 \
image_stack_layers & 9 & 9 & 9 & 9 & 9 \
bottomrule
endtabular
endtable
enddocument


enter image description here






share|improve this answer

























  • In this example is not exactly clear, the head should be repeated

    – Davide
    Jun 9 at 18:14











  • @Davide do you think so?

    – Skillmon
    Jun 9 at 18:15











  • Yes, for my purposes I need repeated. Thanks

    – Davide
    Jun 9 at 18:18











  • @Davide is the edit better?

    – Skillmon
    Jun 9 at 18:22











  • If there are no other ways to do it, yes is better thanks!

    – Davide
    Jun 9 at 18:30


















4














If you are allowed to break numItersForTrainExamplesHistory over two lines you could make the first column narrower and use a larger font size, but as it is, footnotesize works



documentclassarticle
usepackage[T1]fontenc
usepackagearray


textwidth 15cm
textheight 22cm
parindent 10pt
oddsidemargin 0.85cm
evensidemargin 0.37cm


begindocument


begintable
centering
setlengthtabcolsep4pt
footnotesize
begintabular@
hline
& base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
numIters & 20 & 20 & 20 & 20 & 20 \ hline
numEps & 20 & 20 & 20 & 20 & 20 \ hline
tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
cpuct & 1 & 1 & 1 & 1 & 1 \ hline
numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
& & & & & \ hline
lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
epochs & 10 & 10 & 10 & 10 & 10 \ hline
batch_size & 32 & 32 & 32 & 32 & 32 \ hline
residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
endtabular
endtable
enddocument





share|improve this answer






























    1














    Althought I'd personally definitely prefer Skillmon's approach, here is a variant using rotated column headers:



    enter image description here



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    usepackagemakecell,rotating

    begindocument
    begintable
    settowidthrotheadsizetheadfont exp-resLayer10-lr
    renewcommandcellrotangle55
    centering
    begintabularc
    hline
    & base & rotheadexp-resLayer2 & rotheadexp-resLayer10 & rotheadexp-resLayer2-lr & rotheadexp-resLayer10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument





    share|improve this answer























    • Thanks for your help!

      – Davide
      Jun 10 at 20:39











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



    );






    Davide 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%2f494997%2fhow-make-a-table-fit-inside-the-margins%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









    4














    Moving the duplicate information of exp-resLayer out of each head and above them in a multicolumn does wonders to your table width:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    EDIT: if it should be more clear that each of the columns should be something like exp-resLayer<i> then one could change that to:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer$langle irangle$ \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    An imho prettier version without all those vertical rules and less horizontal ones:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    usepackagebooktabs

    begindocument
    begintable
    begintabularl*5c
    toprule
    & & multicolumn4cexp-resLayer \
    cmidrule3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    midrule
    numIters & 20 & 20 & 20 & 20 & 20 \
    numEps & 20 & 20 & 20 & 20 & 20 \
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    cpuct & 1 & 1 & 1 & 1 & 1 \
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    noalignmedskip
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    epochs & 10 & 10 & 10 & 10 & 10 \
    batch_size & 32 & 32 & 32 & 32 & 32 \
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    bottomrule
    endtabular
    endtable
    enddocument


    enter image description here






    share|improve this answer

























    • In this example is not exactly clear, the head should be repeated

      – Davide
      Jun 9 at 18:14











    • @Davide do you think so?

      – Skillmon
      Jun 9 at 18:15











    • Yes, for my purposes I need repeated. Thanks

      – Davide
      Jun 9 at 18:18











    • @Davide is the edit better?

      – Skillmon
      Jun 9 at 18:22











    • If there are no other ways to do it, yes is better thanks!

      – Davide
      Jun 9 at 18:30















    4














    Moving the duplicate information of exp-resLayer out of each head and above them in a multicolumn does wonders to your table width:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    EDIT: if it should be more clear that each of the columns should be something like exp-resLayer<i> then one could change that to:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer$langle irangle$ \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    An imho prettier version without all those vertical rules and less horizontal ones:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    usepackagebooktabs

    begindocument
    begintable
    begintabularl*5c
    toprule
    & & multicolumn4cexp-resLayer \
    cmidrule3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    midrule
    numIters & 20 & 20 & 20 & 20 & 20 \
    numEps & 20 & 20 & 20 & 20 & 20 \
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    cpuct & 1 & 1 & 1 & 1 & 1 \
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    noalignmedskip
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    epochs & 10 & 10 & 10 & 10 & 10 \
    batch_size & 32 & 32 & 32 & 32 & 32 \
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    bottomrule
    endtabular
    endtable
    enddocument


    enter image description here






    share|improve this answer

























    • In this example is not exactly clear, the head should be repeated

      – Davide
      Jun 9 at 18:14











    • @Davide do you think so?

      – Skillmon
      Jun 9 at 18:15











    • Yes, for my purposes I need repeated. Thanks

      – Davide
      Jun 9 at 18:18











    • @Davide is the edit better?

      – Skillmon
      Jun 9 at 18:22











    • If there are no other ways to do it, yes is better thanks!

      – Davide
      Jun 9 at 18:30













    4












    4








    4







    Moving the duplicate information of exp-resLayer out of each head and above them in a multicolumn does wonders to your table width:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    EDIT: if it should be more clear that each of the columns should be something like exp-resLayer<i> then one could change that to:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer$langle irangle$ \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    An imho prettier version without all those vertical rules and less horizontal ones:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    usepackagebooktabs

    begindocument
    begintable
    begintabularl*5c
    toprule
    & & multicolumn4cexp-resLayer \
    cmidrule3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    midrule
    numIters & 20 & 20 & 20 & 20 & 20 \
    numEps & 20 & 20 & 20 & 20 & 20 \
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    cpuct & 1 & 1 & 1 & 1 & 1 \
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    noalignmedskip
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    epochs & 10 & 10 & 10 & 10 & 10 \
    batch_size & 32 & 32 & 32 & 32 & 32 \
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    bottomrule
    endtabular
    endtable
    enddocument


    enter image description here






    share|improve this answer















    Moving the duplicate information of exp-resLayer out of each head and above them in a multicolumn does wonders to your table width:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    EDIT: if it should be more clear that each of the columns should be something like exp-resLayer<i> then one could change that to:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    begindocument
    begintable
    begintabularc
    hline
    & & multicolumn4cexp-resLayer$langle irangle$ \
    cline3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    hline
    numIters & 20 & 20 & 20 & 20 & 20 \
    hline
    numEps & 20 & 20 & 20 & 20 & 20 \
    hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    hline
    cpuct & 1 & 1 & 1 & 1 & 1 \
    hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    hline
    & & & & & \
    hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    hline
    epochs & 10 & 10 & 10 & 10 & 10 \
    hline
    batch_size & 32 & 32 & 32 & 32 & 32 \
    hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    hline
    endtabular
    endtable
    enddocument


    enter image description here



    An imho prettier version without all those vertical rules and less horizontal ones:



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray

    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm

    usepackagebooktabs

    begindocument
    begintable
    begintabularl*5c
    toprule
    & & multicolumn4cexp-resLayer \
    cmidrule3-6
    & base & 2 & 10 & 2-lr & 10-lr \
    midrule
    numIters & 20 & 20 & 20 & 20 & 20 \
    numEps & 20 & 20 & 20 & 20 & 20 \
    tempThreshold & 400 & 400 & 400 & 400 & 400 \
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \
    arenaCompare & 20 & 20 & 20 & 20 & 20 \
    cpuct & 1 & 1 & 1 & 1 & 1 \
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
    noalignmedskip
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
    epochs & 10 & 10 & 10 & 10 & 10 \
    batch_size & 32 & 32 & 32 & 32 & 32 \
    residual_block_num & 5 & 2 & 10 & 2 & 10 \
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \
    bottomrule
    endtabular
    endtable
    enddocument


    enter image description here







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Jun 9 at 18:22

























    answered Jun 9 at 18:11









    SkillmonSkillmon

    25.8k12553




    25.8k12553












    • In this example is not exactly clear, the head should be repeated

      – Davide
      Jun 9 at 18:14











    • @Davide do you think so?

      – Skillmon
      Jun 9 at 18:15











    • Yes, for my purposes I need repeated. Thanks

      – Davide
      Jun 9 at 18:18











    • @Davide is the edit better?

      – Skillmon
      Jun 9 at 18:22











    • If there are no other ways to do it, yes is better thanks!

      – Davide
      Jun 9 at 18:30

















    • In this example is not exactly clear, the head should be repeated

      – Davide
      Jun 9 at 18:14











    • @Davide do you think so?

      – Skillmon
      Jun 9 at 18:15











    • Yes, for my purposes I need repeated. Thanks

      – Davide
      Jun 9 at 18:18











    • @Davide is the edit better?

      – Skillmon
      Jun 9 at 18:22











    • If there are no other ways to do it, yes is better thanks!

      – Davide
      Jun 9 at 18:30
















    In this example is not exactly clear, the head should be repeated

    – Davide
    Jun 9 at 18:14





    In this example is not exactly clear, the head should be repeated

    – Davide
    Jun 9 at 18:14













    @Davide do you think so?

    – Skillmon
    Jun 9 at 18:15





    @Davide do you think so?

    – Skillmon
    Jun 9 at 18:15













    Yes, for my purposes I need repeated. Thanks

    – Davide
    Jun 9 at 18:18





    Yes, for my purposes I need repeated. Thanks

    – Davide
    Jun 9 at 18:18













    @Davide is the edit better?

    – Skillmon
    Jun 9 at 18:22





    @Davide is the edit better?

    – Skillmon
    Jun 9 at 18:22













    If there are no other ways to do it, yes is better thanks!

    – Davide
    Jun 9 at 18:30





    If there are no other ways to do it, yes is better thanks!

    – Davide
    Jun 9 at 18:30













    4














    If you are allowed to break numItersForTrainExamplesHistory over two lines you could make the first column narrower and use a larger font size, but as it is, footnotesize works



    documentclassarticle
    usepackage[T1]fontenc
    usepackagearray


    textwidth 15cm
    textheight 22cm
    parindent 10pt
    oddsidemargin 0.85cm
    evensidemargin 0.37cm


    begindocument


    begintable
    centering
    setlengthtabcolsep4pt
    footnotesize
    begintabular@
    hline
    & base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
    numIters & 20 & 20 & 20 & 20 & 20 \ hline
    numEps & 20 & 20 & 20 & 20 & 20 \ hline
    tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
    updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
    numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
    arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
    cpuct & 1 & 1 & 1 & 1 & 1 \ hline
    numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
    & & & & & \ hline
    lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
    epochs & 10 & 10 & 10 & 10 & 10 \ hline
    batch_size & 32 & 32 & 32 & 32 & 32 \ hline
    residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
    image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
    endtabular
    endtable
    enddocument





    share|improve this answer



























      4














      If you are allowed to break numItersForTrainExamplesHistory over two lines you could make the first column narrower and use a larger font size, but as it is, footnotesize works



      documentclassarticle
      usepackage[T1]fontenc
      usepackagearray


      textwidth 15cm
      textheight 22cm
      parindent 10pt
      oddsidemargin 0.85cm
      evensidemargin 0.37cm


      begindocument


      begintable
      centering
      setlengthtabcolsep4pt
      footnotesize
      begintabular@
      hline
      & base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
      numIters & 20 & 20 & 20 & 20 & 20 \ hline
      numEps & 20 & 20 & 20 & 20 & 20 \ hline
      tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
      updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
      numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
      arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
      cpuct & 1 & 1 & 1 & 1 & 1 \ hline
      numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
      & & & & & \ hline
      lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
      epochs & 10 & 10 & 10 & 10 & 10 \ hline
      batch_size & 32 & 32 & 32 & 32 & 32 \ hline
      residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
      image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
      endtabular
      endtable
      enddocument





      share|improve this answer

























        4












        4








        4







        If you are allowed to break numItersForTrainExamplesHistory over two lines you could make the first column narrower and use a larger font size, but as it is, footnotesize works



        documentclassarticle
        usepackage[T1]fontenc
        usepackagearray


        textwidth 15cm
        textheight 22cm
        parindent 10pt
        oddsidemargin 0.85cm
        evensidemargin 0.37cm


        begindocument


        begintable
        centering
        setlengthtabcolsep4pt
        footnotesize
        begintabular@
        hline
        & base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
        numIters & 20 & 20 & 20 & 20 & 20 \ hline
        numEps & 20 & 20 & 20 & 20 & 20 \ hline
        tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
        updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
        numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
        arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
        cpuct & 1 & 1 & 1 & 1 & 1 \ hline
        numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
        & & & & & \ hline
        lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
        epochs & 10 & 10 & 10 & 10 & 10 \ hline
        batch_size & 32 & 32 & 32 & 32 & 32 \ hline
        residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
        image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
        endtabular
        endtable
        enddocument





        share|improve this answer













        If you are allowed to break numItersForTrainExamplesHistory over two lines you could make the first column narrower and use a larger font size, but as it is, footnotesize works



        documentclassarticle
        usepackage[T1]fontenc
        usepackagearray


        textwidth 15cm
        textheight 22cm
        parindent 10pt
        oddsidemargin 0.85cm
        evensidemargin 0.37cm


        begindocument


        begintable
        centering
        setlengthtabcolsep4pt
        footnotesize
        begintabular@
        hline
        & base & multicolumn1exp-resLayer2 & multicolumn1exp-resLayer10 & multicolumn1exp-resLayer2-lr & multicolumn1exp-resLayer10-lr \ hline
        numIters & 20 & 20 & 20 & 20 & 20 \ hline
        numEps & 20 & 20 & 20 & 20 & 20 \ hline
        tempThreshold & 400 & 400 & 400 & 400 & 400 \ hline
        updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \ hline
        numMCTSSims & 50 & 50 & 50 & 50 & 50 \ hline
        arenaCompare & 20 & 20 & 20 & 20 & 20 \ hline
        cpuct & 1 & 1 & 1 & 1 & 1 \ hline
        numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \ hline
        & & & & & \ hline
        lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \ hline
        epochs & 10 & 10 & 10 & 10 & 10 \ hline
        batch_size & 32 & 32 & 32 & 32 & 32 \ hline
        residual_block_num & 5 & 2 & 10 & 2 & 10 \ hline
        image_stack_layers & 9 & 9 & 9 & 9 & 9 \ hline
        endtabular
        endtable
        enddocument






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 9 at 18:05









        David CarlisleDavid Carlisle

        510k4311591917




        510k4311591917





















            1














            Althought I'd personally definitely prefer Skillmon's approach, here is a variant using rotated column headers:



            enter image description here



            documentclassarticle
            usepackage[T1]fontenc
            usepackagearray

            textwidth 15cm
            textheight 22cm
            parindent 10pt
            oddsidemargin 0.85cm
            evensidemargin 0.37cm

            usepackagemakecell,rotating

            begindocument
            begintable
            settowidthrotheadsizetheadfont exp-resLayer10-lr
            renewcommandcellrotangle55
            centering
            begintabularc
            hline
            & base & rotheadexp-resLayer2 & rotheadexp-resLayer10 & rotheadexp-resLayer2-lr & rotheadexp-resLayer10-lr \
            hline
            numIters & 20 & 20 & 20 & 20 & 20 \
            hline
            numEps & 20 & 20 & 20 & 20 & 20 \
            hline
            tempThreshold & 400 & 400 & 400 & 400 & 400 \
            hline
            updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
            hline
            numMCTSSims & 50 & 50 & 50 & 50 & 50 \
            hline
            arenaCompare & 20 & 20 & 20 & 20 & 20 \
            hline
            cpuct & 1 & 1 & 1 & 1 & 1 \
            hline
            numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
            hline
            & & & & & \
            hline
            lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
            hline
            epochs & 10 & 10 & 10 & 10 & 10 \
            hline
            batch_size & 32 & 32 & 32 & 32 & 32 \
            hline
            residual_block_num & 5 & 2 & 10 & 2 & 10 \
            hline
            image_stack_layers & 9 & 9 & 9 & 9 & 9 \
            hline
            endtabular
            endtable
            enddocument





            share|improve this answer























            • Thanks for your help!

              – Davide
              Jun 10 at 20:39















            1














            Althought I'd personally definitely prefer Skillmon's approach, here is a variant using rotated column headers:



            enter image description here



            documentclassarticle
            usepackage[T1]fontenc
            usepackagearray

            textwidth 15cm
            textheight 22cm
            parindent 10pt
            oddsidemargin 0.85cm
            evensidemargin 0.37cm

            usepackagemakecell,rotating

            begindocument
            begintable
            settowidthrotheadsizetheadfont exp-resLayer10-lr
            renewcommandcellrotangle55
            centering
            begintabularc
            hline
            & base & rotheadexp-resLayer2 & rotheadexp-resLayer10 & rotheadexp-resLayer2-lr & rotheadexp-resLayer10-lr \
            hline
            numIters & 20 & 20 & 20 & 20 & 20 \
            hline
            numEps & 20 & 20 & 20 & 20 & 20 \
            hline
            tempThreshold & 400 & 400 & 400 & 400 & 400 \
            hline
            updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
            hline
            numMCTSSims & 50 & 50 & 50 & 50 & 50 \
            hline
            arenaCompare & 20 & 20 & 20 & 20 & 20 \
            hline
            cpuct & 1 & 1 & 1 & 1 & 1 \
            hline
            numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
            hline
            & & & & & \
            hline
            lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
            hline
            epochs & 10 & 10 & 10 & 10 & 10 \
            hline
            batch_size & 32 & 32 & 32 & 32 & 32 \
            hline
            residual_block_num & 5 & 2 & 10 & 2 & 10 \
            hline
            image_stack_layers & 9 & 9 & 9 & 9 & 9 \
            hline
            endtabular
            endtable
            enddocument





            share|improve this answer























            • Thanks for your help!

              – Davide
              Jun 10 at 20:39













            1












            1








            1







            Althought I'd personally definitely prefer Skillmon's approach, here is a variant using rotated column headers:



            enter image description here



            documentclassarticle
            usepackage[T1]fontenc
            usepackagearray

            textwidth 15cm
            textheight 22cm
            parindent 10pt
            oddsidemargin 0.85cm
            evensidemargin 0.37cm

            usepackagemakecell,rotating

            begindocument
            begintable
            settowidthrotheadsizetheadfont exp-resLayer10-lr
            renewcommandcellrotangle55
            centering
            begintabularc
            hline
            & base & rotheadexp-resLayer2 & rotheadexp-resLayer10 & rotheadexp-resLayer2-lr & rotheadexp-resLayer10-lr \
            hline
            numIters & 20 & 20 & 20 & 20 & 20 \
            hline
            numEps & 20 & 20 & 20 & 20 & 20 \
            hline
            tempThreshold & 400 & 400 & 400 & 400 & 400 \
            hline
            updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
            hline
            numMCTSSims & 50 & 50 & 50 & 50 & 50 \
            hline
            arenaCompare & 20 & 20 & 20 & 20 & 20 \
            hline
            cpuct & 1 & 1 & 1 & 1 & 1 \
            hline
            numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
            hline
            & & & & & \
            hline
            lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
            hline
            epochs & 10 & 10 & 10 & 10 & 10 \
            hline
            batch_size & 32 & 32 & 32 & 32 & 32 \
            hline
            residual_block_num & 5 & 2 & 10 & 2 & 10 \
            hline
            image_stack_layers & 9 & 9 & 9 & 9 & 9 \
            hline
            endtabular
            endtable
            enddocument





            share|improve this answer













            Althought I'd personally definitely prefer Skillmon's approach, here is a variant using rotated column headers:



            enter image description here



            documentclassarticle
            usepackage[T1]fontenc
            usepackagearray

            textwidth 15cm
            textheight 22cm
            parindent 10pt
            oddsidemargin 0.85cm
            evensidemargin 0.37cm

            usepackagemakecell,rotating

            begindocument
            begintable
            settowidthrotheadsizetheadfont exp-resLayer10-lr
            renewcommandcellrotangle55
            centering
            begintabularc
            hline
            & base & rotheadexp-resLayer2 & rotheadexp-resLayer10 & rotheadexp-resLayer2-lr & rotheadexp-resLayer10-lr \
            hline
            numIters & 20 & 20 & 20 & 20 & 20 \
            hline
            numEps & 20 & 20 & 20 & 20 & 20 \
            hline
            tempThreshold & 400 & 400 & 400 & 400 & 400 \
            hline
            updateThreshold & 0.54 & 0.54 & 0.54 & 0.54 & 0.54 \
            hline
            numMCTSSims & 50 & 50 & 50 & 50 & 50 \
            hline
            arenaCompare & 20 & 20 & 20 & 20 & 20 \
            hline
            cpuct & 1 & 1 & 1 & 1 & 1 \
            hline
            numItersForTrainExamplesHistory & 20 & 20 & 20 & 20 & 20 \
            hline
            & & & & & \
            hline
            lr & 0.01 & 0.01 & 0.001 & 0.01 & 0.001 \
            hline
            epochs & 10 & 10 & 10 & 10 & 10 \
            hline
            batch_size & 32 & 32 & 32 & 32 & 32 \
            hline
            residual_block_num & 5 & 2 & 10 & 2 & 10 \
            hline
            image_stack_layers & 9 & 9 & 9 & 9 & 9 \
            hline
            endtabular
            endtable
            enddocument






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 10 at 7:14









            leandriisleandriis

            14k11135




            14k11135












            • Thanks for your help!

              – Davide
              Jun 10 at 20:39

















            • Thanks for your help!

              – Davide
              Jun 10 at 20:39
















            Thanks for your help!

            – Davide
            Jun 10 at 20:39





            Thanks for your help!

            – Davide
            Jun 10 at 20:39










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









            draft saved

            draft discarded


















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












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











            Davide 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%2f494997%2fhow-make-a-table-fit-inside-the-margins%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

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림