LaTeX gives error undefined control sequence tableAlign columns correctly in multicolumn environmentThe following Table code does not execute in IEEE transaction Template. Please help'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”?LaTeX table undefined control sequenceundefined control sequence. bstctlcitetable error: undefined control sequence
Could Boris Johnson face criminal charges for illegally proroguing Parliament?
French license plates
Is "Ram married his daughter" ambiguous?
Why does it seem the best way to make a living is to invest in real estate?
Can Fabled Passage generate two mana with Amulet of Vigor?
GPLv3 forces us to make code available, but to who?
Does the US Armed Forces refuse to recruit anyone with an IQ less than 83?
Did Joe Biden "stop a prosecution" into his son in Ukraine? And did he brag about stopping the prosecution?
Young adult short story book with one story where a woman finds a walrus suit and becomes a walrus
Airport Security - advanced check, 4th amendment breach
Duck, duck, gone!
Anonymous reviewer disclosed his identity. Should I thank him by name?
How to identify whether a publisher is genuine or not?
Sending mail to the Professor for PhD, after seeing his tweet
How is this situation not a checkmate?
As a team leader is it appropriate to bring in fundraiser candy?
How to level a picture frame hung on a single nail?
Why is there such a singular place for bird watching?
How to refresh wired service getRecord manually?
Can I bring this power bank on board the aircraft?
The answer is a girl's name (my future granddaughter) - can anyone help?
Subject prefixes in Bantu languages
Realistically, how much do you need to start investing?
Are there types of animals that can't make the trip to space? (physiologically)
LaTeX gives error undefined control sequence table
Align columns correctly in multicolumn environmentThe following Table code does not execute in IEEE transaction Template. Please help'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”?LaTeX table undefined control sequenceundefined control sequence. bstctlcitetable error: undefined control sequence
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
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
2
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
Apr 16 at 6:33
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 Apr 16 at 7:21
Mensch
49.8k10 gold badges55 silver badges182 bronze badges
49.8k10 gold badges55 silver badges182 bronze badges
asked Apr 16 at 4:40
Ghulam HafeezGhulam Hafeez
1126 bronze badges
1126 bronze badges
2
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
Apr 16 at 6:33
add a comment
|
2
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
Apr 16 at 6:33
2
2
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
Apr 16 at 6:33
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
Apr 16 at 6:33
add a comment
|
3 Answers
3
active
oldest
votes
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
1
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
Apr 16 at 6:54
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 ... The reason is that classIEEEtran
uses a two-column-layout. Then environmenttable
has to fit into one column, but your used table exceeds the possiblecolumnwidth
. To get rid of this use environmenttable*
instead. It spans both columns ...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
. - Because you gave us no
bib
file I simply commented your citing of books etc. in the table (cite
) ...
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:
or better for showing the issue with environment table
with filled columns in document:
With using the following code for the table (I used package blindtext
to generate dummy text to fill the columns) with environment table*
:
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
you get the following result:
The complete code is with both tables (see the better label for the tables with labeltab:<name>
):
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
%usepackagecaption % unsupported in IEEEtran!
%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
usepackageblindtext
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
bf Methodologies
& bf Features
& bf Targets Achieved
& bfLimitations and Remarks \
midrule
bfseries Methodologies
& bfseries Features
& bfseries Targets Achieved
& bfseriesLimitations and Remarks \
midrule
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
Blindtext
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
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 already pointed out in this 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 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/4.0/"u003ecc by-sa 4.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 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
1
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
Apr 16 at 6:54
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
1
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
Apr 16 at 6:54
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 Apr 16 at 5:17
user121799
1
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
Apr 16 at 6:54
add a comment
|
1
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
Apr 16 at 6:54
1
1
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
Apr 16 at 6:54
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
Apr 16 at 6:54
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 ... The reason is that classIEEEtran
uses a two-column-layout. Then environmenttable
has to fit into one column, but your used table exceeds the possiblecolumnwidth
. To get rid of this use environmenttable*
instead. It spans both columns ...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
. - Because you gave us no
bib
file I simply commented your citing of books etc. in the table (cite
) ...
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:
or better for showing the issue with environment table
with filled columns in document:
With using the following code for the table (I used package blindtext
to generate dummy text to fill the columns) with environment table*
:
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
you get the following result:
The complete code is with both tables (see the better label for the tables with labeltab:<name>
):
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
%usepackagecaption % unsupported in IEEEtran!
%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
usepackageblindtext
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
bf Methodologies
& bf Features
& bf Targets Achieved
& bfLimitations and Remarks \
midrule
bfseries Methodologies
& bfseries Features
& bfseries Targets Achieved
& bfseriesLimitations and Remarks \
midrule
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
Blindtext
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
enddocument
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 ... The reason is that classIEEEtran
uses a two-column-layout. Then environmenttable
has to fit into one column, but your used table exceeds the possiblecolumnwidth
. To get rid of this use environmenttable*
instead. It spans both columns ...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
. - Because you gave us no
bib
file I simply commented your citing of books etc. in the table (cite
) ...
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:
or better for showing the issue with environment table
with filled columns in document:
With using the following code for the table (I used package blindtext
to generate dummy text to fill the columns) with environment table*
:
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
you get the following result:
The complete code is with both tables (see the better label for the tables with labeltab:<name>
):
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
%usepackagecaption % unsupported in IEEEtran!
%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
usepackageblindtext
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
bf Methodologies
& bf Features
& bf Targets Achieved
& bfLimitations and Remarks \
midrule
bfseries Methodologies
& bfseries Features
& bfseries Targets Achieved
& bfseriesLimitations and Remarks \
midrule
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
Blindtext
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
enddocument
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 ... The reason is that classIEEEtran
uses a two-column-layout. Then environmenttable
has to fit into one column, but your used table exceeds the possiblecolumnwidth
. To get rid of this use environmenttable*
instead. It spans both columns ...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
. - Because you gave us no
bib
file I simply commented your citing of books etc. in the table (cite
) ...
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:
or better for showing the issue with environment table
with filled columns in document:
With using the following code for the table (I used package blindtext
to generate dummy text to fill the columns) with environment table*
:
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
you get the following result:
The complete code is with both tables (see the better label for the tables with labeltab:<name>
):
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
%usepackagecaption % unsupported in IEEEtran!
%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
usepackageblindtext
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
bf Methodologies
& bf Features
& bf Targets Achieved
& bfLimitations and Remarks \
midrule
bfseries Methodologies
& bfseries Features
& bfseries Targets Achieved
& bfseriesLimitations and Remarks \
midrule
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
Blindtext
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
enddocument
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 ... The reason is that classIEEEtran
uses a two-column-layout. Then environmenttable
has to fit into one column, but your used table exceeds the possiblecolumnwidth
. To get rid of this use environmenttable*
instead. It spans both columns ...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
. - Because you gave us no
bib
file I simply commented your citing of books etc. in the table (cite
) ...
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:
or better for showing the issue with environment table
with filled columns in document:
With using the following code for the table (I used package blindtext
to generate dummy text to fill the columns) with environment table*
:
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
you get the following result:
The complete code is with both tables (see the better label for the tables with labeltab:<name>
):
documentclass[journal]IEEEtran
%usepackage[classicReIm]kpfonts
%usepackagesiunitx
usepackagebooktabs
usepackagefloat % for fix the image position
%usepackagesubfloat
%usepackagecaption % unsupported in IEEEtran!
%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
usepackageblindtext
%usepackagecleveref % <===============================================
hyphenationSmart Grid
pagenumberinggobble %%% for without page numbers
newcolumntypeC[1]>centeringarraybackslashm#1
begindocument
begintable[H]
% centering
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litrature
begintabularC2.5cmC6cmC2.5cmC2.5cm % C
toprule
bf Methodologies
& bf Features
& bf Targets Achieved
& bfLimitations and Remarks \
midrule
bfseries Methodologies
& bfseries Features
& bfseries Targets Achieved
& bfseriesLimitations and Remarks \
midrule
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
Blindtext
blindtext
begintable*
centering % <========================================================
small
%tablesizefootnotesize % <==========================================
captionComprehension of recent and relevant work.
labeltab:litraturea
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*
Blindtext
enddocument
edited Apr 16 at 14:51
answered Apr 16 at 6:16
MenschMensch
49.8k10 gold badges55 silver badges182 bronze badges
49.8k10 gold badges55 silver badges182 bronze badges
add a comment
|
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 already pointed out in this 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 already pointed out in this 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 already pointed out in this 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 already pointed out in this 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
edited May 20 at 4:09
Mensch
49.8k10 gold badges55 silver badges182 bronze badges
49.8k10 gold badges55 silver badges182 bronze badges
answered Apr 16 at 6:51
MicoMico
306k33 gold badges422 silver badges834 bronze badges
306k33 gold badges422 silver badges834 bronze badges
add a comment
|
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
2
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
Apr 16 at 6:33