LaTeX gives error undefined control sequence table Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Align columns correctly in multicolumn environmentError “Undefined control sequence”'Undefined control sequence' error when typesetting tableNew editor and undefined control sequence errorLatex table error, Forbidden control sequenceI'm getting the error “Undefined control sequence”?'Undefined control sequence' error tabular tabitem“! Undefined control sequence.” errors with tableLaTeX table undefined control sequencetable error: undefined control sequenceUndefined control sequence tbl
List *all* the tuples!
Why don't the Weasley twins use magic outside of school if the Trace can only find the location of spells cast?
What are the possible ways to detect skin while classifying diseases?
Why does Python start at index -1 (as opposed to 0) when indexing a list from the end?
Why constant symbols in a language?
How to do this path/lattice with tikz
Check which numbers satisfy the condition [A*B*C = A! + B! + C!]
How to deal with a team lead who never gives me credit?
Were Kohanim forbidden from serving in King David's army?
What would be the ideal power source for a cybernetic eye?
What are the pros and cons of Aerospike nosecones?
How discoverable are IPv6 addresses and AAAA names by potential attackers?
Is there a documented rationale why the House Ways and Means chairman can demand tax info?
Does surprise arrest existing movement?
How can players work together to take actions that are otherwise impossible?
How does a Death Domain cleric's Touch of Death feature work with Touch-range spells delivered by familiars?
Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?
What happens to sewage if there is no river near by?
What is a Meta algorithm?
How widely used is the term Treppenwitz? Is it something that most Germans know?
Do you forfeit tax refunds/credits if you aren't required to and don't file by April 15?
When to stop saving and start investing?
Can inflation occur in a positive-sum game currency system such as the Stack Exchange reputation system?
Echoing a tail command produces unexpected output?
LaTeX gives error undefined control sequence table
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Align columns correctly in multicolumn environmentError “Undefined control sequence”'Undefined control sequence' error when typesetting tableNew editor and undefined control sequence errorLatex table error, Forbidden control sequenceI'm getting the error “Undefined control sequence”?'Undefined control sequence' error tabular tabitem“! Undefined control sequence.” errors with tableLaTeX table undefined control sequencetable error: undefined control sequenceUndefined control sequence tbl
documentclass[journal]IEEEtran
hyphenationSmart Grid
usepackage[classicReIm]kpfonts
usepackagesiunitx,booktabs
usepackagesubfloat
usepackagesubcaption
usepackagegraphicx
usepackagecolor %for colors
usepackageepstopdf
usepackageurl
usepackagehhline%%%
usepackagefloat %for fix the image position
%usepackage[]algorithm2e
usepackageamsmath %% for case bracket
%usepackageurl
usepackagemultirow % for devide row
usepackagecaption
%usepackagesubcaption % forr subfigures
usepackagemulticol
%usepackagesubfig
%usepackagecite
usepackagecleveref
usepackageamsmath
pagenumberinggobble %%% for without page numbers
usepackagefloat
%usepackagealgorithm
usepackagearray
usepackagepdflscape
usepackage[classicReIm]kpfonts
begindocument
begintable[H]
centering small
tablesizefootnotesize
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
centeringbf Methodologies & centeringbf Features¢eringbf Targets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
tables ieeetran
add a comment |
documentclass[journal]IEEEtran
hyphenationSmart Grid
usepackage[classicReIm]kpfonts
usepackagesiunitx,booktabs
usepackagesubfloat
usepackagesubcaption
usepackagegraphicx
usepackagecolor %for colors
usepackageepstopdf
usepackageurl
usepackagehhline%%%
usepackagefloat %for fix the image position
%usepackage[]algorithm2e
usepackageamsmath %% for case bracket
%usepackageurl
usepackagemultirow % for devide row
usepackagecaption
%usepackagesubcaption % forr subfigures
usepackagemulticol
%usepackagesubfig
%usepackagecite
usepackagecleveref
usepackageamsmath
pagenumberinggobble %%% for without page numbers
usepackagefloat
%usepackagealgorithm
usepackagearray
usepackagepdflscape
usepackage[classicReIm]kpfonts
begindocument
begintable[H]
centering small
tablesizefootnotesize
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
centeringbf Methodologies & centeringbf Features¢eringbf Targets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
tables ieeetran
Off-topic: When using theIEEEtran
document class, employing thecaption
andsubcaption
packages is not recommended. Depending on the options with whichcaption
is loaded, you may experience some serious conflicts and may not be able to compile your document successfully.
– Mico
49 mins ago
add a comment |
documentclass[journal]IEEEtran
hyphenationSmart Grid
usepackage[classicReIm]kpfonts
usepackagesiunitx,booktabs
usepackagesubfloat
usepackagesubcaption
usepackagegraphicx
usepackagecolor %for colors
usepackageepstopdf
usepackageurl
usepackagehhline%%%
usepackagefloat %for fix the image position
%usepackage[]algorithm2e
usepackageamsmath %% for case bracket
%usepackageurl
usepackagemultirow % for devide row
usepackagecaption
%usepackagesubcaption % forr subfigures
usepackagemulticol
%usepackagesubfig
%usepackagecite
usepackagecleveref
usepackageamsmath
pagenumberinggobble %%% for without page numbers
usepackagefloat
%usepackagealgorithm
usepackagearray
usepackagepdflscape
usepackage[classicReIm]kpfonts
begindocument
begintable[H]
centering small
tablesizefootnotesize
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
centeringbf Methodologies & centeringbf Features¢eringbf Targets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
tables ieeetran
documentclass[journal]IEEEtran
hyphenationSmart Grid
usepackage[classicReIm]kpfonts
usepackagesiunitx,booktabs
usepackagesubfloat
usepackagesubcaption
usepackagegraphicx
usepackagecolor %for colors
usepackageepstopdf
usepackageurl
usepackagehhline%%%
usepackagefloat %for fix the image position
%usepackage[]algorithm2e
usepackageamsmath %% for case bracket
%usepackageurl
usepackagemultirow % for devide row
usepackagecaption
%usepackagesubcaption % forr subfigures
usepackagemulticol
%usepackagesubfig
%usepackagecite
usepackagecleveref
usepackageamsmath
pagenumberinggobble %%% for without page numbers
usepackagefloat
%usepackagealgorithm
usepackagearray
usepackagepdflscape
usepackage[classicReIm]kpfonts
begindocument
begintable[H]
centering small
tablesizefootnotesize
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
centeringbf Methodologies & centeringbf Features¢eringbf Targets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
tables ieeetran
tables ieeetran
edited 1 min ago
Kurt
41.2k950164
41.2k950164
asked 2 hours ago
Ghulam HafeezGhulam Hafeez
514
514
Off-topic: When using theIEEEtran
document class, employing thecaption
andsubcaption
packages is not recommended. Depending on the options with whichcaption
is loaded, you may experience some serious conflicts and may not be able to compile your document successfully.
– Mico
49 mins ago
add a comment |
Off-topic: When using theIEEEtran
document class, employing thecaption
andsubcaption
packages is not recommended. Depending on the options with whichcaption
is loaded, you may experience some serious conflicts and may not be able to compile your document successfully.
– Mico
49 mins ago
Off-topic: When using the
IEEEtran
document class, employing the caption
and subcaption
packages is not recommended. Depending on the options with which caption
is loaded, you may experience some serious conflicts and may not be able to compile your document successfully.– Mico
49 mins ago
Off-topic: When using the
IEEEtran
document class, employing the caption
and subcaption
packages is not recommended. Depending on the options with which caption
is loaded, you may experience some serious conflicts and may not be able to compile your document successfully.– Mico
49 mins ago
add a comment |
3 Answers
3
active
oldest
votes
You have a lot of issues in your shown code.
- Do you really need all the packages you are loading?
- You load several packages twice, do not do this!
- Have a closer look at the order of calling packages. In your case package
cleveref
should be called last. If you want to usehyperref
too load it beforecleveref
! - For the problem with your table the used font is not relevant (I commented it).
- The definition for
C
you used in your table is missing. Because you loadarray
I thinknewcolumntypeC[1]>centeringarraybackslashm#1
is what you are using but you had not copied into your code. If you usep#1
instead of mym#1
please check the added screenshot below for differences! - I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.
- I commented all not needed packages you used in your code for the issue with the table. Please check the different order of loading packages!
- Please see that
centering
is not working with your used class inside environmenttable
. To visualize this I added packageshowframe
. It shows typing area and margins ... - I commented
tablesizefootnotesize
because it throws the error messagecomand tablesize undefined
. - Your used command
bf
is outdated, in your case you can usetextbf...
instead (as I did in the following code). An alternative would be to changebf
tobfseries
.
With the following code
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
usepackagecaption
%usepackagesubcaption % for subfigures
%usepackagegraphicx
%usepackagecolor % for colors
%usepackageepstopdf
%usepackageurl
%usepackagehhline%%%
%usepackage[]algorithm2e
%usepackageamsmath % for case bracket
%usepackagemultirow % for devide row
%usepackagemulticol
%usepackagesubfig
%usepackagecite
%usepackagealgorithm
usepackagearray
%usepackagepdflscape
usepackageshowframe
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
textbfMethodologies
& textbfFeatures
& textbfTargets Achieved
& textbfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite35
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite6
& Reduced user frustration and electricity cost
& The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP
& GWO applied to economic load dispatch problems %cite3
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabular
endtable
enddocument
you get the result:
@Mico I added it, thanks!
– Kurt
51 mins ago
add a comment |
Your code has some serious issues. The fact that the C
column type isn't defined is not even the most serious issue.
The
IEEEtran
document class employs a two-column layout by default. You need to employ atable*
environment instead of atable
environment, so that the tabular material may safely span both columns.Since the
table*
environment spans both columns, you might as well make use of this fact and employ atabularx
environment instead of atabular
environment. I suggest you use the basicl
column type for the left-hand column and theX
column type for the next three columns.The
caption
andsubcaption
packages are known not be compatible with theIEEEtran
document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by theIEEEtran
document class.Do give the tabular material a more open "look", mainly by using fewer horizontal rules. Also, don't over-use bold-facing. For sure, for the table at hand, using bold-facing for the header cells risks coming across as tacky, maybe even a bit vulgar.
As @Kurt has already pointed out in his answer, don't load packages multiple times. In fact, do ask yourself if you really need all the packages you currently load. The code below loads only those packages that are required to make the table compilable.
documentclass[journal]IEEEtran
usepackage[classicReIm]kpfonts
usepackagebooktabs,tabularx,lipsum
begindocument
begintable*
captionSummary of recent and relevant work. labellitrature
begintabularxtextwidth@lXXX@
toprule
Methodologies & Features & Targets Achieved & Limitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
addlinespace %midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
addlinespace %midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabularx
endtable*
lipsum[1-30] % filler text
enddocument
add a comment |
You need to define the C
column. I took the definition from here.
documentclass[journal]IEEEtran
usepackagesiunitx,booktabs
usepackagefloat %for fix the image position
usepackageamsmath %% for case bracket
pagenumberinggobble %%% for without page numbers
usepackagefloat
usepackagearray
usepackage[classicReIm]kpfonts
% from https://tex.stackexchange.com/a/175138/121799
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
centering small
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
textbfMethodologies & textbfFeatures&textbfTargets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using atable*
environment, to let the material span both columns.
– Mico
28 mins 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%2f485076%2flatex-gives-error-undefined-control-sequence-table%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
You have a lot of issues in your shown code.
- Do you really need all the packages you are loading?
- You load several packages twice, do not do this!
- Have a closer look at the order of calling packages. In your case package
cleveref
should be called last. If you want to usehyperref
too load it beforecleveref
! - For the problem with your table the used font is not relevant (I commented it).
- The definition for
C
you used in your table is missing. Because you loadarray
I thinknewcolumntypeC[1]>centeringarraybackslashm#1
is what you are using but you had not copied into your code. If you usep#1
instead of mym#1
please check the added screenshot below for differences! - I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.
- I commented all not needed packages you used in your code for the issue with the table. Please check the different order of loading packages!
- Please see that
centering
is not working with your used class inside environmenttable
. To visualize this I added packageshowframe
. It shows typing area and margins ... - I commented
tablesizefootnotesize
because it throws the error messagecomand tablesize undefined
. - Your used command
bf
is outdated, in your case you can usetextbf...
instead (as I did in the following code). An alternative would be to changebf
tobfseries
.
With the following code
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
usepackagecaption
%usepackagesubcaption % for subfigures
%usepackagegraphicx
%usepackagecolor % for colors
%usepackageepstopdf
%usepackageurl
%usepackagehhline%%%
%usepackage[]algorithm2e
%usepackageamsmath % for case bracket
%usepackagemultirow % for devide row
%usepackagemulticol
%usepackagesubfig
%usepackagecite
%usepackagealgorithm
usepackagearray
%usepackagepdflscape
usepackageshowframe
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
textbfMethodologies
& textbfFeatures
& textbfTargets Achieved
& textbfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite35
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite6
& Reduced user frustration and electricity cost
& The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP
& GWO applied to economic load dispatch problems %cite3
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabular
endtable
enddocument
you get the result:
@Mico I added it, thanks!
– Kurt
51 mins ago
add a comment |
You have a lot of issues in your shown code.
- Do you really need all the packages you are loading?
- You load several packages twice, do not do this!
- Have a closer look at the order of calling packages. In your case package
cleveref
should be called last. If you want to usehyperref
too load it beforecleveref
! - For the problem with your table the used font is not relevant (I commented it).
- The definition for
C
you used in your table is missing. Because you loadarray
I thinknewcolumntypeC[1]>centeringarraybackslashm#1
is what you are using but you had not copied into your code. If you usep#1
instead of mym#1
please check the added screenshot below for differences! - I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.
- I commented all not needed packages you used in your code for the issue with the table. Please check the different order of loading packages!
- Please see that
centering
is not working with your used class inside environmenttable
. To visualize this I added packageshowframe
. It shows typing area and margins ... - I commented
tablesizefootnotesize
because it throws the error messagecomand tablesize undefined
. - Your used command
bf
is outdated, in your case you can usetextbf...
instead (as I did in the following code). An alternative would be to changebf
tobfseries
.
With the following code
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
usepackagecaption
%usepackagesubcaption % for subfigures
%usepackagegraphicx
%usepackagecolor % for colors
%usepackageepstopdf
%usepackageurl
%usepackagehhline%%%
%usepackage[]algorithm2e
%usepackageamsmath % for case bracket
%usepackagemultirow % for devide row
%usepackagemulticol
%usepackagesubfig
%usepackagecite
%usepackagealgorithm
usepackagearray
%usepackagepdflscape
usepackageshowframe
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
textbfMethodologies
& textbfFeatures
& textbfTargets Achieved
& textbfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite35
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite6
& Reduced user frustration and electricity cost
& The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP
& GWO applied to economic load dispatch problems %cite3
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabular
endtable
enddocument
you get the result:
@Mico I added it, thanks!
– Kurt
51 mins ago
add a comment |
You have a lot of issues in your shown code.
- Do you really need all the packages you are loading?
- You load several packages twice, do not do this!
- Have a closer look at the order of calling packages. In your case package
cleveref
should be called last. If you want to usehyperref
too load it beforecleveref
! - For the problem with your table the used font is not relevant (I commented it).
- The definition for
C
you used in your table is missing. Because you loadarray
I thinknewcolumntypeC[1]>centeringarraybackslashm#1
is what you are using but you had not copied into your code. If you usep#1
instead of mym#1
please check the added screenshot below for differences! - I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.
- I commented all not needed packages you used in your code for the issue with the table. Please check the different order of loading packages!
- Please see that
centering
is not working with your used class inside environmenttable
. To visualize this I added packageshowframe
. It shows typing area and margins ... - I commented
tablesizefootnotesize
because it throws the error messagecomand tablesize undefined
. - Your used command
bf
is outdated, in your case you can usetextbf...
instead (as I did in the following code). An alternative would be to changebf
tobfseries
.
With the following code
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
usepackagecaption
%usepackagesubcaption % for subfigures
%usepackagegraphicx
%usepackagecolor % for colors
%usepackageepstopdf
%usepackageurl
%usepackagehhline%%%
%usepackage[]algorithm2e
%usepackageamsmath % for case bracket
%usepackagemultirow % for devide row
%usepackagemulticol
%usepackagesubfig
%usepackagecite
%usepackagealgorithm
usepackagearray
%usepackagepdflscape
usepackageshowframe
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
textbfMethodologies
& textbfFeatures
& textbfTargets Achieved
& textbfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite35
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite6
& Reduced user frustration and electricity cost
& The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP
& GWO applied to economic load dispatch problems %cite3
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabular
endtable
enddocument
you get the result:
You have a lot of issues in your shown code.
- Do you really need all the packages you are loading?
- You load several packages twice, do not do this!
- Have a closer look at the order of calling packages. In your case package
cleveref
should be called last. If you want to usehyperref
too load it beforecleveref
! - For the problem with your table the used font is not relevant (I commented it).
- The definition for
C
you used in your table is missing. Because you loadarray
I thinknewcolumntypeC[1]>centeringarraybackslashm#1
is what you are using but you had not copied into your code. If you usep#1
instead of mym#1
please check the added screenshot below for differences! - I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.
- I commented all not needed packages you used in your code for the issue with the table. Please check the different order of loading packages!
- Please see that
centering
is not working with your used class inside environmenttable
. To visualize this I added packageshowframe
. It shows typing area and margins ... - I commented
tablesizefootnotesize
because it throws the error messagecomand tablesize undefined
. - Your used command
bf
is outdated, in your case you can usetextbf...
instead (as I did in the following code). An alternative would be to changebf
tobfseries
.
With the following code
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
usepackagecaption
%usepackagesubcaption % for subfigures
%usepackagegraphicx
%usepackagecolor % for colors
%usepackageepstopdf
%usepackageurl
%usepackagehhline%%%
%usepackage[]algorithm2e
%usepackageamsmath % for case bracket
%usepackagemultirow % for devide row
%usepackagemulticol
%usepackagesubfig
%usepackagecite
%usepackagealgorithm
usepackagearray
%usepackagepdflscape
usepackageshowframe
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
textbfMethodologies
& textbfFeatures
& textbfTargets Achieved
& textbfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite35
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite6
& Reduced user frustration and electricity cost
& The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP
& GWO applied to economic load dispatch problems %cite3
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabular
endtable
enddocument
you get the result:
edited 52 mins ago
answered 1 hour ago
KurtKurt
41.2k950164
41.2k950164
@Mico I added it, thanks!
– Kurt
51 mins ago
add a comment |
@Mico I added it, thanks!
– Kurt
51 mins ago
@Mico I added it, thanks!
– Kurt
51 mins ago
@Mico I added it, thanks!
– Kurt
51 mins ago
add a comment |
Your code has some serious issues. The fact that the C
column type isn't defined is not even the most serious issue.
The
IEEEtran
document class employs a two-column layout by default. You need to employ atable*
environment instead of atable
environment, so that the tabular material may safely span both columns.Since the
table*
environment spans both columns, you might as well make use of this fact and employ atabularx
environment instead of atabular
environment. I suggest you use the basicl
column type for the left-hand column and theX
column type for the next three columns.The
caption
andsubcaption
packages are known not be compatible with theIEEEtran
document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by theIEEEtran
document class.Do give the tabular material a more open "look", mainly by using fewer horizontal rules. Also, don't over-use bold-facing. For sure, for the table at hand, using bold-facing for the header cells risks coming across as tacky, maybe even a bit vulgar.
As @Kurt has already pointed out in his answer, don't load packages multiple times. In fact, do ask yourself if you really need all the packages you currently load. The code below loads only those packages that are required to make the table compilable.
documentclass[journal]IEEEtran
usepackage[classicReIm]kpfonts
usepackagebooktabs,tabularx,lipsum
begindocument
begintable*
captionSummary of recent and relevant work. labellitrature
begintabularxtextwidth@lXXX@
toprule
Methodologies & Features & Targets Achieved & Limitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
addlinespace %midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
addlinespace %midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabularx
endtable*
lipsum[1-30] % filler text
enddocument
add a comment |
Your code has some serious issues. The fact that the C
column type isn't defined is not even the most serious issue.
The
IEEEtran
document class employs a two-column layout by default. You need to employ atable*
environment instead of atable
environment, so that the tabular material may safely span both columns.Since the
table*
environment spans both columns, you might as well make use of this fact and employ atabularx
environment instead of atabular
environment. I suggest you use the basicl
column type for the left-hand column and theX
column type for the next three columns.The
caption
andsubcaption
packages are known not be compatible with theIEEEtran
document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by theIEEEtran
document class.Do give the tabular material a more open "look", mainly by using fewer horizontal rules. Also, don't over-use bold-facing. For sure, for the table at hand, using bold-facing for the header cells risks coming across as tacky, maybe even a bit vulgar.
As @Kurt has already pointed out in his answer, don't load packages multiple times. In fact, do ask yourself if you really need all the packages you currently load. The code below loads only those packages that are required to make the table compilable.
documentclass[journal]IEEEtran
usepackage[classicReIm]kpfonts
usepackagebooktabs,tabularx,lipsum
begindocument
begintable*
captionSummary of recent and relevant work. labellitrature
begintabularxtextwidth@lXXX@
toprule
Methodologies & Features & Targets Achieved & Limitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
addlinespace %midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
addlinespace %midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabularx
endtable*
lipsum[1-30] % filler text
enddocument
add a comment |
Your code has some serious issues. The fact that the C
column type isn't defined is not even the most serious issue.
The
IEEEtran
document class employs a two-column layout by default. You need to employ atable*
environment instead of atable
environment, so that the tabular material may safely span both columns.Since the
table*
environment spans both columns, you might as well make use of this fact and employ atabularx
environment instead of atabular
environment. I suggest you use the basicl
column type for the left-hand column and theX
column type for the next three columns.The
caption
andsubcaption
packages are known not be compatible with theIEEEtran
document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by theIEEEtran
document class.Do give the tabular material a more open "look", mainly by using fewer horizontal rules. Also, don't over-use bold-facing. For sure, for the table at hand, using bold-facing for the header cells risks coming across as tacky, maybe even a bit vulgar.
As @Kurt has already pointed out in his answer, don't load packages multiple times. In fact, do ask yourself if you really need all the packages you currently load. The code below loads only those packages that are required to make the table compilable.
documentclass[journal]IEEEtran
usepackage[classicReIm]kpfonts
usepackagebooktabs,tabularx,lipsum
begindocument
begintable*
captionSummary of recent and relevant work. labellitrature
begintabularxtextwidth@lXXX@
toprule
Methodologies & Features & Targets Achieved & Limitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
addlinespace %midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
addlinespace %midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabularx
endtable*
lipsum[1-30] % filler text
enddocument
Your code has some serious issues. The fact that the C
column type isn't defined is not even the most serious issue.
The
IEEEtran
document class employs a two-column layout by default. You need to employ atable*
environment instead of atable
environment, so that the tabular material may safely span both columns.Since the
table*
environment spans both columns, you might as well make use of this fact and employ atabularx
environment instead of atabular
environment. I suggest you use the basicl
column type for the left-hand column and theX
column type for the next three columns.The
caption
andsubcaption
packages are known not be compatible with theIEEEtran
document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by theIEEEtran
document class.Do give the tabular material a more open "look", mainly by using fewer horizontal rules. Also, don't over-use bold-facing. For sure, for the table at hand, using bold-facing for the header cells risks coming across as tacky, maybe even a bit vulgar.
As @Kurt has already pointed out in his answer, don't load packages multiple times. In fact, do ask yourself if you really need all the packages you currently load. The code below loads only those packages that are required to make the table compilable.
documentclass[journal]IEEEtran
usepackage[classicReIm]kpfonts
usepackagebooktabs,tabularx,lipsum
begindocument
begintable*
captionSummary of recent and relevant work. labellitrature
begintabularxtextwidth@lXXX@
toprule
Methodologies & Features & Targets Achieved & Limitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
addlinespace %midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
addlinespace %midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
bottomrule
endtabularx
endtable*
lipsum[1-30] % filler text
enddocument
answered 31 mins ago
MicoMico
287k32391780
287k32391780
add a comment |
add a comment |
You need to define the C
column. I took the definition from here.
documentclass[journal]IEEEtran
usepackagesiunitx,booktabs
usepackagefloat %for fix the image position
usepackageamsmath %% for case bracket
pagenumberinggobble %%% for without page numbers
usepackagefloat
usepackagearray
usepackage[classicReIm]kpfonts
% from https://tex.stackexchange.com/a/175138/121799
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
centering small
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
textbfMethodologies & textbfFeatures&textbfTargets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using atable*
environment, to let the material span both columns.
– Mico
28 mins ago
add a comment |
You need to define the C
column. I took the definition from here.
documentclass[journal]IEEEtran
usepackagesiunitx,booktabs
usepackagefloat %for fix the image position
usepackageamsmath %% for case bracket
pagenumberinggobble %%% for without page numbers
usepackagefloat
usepackagearray
usepackage[classicReIm]kpfonts
% from https://tex.stackexchange.com/a/175138/121799
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
centering small
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
textbfMethodologies & textbfFeatures&textbfTargets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using atable*
environment, to let the material span both columns.
– Mico
28 mins ago
add a comment |
You need to define the C
column. I took the definition from here.
documentclass[journal]IEEEtran
usepackagesiunitx,booktabs
usepackagefloat %for fix the image position
usepackageamsmath %% for case bracket
pagenumberinggobble %%% for without page numbers
usepackagefloat
usepackagearray
usepackage[classicReIm]kpfonts
% from https://tex.stackexchange.com/a/175138/121799
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
centering small
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
textbfMethodologies & textbfFeatures&textbfTargets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
You need to define the C
column. I took the definition from here.
documentclass[journal]IEEEtran
usepackagesiunitx,booktabs
usepackagefloat %for fix the image position
usepackageamsmath %% for case bracket
pagenumberinggobble %%% for without page numbers
usepackagefloat
usepackagearray
usepackage[classicReIm]kpfonts
% from https://tex.stackexchange.com/a/175138/121799
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
centering small
captionComprehension of recent and relevant work. labellitrature
begintabularC2.5cmC6cmC2.5cmC2.5cm
toprule
textbfMethodologies & textbfFeatures&textbfTargets Achieved&bfLimitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite9 & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite35 & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm& Heuristic optimization of generic cost model cite6 & Reduced user frustration and electricity cost & The PAR is ignored and complexity of the system is increased \
midrule
GWO and ILP &GWO applied to economic load dispatch problems cite3& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
endtabular
endtable
enddocument
answered 2 hours ago
marmotmarmot
118k6152286
118k6152286
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using atable*
environment, to let the material span both columns.
– Mico
28 mins ago
add a comment |
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using atable*
environment, to let the material span both columns.
– Mico
28 mins ago
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using a
table*
environment, to let the material span both columns.– Mico
28 mins ago
The fact that the caption is not centered over the table should be a give-away that the document class employs two-column mode. Hence, do please inform the OP that he/she should be using a
table*
environment, to let the material span both columns.– Mico
28 mins 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%2f485076%2flatex-gives-error-undefined-control-sequence-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
Off-topic: When using the
IEEEtran
document class, employing thecaption
andsubcaption
packages is not recommended. Depending on the options with whichcaption
is loaded, you may experience some serious conflicts and may not be able to compile your document successfully.– Mico
49 mins ago