Can't align/center table

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












The following LaTeX code generates a table, but it's not centralized with the paper:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagemakecell
begindocument
sectionResults
begintable[h]
begincenter
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do\ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& 4e-10
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& 4e-36
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& 4e-143
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes
& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endcenter
endtable
enddocument


I've tried using begincenter and centering... but it doesn't work. How can I solve this problem?










share|improve this question









New contributor




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















  • 1




    Your tabular is too wide. If you want it centered anyway, use makebox[textwidth]...
    – John Kormylo
    5 hours ago











  • Note that you can format non-inline code by clicking the "" button or pressing ctrl-K (while the code is selected). More information on formatting can be found here here.
    – Circumscribe
    50 mins ago














up vote
3
down vote

favorite












The following LaTeX code generates a table, but it's not centralized with the paper:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagemakecell
begindocument
sectionResults
begintable[h]
begincenter
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do\ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& 4e-10
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& 4e-36
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& 4e-143
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes
& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endcenter
endtable
enddocument


I've tried using begincenter and centering... but it doesn't work. How can I solve this problem?










share|improve this question









New contributor




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















  • 1




    Your tabular is too wide. If you want it centered anyway, use makebox[textwidth]...
    – John Kormylo
    5 hours ago











  • Note that you can format non-inline code by clicking the "" button or pressing ctrl-K (while the code is selected). More information on formatting can be found here here.
    – Circumscribe
    50 mins ago












up vote
3
down vote

favorite









up vote
3
down vote

favorite











The following LaTeX code generates a table, but it's not centralized with the paper:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagemakecell
begindocument
sectionResults
begintable[h]
begincenter
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do\ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& 4e-10
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& 4e-36
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& 4e-143
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes
& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endcenter
endtable
enddocument


I've tried using begincenter and centering... but it doesn't work. How can I solve this problem?










share|improve this question









New contributor




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











The following LaTeX code generates a table, but it's not centralized with the paper:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagemakecell
begindocument
sectionResults
begintable[h]
begincenter
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do\ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& 4e-10
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& 4e-36
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& 4e-143
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes
& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endcenter
endtable
enddocument


I've tried using begincenter and centering... but it doesn't work. How can I solve this problem?







tables






share|improve this question









New contributor




Nicholas Yamasaki 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




Nicholas Yamasaki 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 50 mins ago









Circumscribe

2,113321




2,113321






New contributor




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









asked 6 hours ago









Nicholas Yamasaki

254




254




New contributor




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





New contributor





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






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







  • 1




    Your tabular is too wide. If you want it centered anyway, use makebox[textwidth]...
    – John Kormylo
    5 hours ago











  • Note that you can format non-inline code by clicking the "" button or pressing ctrl-K (while the code is selected). More information on formatting can be found here here.
    – Circumscribe
    50 mins ago












  • 1




    Your tabular is too wide. If you want it centered anyway, use makebox[textwidth]...
    – John Kormylo
    5 hours ago











  • Note that you can format non-inline code by clicking the "" button or pressing ctrl-K (while the code is selected). More information on formatting can be found here here.
    – Circumscribe
    50 mins ago







1




1




Your tabular is too wide. If you want it centered anyway, use makebox[textwidth]...
– John Kormylo
5 hours ago





Your tabular is too wide. If you want it centered anyway, use makebox[textwidth]...
– John Kormylo
5 hours ago













Note that you can format non-inline code by clicking the "" button or pressing ctrl-K (while the code is selected). More information on formatting can be found here here.
– Circumscribe
50 mins ago




Note that you can format non-inline code by clicking the "" button or pressing ctrl-K (while the code is selected). More information on formatting can be found here here.
– Circumscribe
50 mins ago










2 Answers
2






active

oldest

votes

















up vote
5
down vote



accepted










Here is a solution and some improvements, playing with the value of tabcolsep and adding lines in a column head:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackage[portuguese]babel
usepackage[showframe]geometry
usepackagemakecell

begindocument

sectionResults
begintable[h]
centeringsetlengthtabcolsep3pt
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do \ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho\ do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& $ 4,mathrme-10 $
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& $ 4,mathrme-36 $
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& $ 4,mathrme-143 $
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes

& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endtable

enddocument


enter image description here






share|improve this answer




















  • Thank you! I really aprecciate it!
    – Nicholas Yamasaki
    2 mins ago

















up vote
4
down vote













Here's a solution that (a) switches over to a tabularx environment and (b) uses centered versions of the p and X column types to allow for line breaks automatically. The solution also gets rid of all vertical lines and of most horizontal lines to give the table a more "open" look.



enter image description here



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagetabularx,booktabs,ragged2e
newcolumntypeY%
>Centeringarraybackslashhspace0ptX
newcolumntypeC[1]%
>Centeringarraybackslashhspace0ptp#1
newcolumntypeL[1]%
>RaggedRightarraybackslashhspace0ptp#1

newlengthlena settowidthlenaIdentific
newlengthlenb settowidthlenbTamanho
newlengthlenc settowidthlencIdentid
newlengthlend settowidthlendTamanho do
newlengthlene settowidthleneAlgoritmo

hyphenationnano-pe-la-gi-cus
begindocument
sectionResults

begintable[h!]
setlengthtabcolsep4pt
begintabularxtextwidth@
Llena Clenb Y c Clenc Clend Clene @
toprule
Identificador de contig &
Tamanho do contig (bp) &
Melhor hit newline (organismo) &
e-value &
Identidade (%) &
Tamanho do alinhamento (bp) (% do tamanho do contig) &
Algoritmo usado\
midrule
ctg1 & 13425 & textitFriedmanniella textitsagamiharensis strain DSM 21743 & 4e-10 & 69 & 269 (2) & BLASTn \
addlinespace
ctg2 & 11567 & textitKineococcus radiotolerans SRS30216 & 0.0 & 71 & 3933 (34) & BLASTn \
addlinespace
ctg3 & 12900 & textitPseudomonas fluorescens strain NEP1 genome & 0.0 & 69 & 2193 (17) & BLASTn \
addlinespace
ctg4 & 17737 & textitHerminiimonas arsenicoxydans & 0.0 & 69 & 4257 (24) & BLASTn \
addlinespace
ctg5 & 13319 & textitNonomuraea sp. ATCC 55076 & 0.0 & 66 & 7192 (54) & BLASTn \
addlinespace
ctg6 & 10398 & textitMarichromatium purpuratum 984 & 0.0 & 72 & 5719 (55) & BLASTn \
addlinespace
ctg7 & 16623 & textitBacillus cereus AH820 & 4e-36 & 67 & 1330 (8) & BLASTn \
addlinespace
ctg8 & 20951 & textitLimnohabitans sp. 63ED37-2 & 0.0 & 80 & 15923 (76) & BLASTn \
addlinespace
ctg9 & 13925 & textitPontibacter actiniarum DSM 19842 & 4e-143 & 74 & 1114 (8) & BLASTn \
addlinespace
ctg10 & 10484 & textitCandidatus Nanopelagicus limnes & 0.0 & 80 & 9331 (89) & BLASTn \
bottomrule
endtabularx
endtable
enddocument





share|improve this answer




















  • I really liked the new design! Thanks!
    – Nicholas Yamasaki
    1 min 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',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);






Nicholas Yamasaki 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%2f453199%2fcant-align-center-table%23new-answer', 'question_page');

);

Post as a guest






























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
5
down vote



accepted










Here is a solution and some improvements, playing with the value of tabcolsep and adding lines in a column head:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackage[portuguese]babel
usepackage[showframe]geometry
usepackagemakecell

begindocument

sectionResults
begintable[h]
centeringsetlengthtabcolsep3pt
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do \ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho\ do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& $ 4,mathrme-10 $
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& $ 4,mathrme-36 $
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& $ 4,mathrme-143 $
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes

& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endtable

enddocument


enter image description here






share|improve this answer




















  • Thank you! I really aprecciate it!
    – Nicholas Yamasaki
    2 mins ago














up vote
5
down vote



accepted










Here is a solution and some improvements, playing with the value of tabcolsep and adding lines in a column head:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackage[portuguese]babel
usepackage[showframe]geometry
usepackagemakecell

