Adding one more column to a tableShould I use center or centering for figures and tables?Adding Column to...

Why did computer video outputs go from digital to analog, then back to digital?

Why did modems have speakers?

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

Character Arcs - What if the character doesn't overcome the big lie, flaws or wounds?

Why is the UH-60 tail rotor canted?

How am I supposed to put out fires?

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

Extrapolation v. Interpolation

Impact of throwing away fruit waste on a peak > 3200 m above a glacier

Dedicated to our #1 Fan

Why can't a country print its own money to spend it only abroad?

What is a "staved" town, like in "Staverton"?

What's the 1 inch size square knob sticking out of wall?

Why does the salt in the oceans not sink to the bottom?

Does Impedance Matching Imply any Practical RF Transmitter Must Waste >=50% of Energy?

Killing a star safely

Found more old paper shares from broken up companies

Would using carbon dioxide as fuel work to reduce the greenhouse effect?

What kind of world would drive brains to evolve high-throughput sensory?

How can I print a 1 cm overhang with minimal supports?

Inverse Colombian Function

Adding gears to my grandson's 12" bike

Other than a swing wing, what types of variable geometry have flown?

What is a plausible power source to indefinitely sustain a space station?



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:




documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
begin{document}


begin{table}[htbp]
small
begin{spacing}{1}
begin{center}
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{3-7}
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{center}
end{spacing}
end{table}

end{document}



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:




documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
begin{document}


begin{table}[htbp]
small
begin{spacing}{1}
begin{center}
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{3-7}
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{center}
end{spacing}
end{table}

end{document}



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:




documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
begin{document}


begin{table}[htbp]
small
begin{spacing}{1}
begin{center}
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{3-7}
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{center}
end{spacing}
end{table}

end{document}



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:




documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
begin{document}


begin{table}[htbp]
small
begin{spacing}{1}
begin{center}
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{3-7}
$lambda$ & $gamma$ & $n$& & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{center}
end{spacing}
end{table}

end{document}



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 crule{5-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



documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
usepackage{booktabs} % provides toprule, bottomrule,midrule, cmidrule
begin{document}


begin{table}[htbp]
small
centering
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{5-8}
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

begin{table}[htbp]
small
centering
begin{tabular}{*{8}{c}}
toprule
& & & & multicolumn{2}{c}{textbf{ML}}
& multicolumn{2}{c}{textbf{ML}} \
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 & textbf{0.9401} & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
bottomrule
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

end{document}





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 crule{5-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



documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
usepackage{booktabs} % provides toprule, bottomrule,midrule, cmidrule
begin{document}


begin{table}[htbp]
small
centering
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{5-8}
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

begin{table}[htbp]
small
centering
begin{tabular}{*{8}{c}}
toprule
& & & & multicolumn{2}{c}{textbf{ML}}
& multicolumn{2}{c}{textbf{ML}} \
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 & textbf{0.9401} & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
bottomrule
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

end{document}





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 crule{5-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



documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
usepackage{booktabs} % provides toprule, bottomrule,midrule, cmidrule
begin{document}


begin{table}[htbp]
small
centering
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{5-8}
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

begin{table}[htbp]
small
centering
begin{tabular}{*{8}{c}}
toprule
& & & & multicolumn{2}{c}{textbf{ML}}
& multicolumn{2}{c}{textbf{ML}} \
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 & textbf{0.9401} & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
bottomrule
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

end{document}





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 crule{5-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



documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
usepackage{booktabs} % provides toprule, bottomrule,midrule, cmidrule
begin{document}


begin{table}[htbp]
small
centering
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{5-8}
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

begin{table}[htbp]
small
centering
begin{tabular}{*{8}{c}}
toprule
& & & & multicolumn{2}{c}{textbf{ML}}
& multicolumn{2}{c}{textbf{ML}} \
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 & textbf{0.9401} & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
bottomrule
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

end{document}





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 crule{5-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



documentclass{article}
usepackage{multirow}
usepackage{amsmath}
usepackage{setspace}
usepackage{booktabs} % provides toprule, bottomrule,midrule, cmidrule
begin{document}


begin{table}[htbp]
small
centering
begin{tabular}{|*{8}{c|}} % <-- Alignments: 1st column left, 2nd middle and 3rd right, with vertical lines in between
hline
& & & & multicolumn{2}{c|}{textbf{ML }}
& multicolumn{2}{c|}{textbf{ML }} \
cline{5-8}
$lambda$ & $gamma$ & $n$& $L$ & Train & Test & Train & Test \
hline
0.01 & 0.006 & 30 & 1 & 0.9133 & textbf{0.9401} & & \
hline
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
hline
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

begin{table}[htbp]
small
centering
begin{tabular}{*{8}{c}}
toprule
& & & & multicolumn{2}{c}{textbf{ML}}
& multicolumn{2}{c}{textbf{ML}} \
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 & textbf{0.9401} & & \
0.01 & 0.002 & 50 & 2 & & &0.8973 & textbf{0.9080} \
bottomrule
end{tabular}
caption{Values.}
label{mejorrmsepredictorbase}
end{table}

end{document}






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

Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m