Adding one more column to a tableShould I use center or centering for figures and tables?Adding Column to Tabletabu package - gaps in vertical linesDouble column table IEEE & one “invisible” column in the tableSplitting a long table in more than one pageHorizontal lines in nested tabular environmentAdding double vertical line in one columnTypesetting a table with headline spaning more then one cellAdding a column in tableHide column without adding whitespace to tableAdding new column to table

Can I pay with HKD in Macau or Shenzhen?

Are there any English words pronounced with sounds/syllables that aren't part of the spelling?

On the history of Haar measure

Are gangsters hired to attack people at a train station classified as a terrorist attack?

Can GPL and BSD licensed applications be used for government work?

Wiring IKEA light fixture into old fixture

Are stackless C++20 coroutines a problem?

Were Moshe's sons Jewish?

Found more old paper shares from broken up companies

Company requiring me to let them review research from before I was hired

Inverse Colombian Function

Where is this photo of a group of hikers taken? Is it really in the Ural?

How can I indicate that what I'm saying is not sarcastic online?

How can I show that the speed of light in vacuum is the same in all reference frames?

Book in which the "mountain" in the distance was a hole in the flat world

What was the rationale behind 36 bit computer architectures?

Why did modems have speakers?

why my sourdough starter has in the top the liquid separated from the flour?

Killing a star safely

Dedicated to our #1 Fan

Adding one more column to a table

What rules turn any attack that hits a given target into a critical hit?

High income and difficulty during interviews

Are there any documented cases of extinction of a species of fungus?



Adding one more column to a table


Should I use center or centering for figures and tables?Adding Column to Tabletabu package - gaps in vertical linesDouble column table IEEE & one “invisible” column in the tableSplitting a long table in more than one pageHorizontal lines in nested tabular environmentAdding double vertical line in one columnTypesetting a table with headline spaning more then one cellAdding a column in tableHide column without adding whitespace to tableAdding new column to table






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








4















I need to add one more column to the table and add $L$ parameter next to $n$. How can I add it?




mwe:




documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
begindocument


begintable[htbp]
small
beginspacing1
begincenter
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline3-7
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endcenter
endspacing
endtable

enddocument



I am getting something like this, which is awful:




enter image description here




I would like to leave it like $lambda$ and gamma, meaning, alone.











share|improve this question



















  • 1





    Ehm, you just write it into the table ... & starts a new column, so you add another & at the appropriate place in each row, and new content before it. You've already specified 8 columns for the tabular, so you don't have to modify that

    – Torbjørn T.
    8 hours ago











  • I will try that. Yes, I added the 8. But then I also added & on one row only and it did the opposite

    – NaveganTeX
    8 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    8 hours ago

















4















I need to add one more column to the table and add $L$ parameter next to $n$. How can I add it?




mwe:




documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
begindocument


begintable[htbp]
small
beginspacing1
begincenter
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline3-7
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endcenter
endspacing
endtable

enddocument



I am getting something like this, which is awful:




enter image description here




I would like to leave it like $lambda$ and gamma, meaning, alone.











share|improve this question



















  • 1





    Ehm, you just write it into the table ... & starts a new column, so you add another & at the appropriate place in each row, and new content before it. You've already specified 8 columns for the tabular, so you don't have to modify that

    – Torbjørn T.
    8 hours ago











  • I will try that. Yes, I added the 8. But then I also added & on one row only and it did the opposite

    – NaveganTeX
    8 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    8 hours ago













4












4








4








I need to add one more column to the table and add $L$ parameter next to $n$. How can I add it?




mwe:




documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
begindocument


begintable[htbp]
small
beginspacing1
begincenter
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline3-7
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endcenter
endspacing
endtable

enddocument



I am getting something like this, which is awful:




enter image description here




I would like to leave it like $lambda$ and gamma, meaning, alone.











share|improve this question
















I need to add one more column to the table and add $L$ parameter next to $n$. How can I add it?




mwe:




documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
begindocument


begintable[htbp]
small
beginspacing1
begincenter
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline3-7
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endcenter
endspacing
endtable

enddocument



I am getting something like this, which is awful:




enter image description here




I would like to leave it like $lambda$ and gamma, meaning, alone.








tables






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 8 hours ago







NaveganTeX

















asked 8 hours ago









NaveganTeXNaveganTeX

1,3072 silver badges11 bronze badges




1,3072 silver badges11 bronze badges







  • 1





    Ehm, you just write it into the table ... & starts a new column, so you add another & at the appropriate place in each row, and new content before it. You've already specified 8 columns for the tabular, so you don't have to modify that

    – Torbjørn T.
    8 hours ago











  • I will try that. Yes, I added the 8. But then I also added & on one row only and it did the opposite

    – NaveganTeX
    8 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    8 hours ago












  • 1





    Ehm, you just write it into the table ... & starts a new column, so you add another & at the appropriate place in each row, and new content before it. You've already specified 8 columns for the tabular, so you don't have to modify that

    – Torbjørn T.
    8 hours ago











  • I will try that. Yes, I added the 8. But then I also added & on one row only and it did the opposite

    – NaveganTeX
    8 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    8 hours ago







1




1





Ehm, you just write it into the table ... & starts a new column, so you add another & at the appropriate place in each row, and new content before it. You've already specified 8 columns for the tabular, so you don't have to modify that