begindocument

sectionResults
begintable[h]
centeringsetlengthtabcolsep3pt
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do \ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho\ do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& $ 4,mathrme-10 $
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& $ 4,mathrme-36 $
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& $ 4,mathrme-143 $
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes

& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endtable

enddocument


enter image description here






share|improve this answer




















  • Thank you! I really aprecciate it!
    – Nicholas Yamasaki
    2 mins ago












up vote
5
down vote



accepted







up vote
5
down vote



accepted






Here is a solution and some improvements, playing with the value of tabcolsep and adding lines in a column head:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackage[portuguese]babel
usepackage[showframe]geometry
usepackagemakecell

begindocument

sectionResults
begintable[h]
centeringsetlengthtabcolsep3pt
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do \ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho\ do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& $ 4,mathrme-10 $
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& $ 4,mathrme-36 $
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& $ 4,mathrme-143 $
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes

& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endtable

enddocument


enter image description here






share|improve this answer












Here is a solution and some improvements, playing with the value of tabcolsep and adding lines in a column head:



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[T1]fontenc
usepackage[portuguese]babel
usepackage[showframe]geometry
usepackagemakecell

begindocument

sectionResults
begintable[h]
centeringsetlengthtabcolsep3pt
begintabularc
hline
theadIdentificador\ de contig
& theadTamanho do \ contig (bp)
& theadMelhor hit\ (organismo)
& theade-value
& theadIdentidade\ (%)
& theadTamanho do\ alinhamento (bp)\ (% do tamanho\ do contig)
& theadAlgoritmo\ usado\
hline
ctg1
& 13425
& theadtextitFriedmanniella\textitsagamiharensis \ strain DSM 21743
& $ 4,mathrme-10 $
& 69
& 269 (2)
& BLASTn \
hline
ctg2
& 11567
& theadtextitKineococcus \textitradiotolerans \ SRS30216
& 0.0
& 71
& 3933 (34)
& BLASTn \
hline
ctg3
& 12900
& theadtextitPseudomonas \ textitfluorescens \ strain NEP1 genome
& 0.0
& 69
& 2193 (17)
& BLASTn \
hline
ctg4
& 17737
& theadtextitHerminiimonas \ textitarsenicoxydans
& 0.0
& 69
& 4257 (24)
& BLASTn \
hline
ctg5
& 13319
& theadtextitNonomuraea sp. \ ATCC 55076\
& 0.0
& 66
& 7192 (54)
& BLASTn \
hline
ctg6
& 10398
& theadtextitMarichromatium \ textitpurpuratum \ 984
& 0.0
& 72
& 5719 (55)
& BLASTn \
hline
ctg7
& 16623
& theadtextitBacillus cereus \ AH820
& $ 4,mathrme-36 $
& 67
& 1330 (8)
& BLASTn \
hline
ctg8
& 20951
& theadtextitLimnohabitans sp. \ 63ED37-2
& 0.0
& 80
& 15923 (76)
& BLASTn \
hline
ctg9
& 13925
& theadtextitPontibacter \ textitactiniarum \ DSM 19842
& $ 4,mathrme-143 $
& 74
& 1114 (8)
& BLASTn \
hline
ctg10
& 10484
& theadtextitCandidatus \ textitNanopelagicus \ textitlimnes

& 0.0
& 80
& 9331 (89)
& BLASTn \
hline
endtabular
endtable

enddocument


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered 4 hours ago









Bernard

157k764190




157k764190











  • Thank you! I really aprecciate it!
    – Nicholas Yamasaki
    2 mins ago
















  • Thank you! I really aprecciate it!
    – Nicholas Yamasaki
    2 mins ago















Thank you! I really aprecciate it!
– Nicholas Yamasaki
2 mins ago




Thank you! I really aprecciate it!
– Nicholas Yamasaki
2 mins ago










up vote
4
down vote













Here's a solution that (a) switches over to a tabularx environment and (b) uses centered versions of the p and X column types to allow for line breaks automatically. The solution also gets rid of all vertical lines and of most horizontal lines to give the table a more "open" look.



