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

Is there a general term for the items in a directory?

Can it be useful for a player block with a hanging piece in a back rank mate situation?

Return last number in sub-sequences in a list of integers

What is the most 'environmentally friendly' way to learn to fly?

Why do we need a voltage divider when we get the same voltage at the output as the input?

Move label of an angle in Tikz

"Will flex for food". What does this phrase mean?

Does the use of a new concept require a prior definition?

Went to a big 4 but got fired for underperformance in a year recently - Now every one thinks I'm pro - How to balance expectations?

Can birds evolve without trees?

Does the problem of P vs NP come under the category of Operational Research?

What's the term for a group of people who enjoy literary works?

Need help identifying how to open this bolt/screw

What do the screens say after you are set free?

How to trick a fairly simplistic kill-counter?

HackerRank Implement Queue using two stacks Solution

Overprovisioning SSD on ubuntu. How? Ubuntu 19.04 Samsung SSD 860

Windows del command not working?

Password management for kids - what's a good way to start?

Can I say "Gesundheit" if someone is coughing?

Is it moral to remove/hide certain parts of a photo, as a photographer?

Could flaps be raised upward to serve as spoilers / lift dumpers?

What sort of solar system / atmospheric conditions, if any, would allow for a very cold planet that still receives plenty of light from its sun?

Why are Star Wars Rebel Alliance ships named after letters from the Latin alphabet?



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.
    Jul 23 at 21:18











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

    – NaveganTeX
    Jul 23 at 21:19






  • 1





    Each row, including the first row.

    – Torbjørn T.
    Jul 23 at 21:24

















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.
    Jul 23 at 21:18











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

    – NaveganTeX
    Jul 23 at 21:19






  • 1





    Each row, including the first row.

    – Torbjørn T.
    Jul 23 at 21:24













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 Jul 23 at 21:23







NaveganTeX

















asked Jul 23 at 21:12









NaveganTeXNaveganTeX

1,3612 silver badges12 bronze badges




1,3612 silver badges12 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.
    Jul 23 at 21:18











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

    – NaveganTeX
    Jul 23 at 21:19






  • 1





    Each row, including the first row.

    – Torbjørn T.
    Jul 23 at 21:24












  • 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.
    Jul 23 at 21:18











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

    – NaveganTeX
    Jul 23 at 21:19






  • 1





    Each row, including the first row.

    – Torbjørn T.
    Jul 23 at 21:24







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.
Jul 23 at 21:18





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.
Jul 23 at 21:18













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

– NaveganTeX
Jul 23 at 21:19





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

– NaveganTeX
Jul 23 at 21:19




1




1





Each row, including the first row.

– Torbjørn T.
Jul 23 at 21:24





Each row, including the first row.

– Torbjørn T.
Jul 23 at 21:24










1 Answer
1






active

oldest

votes


















7














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
    Jul 23 at 21:33













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









7














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
    Jul 23 at 21:33















7














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
    Jul 23 at 21:33













7












7








7







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 Jul 23 at 21:33









Torbjørn T.Torbjørn T.

164k13 gold badges267 silver badges453 bronze badges




164k13 gold badges267 silver badges453 bronze badges















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

    – NaveganTeX
    Jul 23 at 21:33

















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

    – NaveganTeX
    Jul 23 at 21:33
















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

– NaveganTeX
Jul 23 at 21:33





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

– NaveganTeX
Jul 23 at 21:33

















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

Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form