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;
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:
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
& & & 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:
I would like to leave it like
$lambda$
andgamma
, meaning, alone.
tables
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 thetabular
, 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
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
& & & 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:
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
& & & 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:
I would like to leave it like
$lambda$
andgamma
, meaning, alone.
tables
tables
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 thetabular
, 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
add a comment |
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 thetabular
, 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
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
& & & & 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
WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!
– NaveganTeX
8 hours ago
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
& & & & 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
WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!
– NaveganTeX
8 hours ago
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
& & & & 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
WOW!!!!!! You have a great taste! I really appreciate it! It looks soo good!!!
– NaveganTeX
8 hours ago
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
& & & & 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
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
& & & & 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
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
add a comment |
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
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
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 thetabular
, 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