enter image description here



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagetabularx,booktabs,ragged2e
newcolumntypeY%
>Centeringarraybackslashhspace0ptX
newcolumntypeC[1]%
>Centeringarraybackslashhspace0ptp#1
newcolumntypeL[1]%
>RaggedRightarraybackslashhspace0ptp#1

newlengthlena settowidthlenaIdentific
newlengthlenb settowidthlenbTamanho
newlengthlenc settowidthlencIdentid
newlengthlend settowidthlendTamanho do
newlengthlene settowidthleneAlgoritmo

hyphenationnano-pe-la-gi-cus
begindocument
sectionResults

begintable[h!]
setlengthtabcolsep4pt
begintabularxtextwidth@
Llena Clenb Y c Clenc Clend Clene @
toprule
Identificador de contig &
Tamanho do contig (bp) &
Melhor hit newline (organismo) &
e-value &
Identidade (%) &
Tamanho do alinhamento (bp) (% do tamanho do contig) &
Algoritmo usado\
midrule
ctg1 & 13425 & textitFriedmanniella textitsagamiharensis strain DSM 21743 & 4e-10 & 69 & 269 (2) & BLASTn \
addlinespace
ctg2 & 11567 & textitKineococcus radiotolerans SRS30216 & 0.0 & 71 & 3933 (34) & BLASTn \
addlinespace
ctg3 & 12900 & textitPseudomonas fluorescens strain NEP1 genome & 0.0 & 69 & 2193 (17) & BLASTn \
addlinespace
ctg4 & 17737 & textitHerminiimonas arsenicoxydans & 0.0 & 69 & 4257 (24) & BLASTn \
addlinespace
ctg5 & 13319 & textitNonomuraea sp. ATCC 55076 & 0.0 & 66 & 7192 (54) & BLASTn \
addlinespace
ctg6 & 10398 & textitMarichromatium purpuratum 984 & 0.0 & 72 & 5719 (55) & BLASTn \
addlinespace
ctg7 & 16623 & textitBacillus cereus AH820 & 4e-36 & 67 & 1330 (8) & BLASTn \
addlinespace
ctg8 & 20951 & textitLimnohabitans sp. 63ED37-2 & 0.0 & 80 & 15923 (76) & BLASTn \
addlinespace
ctg9 & 13925 & textitPontibacter actiniarum DSM 19842 & 4e-143 & 74 & 1114 (8) & BLASTn \
addlinespace
ctg10 & 10484 & textitCandidatus Nanopelagicus limnes & 0.0 & 80 & 9331 (89) & BLASTn \
bottomrule
endtabularx
endtable
enddocument





share|improve this answer




















  • I really liked the new design! Thanks!
    – Nicholas Yamasaki
    1 min ago














up vote
4
down vote













Here's a solution that (a) switches over to a tabularx environment and (b) uses centered versions of the p and X column types to allow for line breaks automatically. The solution also gets rid of all vertical lines and of most horizontal lines to give the table a more "open" look.



enter image description here



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagetabularx,booktabs,ragged2e
newcolumntypeY%
>Centeringarraybackslashhspace0ptX
newcolumntypeC[1]%
>Centeringarraybackslashhspace0ptp#1
newcolumntypeL[1]%
>RaggedRightarraybackslashhspace0ptp#1

newlengthlena settowidthlenaIdentific
newlengthlenb settowidthlenbTamanho
newlengthlenc settowidthlencIdentid
newlengthlend settowidthlendTamanho do
newlengthlene settowidthleneAlgoritmo

hyphenationnano-pe-la-gi-cus
begindocument
sectionResults