– Torbjørn T.
8 hours ago





Ehm, you just write it into the table ... & starts a new column, so you add another & at the appropriate place in each row, and new content before it. You've already specified 8 columns for the tabular, so you don't have to modify that

– Torbjørn T.
8 hours ago













I will try that. Yes, I added the 8. But then I also added & on one row only and it did the opposite

– NaveganTeX
8 hours ago





I will try that. Yes, I added the 8. But then I also added & on one row only and it did the opposite

– NaveganTeX
8 hours ago




1




1





Each row, including the first row.

– Torbjørn T.
8 hours ago





Each row, including the first row.

– Torbjørn T.
8 hours ago










1 Answer
1






active

oldest

votes


















4














Basically you just need to add an additional & and new content in the appropriate position on each row, including the first row. And you need to change the column numbers for the crule. I'm guessing you want crule5-8?



I would consider setting the table without vertical rules, it looks better I think. And it's usually recommended using centering instead of the center environment, see Should I use center or centering for figures and tables?



enter image description here



documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
usepackagebooktabs % provides toprule, bottomrule,midrule, cmidrule
begindocument


begintable[htbp]
small
centering
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline5-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

begintable[htbp]
small
centering
begintabular*8c
toprule
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cmidrule(lr)5-6 cmidrule(lr)7-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
midrule
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
bottomrule
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

enddocument





share|improve this answer























  • WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

    – NaveganTeX
    8 hours ago













Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "85"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f501181%2fadding-one-more-column-to-a-table%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









4














Basically you just need to add an additional & and new content in the appropriate position on each row, including the first row. And you need to change the column numbers for the crule. I'm guessing you want crule5-8?



I would consider setting the table without vertical rules, it looks better I think. And it's usually recommended using centering instead of the center environment, see Should I use center or centering for figures and tables?



enter image description here



documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
usepackagebooktabs % provides toprule, bottomrule,midrule, cmidrule
begindocument


begintable[htbp]
small
centering
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline5-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

begintable[htbp]
small
centering
begintabular*8c
toprule
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cmidrule(lr)5-6 cmidrule(lr)7-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
midrule
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
bottomrule
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

enddocument





share|improve this answer























  • WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

    – NaveganTeX
    8 hours ago















4














Basically you just need to add an additional & and new content in the appropriate position on each row, including the first row. And you need to change the column numbers for the crule. I'm guessing you want crule5-8?



I would consider setting the table without vertical rules, it looks better I think. And it's usually recommended using centering instead of the center environment, see Should I use center or centering for figures and tables?



enter image description here



documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
usepackagebooktabs % provides toprule, bottomrule,midrule, cmidrule
begindocument


begintable[htbp]
small
centering
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline5-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

begintable[htbp]
small
centering
begintabular*8c
toprule
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cmidrule(lr)5-6 cmidrule(lr)7-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
midrule
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
bottomrule
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

enddocument





share|improve this answer























  • WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

    – NaveganTeX
    8 hours ago













4












4








4







Basically you just need to add an additional & and new content in the appropriate position on each row, including the first row. And you need to change the column numbers for the crule. I'm guessing you want crule5-8?



I would consider setting the table without vertical rules, it looks better I think. And it's usually recommended using centering instead of the center environment, see Should I use center or centering for figures and tables?



enter image description here



documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
usepackagebooktabs % provides toprule, bottomrule,midrule, cmidrule
begindocument


begintable[htbp]
small
centering
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline5-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

begintable[htbp]
small
centering
begintabular*8c
toprule
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cmidrule(lr)5-6 cmidrule(lr)7-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
midrule
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
bottomrule
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

enddocument





share|improve this answer













Basically you just need to add an additional & and new content in the appropriate position on each row, including the first row. And you need to change the column numbers for the crule. I'm guessing you want crule5-8?



I would consider setting the table without vertical rules, it looks better I think. And it's usually recommended using centering instead of the center environment, see Should I use center or centering for figures and tables?



enter image description here



documentclassarticle
usepackagemultirow
usepackageamsmath
usepackagesetspace
usepackagebooktabs % provides toprule, bottomrule,midrule, cmidrule
begindocument


begintable[htbp]
small
centering
begintabular % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cline5-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
hline
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

begintable[htbp]
small
centering
begintabular*8c
toprule
& & & & multicolumn2ctextbfML
& multicolumn2ctextbfML \
cmidrule(lr)5-6 cmidrule(lr)7-8
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
midrule
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf0.9401 & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf0.9080 \
bottomrule
endtabular
captionValues.
labelmejorrmsepredictorbase
endtable

enddocument






share|improve this answer












share|improve this answer



share|improve this answer










answered 8 hours ago









Torbjørn T.Torbjørn T.

162k13 gold badges267 silver badges453 bronze badges




162k13 gold badges267 silver badges453 bronze badges












  • WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

    – NaveganTeX
    8 hours ago

















  • WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

    – NaveganTeX
    8 hours ago
















WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

– NaveganTeX
8 hours ago





WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!

– NaveganTeX
8 hours ago

















draft saved

draft discarded
















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f501181%2fadding-one-more-column-to-a-table%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

199年 目錄 大件事 到箇年出世嗰人 到箇年死嗰人 節慶、風俗習慣 導覽選單