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

how to add 1 milliseconds on a datetime string?

Was US film used in Luna 3?

Short story where a flexible reality hardens to an unchanging one

Why is DC so, so, so Democratic?

Does downing a character at the start of its turn require an immediate Death Saving Throw?

Are stackless C++20 coroutines a problem?

On the history of Haar measure

Wiring IKEA light fixture into old fixture

Fatal Error on Advance search

Is it possible to access the complete command line including pipes in a bash script?

German phrase for 'suited and booted'

Extrapolation v. Interpolation

Is the apartment I want to rent a scam?

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

Pass USB 3.0 connection through D-SUB connector

Monty Hall Problem with a Fallible Monty

What gave NASA the confidence for a translunar injection in Apollo 8?

Chemistry Riddle

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

ExactlyOne extension method

My current job follows "worst practices". How can I talk about my experience in an interview without giving off red flags?

How does mathematics work?

The seven story archetypes. Are they truly all of them?

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



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;








5















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
& & & multicolumn2textbfML
& multicolumn2textbfML \
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



















  • 2





    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.
    9 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
    9 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    9 hours ago

















5















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
& & & multicolumn2textbfML
& multicolumn2textbfML \
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



















  • 2





    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.
    9 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
    9 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    9 hours ago













5












5








5








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
& & & multicolumn2textbfML
& multicolumn2textbfML \
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
& & & multicolumn2textbfML
& multicolumn2textbfML \
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 9 hours ago







NaveganTeX

















asked 9 hours ago









NaveganTeXNaveganTeX

1,3122 silver badges11 bronze badges




1,3122 silver badges11 bronze badges







  • 2





    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.
    9 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
    9 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    9 hours ago












  • 2





    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.
    9 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
    9 hours ago






  • 1





    Each row, including the first row.

    – Torbjørn T.
    9 hours ago







2




2





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.
9 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.
9 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
9 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
9 hours ago




1




1





Each row, including the first row.

– Torbjørn T.
9 hours ago





Each row, including the first row.

– Torbjørn T.
9 hours ago










1 Answer
1






active

oldest

votes


















6














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
& & & & multicolumn2textbfML
& multicolumn2textbfML \
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









6














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
& & & & multicolumn2textbfML
& multicolumn2textbfML \
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















6














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
& & & & multicolumn2textbfML
& multicolumn2textbfML \
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













6












6








6







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
& & & & multicolumn2textbfML
& multicolumn2textbfML \
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
& & & & multicolumn2textbfML
& multicolumn2textbfML \
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

ParseJSON using SSJSUsing AMPscript with SSJS ActivitiesHow to resubscribe a user in Marketing cloud using SSJS?Pulling Subscriber Status from Lists using SSJSRetrieving Emails using SSJSProblem in updating DE using SSJSUsing SSJS to send single email in Marketing CloudError adding EmailSendDefinition using SSJS

Кампала Садржај Географија Географија Историја Становништво Привреда Партнерски градови Референце Спољашње везе Мени за навигацију0°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.340°11′ СГШ; 32°20′ ИГД / 0.18° СГШ; 32.34° ИГД / 0.18; 32.34МедијиПодациЗванични веб-сајту

19. јануар Садржај Догађаји Рођења Смрти Празници и дани сећања Види још Референце Мени за навигацијуу