begintable[h!]
setlengthtabcolsep4pt
begintabularxtextwidth@
Llena Clenb Y c Clenc Clend Clene @
toprule
Identificador de contig &
Tamanho do contig (bp) &
Melhor hit newline (organismo) &
e-value &
Identidade (%) &
Tamanho do alinhamento (bp) (% do tamanho do contig) &
Algoritmo usado\
midrule
ctg1 & 13425 & textitFriedmanniella textitsagamiharensis strain DSM 21743 & 4e-10 & 69 & 269 (2) & BLASTn \
addlinespace
ctg2 & 11567 & textitKineococcus radiotolerans SRS30216 & 0.0 & 71 & 3933 (34) & BLASTn \
addlinespace
ctg3 & 12900 & textitPseudomonas fluorescens strain NEP1 genome & 0.0 & 69 & 2193 (17) & BLASTn \
addlinespace
ctg4 & 17737 & textitHerminiimonas arsenicoxydans & 0.0 & 69 & 4257 (24) & BLASTn \
addlinespace
ctg5 & 13319 & textitNonomuraea sp. ATCC 55076 & 0.0 & 66 & 7192 (54) & BLASTn \
addlinespace
ctg6 & 10398 & textitMarichromatium purpuratum 984 & 0.0 & 72 & 5719 (55) & BLASTn \
addlinespace
ctg7 & 16623 & textitBacillus cereus AH820 & 4e-36 & 67 & 1330 (8) & BLASTn \
addlinespace
ctg8 & 20951 & textitLimnohabitans sp. 63ED37-2 & 0.0 & 80 & 15923 (76) & BLASTn \
addlinespace
ctg9 & 13925 & textitPontibacter actiniarum DSM 19842 & 4e-143 & 74 & 1114 (8) & BLASTn \
addlinespace
ctg10 & 10484 & textitCandidatus Nanopelagicus limnes & 0.0 & 80 & 9331 (89) & BLASTn \
bottomrule
endtabularx
endtable
enddocument





share|improve this answer




















  • I really liked the new design! Thanks!
    – Nicholas Yamasaki
    1 min ago












up vote
4
down vote










up vote
4
down vote









Here's a solution that (a) switches over to a tabularx environment and (b) uses centered versions of the p and X column types to allow for line breaks automatically. The solution also gets rid of all vertical lines and of most horizontal lines to give the table a more "open" look.



enter image description here



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagetabularx,booktabs,ragged2e
newcolumntypeY%
>Centeringarraybackslashhspace0ptX
newcolumntypeC[1]%
>Centeringarraybackslashhspace0ptp#1
newcolumntypeL[1]%
>RaggedRightarraybackslashhspace0ptp#1

newlengthlena settowidthlenaIdentific
newlengthlenb settowidthlenbTamanho
newlengthlenc settowidthlencIdentid
newlengthlend settowidthlendTamanho do
newlengthlene settowidthleneAlgoritmo

hyphenationnano-pe-la-gi-cus
begindocument
sectionResults

begintable[h!]
setlengthtabcolsep4pt
begintabularxtextwidth@
Llena Clenb Y c Clenc Clend Clene @
toprule
Identificador de contig &
Tamanho do contig (bp) &
Melhor hit newline (organismo) &
e-value &
Identidade (%) &
Tamanho do alinhamento (bp) (% do tamanho do contig) &
Algoritmo usado\
midrule
ctg1 & 13425 & textitFriedmanniella textitsagamiharensis strain DSM 21743 & 4e-10 & 69 & 269 (2) & BLASTn \
addlinespace
ctg2 & 11567 & textitKineococcus radiotolerans SRS30216 & 0.0 & 71 & 3933 (34) & BLASTn \
addlinespace
ctg3 & 12900 & textitPseudomonas fluorescens strain NEP1 genome & 0.0 & 69 & 2193 (17) & BLASTn \
addlinespace
ctg4 & 17737 & textitHerminiimonas arsenicoxydans & 0.0 & 69 & 4257 (24) & BLASTn \
addlinespace
ctg5 & 13319 & textitNonomuraea sp. ATCC 55076 & 0.0 & 66 & 7192 (54) & BLASTn \
addlinespace
ctg6 & 10398 & textitMarichromatium purpuratum 984 & 0.0 & 72 & 5719 (55) & BLASTn \
addlinespace
ctg7 & 16623 & textitBacillus cereus AH820 & 4e-36 & 67 & 1330 (8) & BLASTn \
addlinespace
ctg8 & 20951 & textitLimnohabitans sp. 63ED37-2 & 0.0 & 80 & 15923 (76) & BLASTn \
addlinespace
ctg9 & 13925 & textitPontibacter actiniarum DSM 19842 & 4e-143 & 74 & 1114 (8) & BLASTn \
addlinespace
ctg10 & 10484 & textitCandidatus Nanopelagicus limnes & 0.0 & 80 & 9331 (89) & BLASTn \
bottomrule
endtabularx
endtable
enddocument





