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;
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:
I would like to leave it like
$lambda$
andgamma
, meaning, alone.
tables
add a comment |
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:
I would like to leave it like
$lambda$
andgamma
, meaning, alone.
tables
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 thetabular
, 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
add a comment |
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:
I would like to leave it like
$lambda$
andgamma
, meaning, alone.
tables
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:
I would like to leave it like
$lambda$
andgamma
, meaning, alone.
tables
tables
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 thetabular
, 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
add a comment |
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 thetabular
, 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
add a comment |
1 Answer
1
active
oldest
votes
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?
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
WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!
– NaveganTeX
Jul 23 at 21:33
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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?
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
WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!
– NaveganTeX
Jul 23 at 21:33
add a comment |
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?
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
WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!
– NaveganTeX
Jul 23 at 21:33
add a comment |
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?
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
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?
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
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 thetabular
, 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