share|improve this answer












Here's a solution that (a) switches over to a tabularx environment and (b) uses centered versions of the p and X column types to allow for line breaks automatically. The solution also gets rid of all vertical lines and of most horizontal lines to give the table a more "open" look.



enter image description here



documentclass[11pt]article
usepackage[utf8]inputenc
usepackage[portuguese]babel
usepackagegeometry
usepackagetabularx,booktabs,ragged2e
newcolumntypeY%
>Centeringarraybackslashhspace0ptX
newcolumntypeC[1]%
>Centeringarraybackslashhspace0ptp#1
newcolumntypeL[1]%
>RaggedRightarraybackslashhspace0ptp#1

newlengthlena settowidthlenaIdentific
newlengthlenb settowidthlenbTamanho
newlengthlenc settowidthlencIdentid
newlengthlend settowidthlendTamanho do
newlengthlene settowidthleneAlgoritmo

hyphenationnano-pe-la-gi-cus
begindocument
sectionResults

begintable[h!]
setlengthtabcolsep4pt
begintabularxtextwidth@
Llena Clenb Y c Clenc Clend Clene @
toprule
Identificador de contig &
Tamanho do contig (bp) &
Melhor hit newline (organismo) &
e-value &
Identidade (%) &
Tamanho do alinhamento (bp) (% do tamanho do contig) &
Algoritmo usado\
midrule
ctg1 & 13425 & textitFriedmanniella textitsagamiharensis strain DSM 21743 & 4e-10 & 69 & 269 (2) & BLASTn \
addlinespace
ctg2 & 11567 & textitKineococcus radiotolerans SRS30216 & 0.0 & 71 & 3933 (34) & BLASTn \
addlinespace
ctg3 & 12900 & textitPseudomonas fluorescens strain NEP1 genome & 0.0 & 69 & 2193 (17) & BLASTn \
addlinespace
ctg4 & 17737 & textitHerminiimonas arsenicoxydans & 0.0 & 69 & 4257 (24) & BLASTn \
addlinespace
ctg5 & 13319 & textitNonomuraea sp. ATCC 55076 & 0.0 & 66 & 7192 (54) & BLASTn \
addlinespace
ctg6 & 10398 & textitMarichromatium purpuratum 984 & 0.0 & 72 & 5719 (55) & BLASTn \
addlinespace
ctg7 & 16623 & textitBacillus cereus AH820 & 4e-36 & 67 & 1330 (8) & BLASTn \
addlinespace
ctg8 & 20951 & textitLimnohabitans sp. 63ED37-2 & 0.0 & 80 & 15923 (76) & BLASTn \
addlinespace
ctg9 & 13925 & textitPontibacter actiniarum DSM 19842 & 4e-143 & 74 & 1114 (8) & BLASTn \
addlinespace
ctg10 & 10484 & textitCandidatus Nanopelagicus limnes & 0.0 & 80 & 9331 (89) & BLASTn \
bottomrule
endtabularx
endtable
enddocument






share|improve this answer












share|improve this answer



share|improve this answer










answered 4 hours ago









Mico

264k30355733




264k30355733











  • I really liked the new design! Thanks!
    – Nicholas Yamasaki
    1 min ago
















  • I really liked the new design! Thanks!
    – Nicholas Yamasaki
    1 min ago















I really liked the new design! Thanks!
– Nicholas Yamasaki
1 min ago




I really liked the new design! Thanks!
– Nicholas Yamasaki
1 min ago










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









 

draft saved


draft discarded


















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












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











Nicholas Yamasaki 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%2f453199%2fcant-align-center-table%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

Long meetings (6-7 hours a day): Being “babysat” by supervisor

Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

Confectionery