LaTeX gives error undefined control sequence table Announcing the arrival of Valued Associate...

Sci-Fi book where patients in a coma ward all live in a subconscious world linked together

Is the Standard Deduction better than Itemized when both are the same amount?

Generate an RGB colour grid

Identify plant with long narrow paired leaves and reddish stems

What does the "x" in "x86" represent?

How does debian/ubuntu knows a package has a updated version

Do I really need recursive chmod to restrict access to a folder?

What causes the vertical darker bands in my photo?

Why do we bend a book to keep it straight?

3 doors, three guards, one stone

A coin, having probability p of landing heads and probability of q=(1-p) of landing on heads.

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

What is the logic behind the Maharil's explanation of why we don't say שעשה ניסים on Pesach?

Single word antonym of "flightless"

Dating a Former Employee

Extract all GPU name, model and GPU ram

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

How to align text above triangle figure

How do pianists reach extremely loud dynamics?

How do I stop a creek from eroding my steep embankment?

51k Euros annually for a family of 4 in Berlin: Is it enough?

How to call a function with default parameter through a pointer to function that is the return of another function?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

What does an IRS interview request entail when called in to verify expenses for a sole proprietor small business?



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 tabitemLaTeX table undefined control sequenceundefined control sequence. bstctlcitetable error: undefined control sequenceundefined control sequence apacite












4















documentclass[journal]{IEEEtran}
hyphenation{Smart Grid}
usepackage[classicReIm]{kpfonts}
usepackage{siunitx,booktabs}
usepackage{subfloat}
usepackage{subcaption}
usepackage{graphicx}
usepackage{color} %for colors
usepackage{epstopdf}
usepackage{url}
usepackage{hhline}%%%
usepackage{float} %for fix the image position
%usepackage[]{algorithm2e}
usepackage{amsmath} %% for case bracket
%usepackage{url}
usepackage{multirow} % for devide row
usepackage{caption}
%usepackage{subcaption} % forr subfigures
usepackage{multicol}
%usepackage{subfig}
%usepackage{cite}
usepackage{cleveref}
usepackage{amsmath}
pagenumbering{gobble} %%% for without page numbers
usepackage{float}
%usepackage{algorithm}
usepackage{array}
usepackage{pdflscape}
usepackage[classicReIm]{kpfonts}
begin{document}
begin{table}[H]
centering small
tablesize{footnotesize}
caption{Comprehension of recent and relevant work.} label{litrature}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
toprule
centering{bf Methodologies } & centering{bf Features}&centering{bf Targets Achieved}&bf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
end{tabular}
end{table}
end{document}









share|improve this question




















  • 1





    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
    19 hours ago
















4















documentclass[journal]{IEEEtran}
hyphenation{Smart Grid}
usepackage[classicReIm]{kpfonts}
usepackage{siunitx,booktabs}
usepackage{subfloat}
usepackage{subcaption}
usepackage{graphicx}
usepackage{color} %for colors
usepackage{epstopdf}
usepackage{url}
usepackage{hhline}%%%
usepackage{float} %for fix the image position
%usepackage[]{algorithm2e}
usepackage{amsmath} %% for case bracket
%usepackage{url}
usepackage{multirow} % for devide row
usepackage{caption}
%usepackage{subcaption} % forr subfigures
usepackage{multicol}
%usepackage{subfig}
%usepackage{cite}
usepackage{cleveref}
usepackage{amsmath}
pagenumbering{gobble} %%% for without page numbers
usepackage{float}
%usepackage{algorithm}
usepackage{array}
usepackage{pdflscape}
usepackage[classicReIm]{kpfonts}
begin{document}
begin{table}[H]
centering small
tablesize{footnotesize}
caption{Comprehension of recent and relevant work.} label{litrature}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
toprule
centering{bf Methodologies } & centering{bf Features}&centering{bf Targets Achieved}&bf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
end{tabular}
end{table}
end{document}









share|improve this question




















  • 1





    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
    19 hours ago














4












4








4


0






documentclass[journal]{IEEEtran}
hyphenation{Smart Grid}
usepackage[classicReIm]{kpfonts}
usepackage{siunitx,booktabs}
usepackage{subfloat}
usepackage{subcaption}
usepackage{graphicx}
usepackage{color} %for colors
usepackage{epstopdf}
usepackage{url}
usepackage{hhline}%%%
usepackage{float} %for fix the image position
%usepackage[]{algorithm2e}
usepackage{amsmath} %% for case bracket
%usepackage{url}
usepackage{multirow} % for devide row
usepackage{caption}
%usepackage{subcaption} % forr subfigures
usepackage{multicol}
%usepackage{subfig}
%usepackage{cite}
usepackage{cleveref}
usepackage{amsmath}
pagenumbering{gobble} %%% for without page numbers
usepackage{float}
%usepackage{algorithm}
usepackage{array}
usepackage{pdflscape}
usepackage[classicReIm]{kpfonts}
begin{document}
begin{table}[H]
centering small
tablesize{footnotesize}
caption{Comprehension of recent and relevant work.} label{litrature}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
toprule
centering{bf Methodologies } & centering{bf Features}&centering{bf Targets Achieved}&bf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
end{tabular}
end{table}
end{document}









share|improve this question
















documentclass[journal]{IEEEtran}
hyphenation{Smart Grid}
usepackage[classicReIm]{kpfonts}
usepackage{siunitx,booktabs}
usepackage{subfloat}
usepackage{subcaption}
usepackage{graphicx}
usepackage{color} %for colors
usepackage{epstopdf}
usepackage{url}
usepackage{hhline}%%%
usepackage{float} %for fix the image position
%usepackage[]{algorithm2e}
usepackage{amsmath} %% for case bracket
%usepackage{url}
usepackage{multirow} % for devide row
usepackage{caption}
%usepackage{subcaption} % forr subfigures
usepackage{multicol}
%usepackage{subfig}
%usepackage{cite}
usepackage{cleveref}
usepackage{amsmath}
pagenumbering{gobble} %%% for without page numbers
usepackage{float}
%usepackage{algorithm}
usepackage{array}
usepackage{pdflscape}
usepackage[classicReIm]{kpfonts}
begin{document}
begin{table}[H]
centering small
tablesize{footnotesize}
caption{Comprehension of recent and relevant work.} label{litrature}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
toprule
centering{bf Methodologies } & centering{bf Features}&centering{bf Targets Achieved}&bf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
midrule Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
end{tabular}
end{table}
end{document}






tables ieeetran






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 18 hours ago









Kurt

41.4k950164




41.4k950164










asked 21 hours ago









Ghulam HafeezGhulam Hafeez

614




614








  • 1





    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
    19 hours ago














  • 1





    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
    19 hours ago








1




1





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
19 hours 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
19 hours ago










3 Answers
3






active

oldest

votes


















6














You have a lot of issues in your shown code.




  1. Do you really need all the packages you are loading?

  2. You load several packages twice, do not do this!

  3. Have a closer look at the order of calling packages. In your case package cleveref should be called last. If you want to use hyperref too load it before cleveref!

  4. For the problem with your table the used font is not relevant (I commented it).

  5. The definition for C you used in your table is missing. Because you load array I think newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}} is what you are using but you had not copied into your code. If you use p{#1} instead of my m{#1} please check the added screenshot below for differences!

  6. I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.

  7. 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!

  8. Please see that centering is not working with your used class inside environment table. To visualize this I added package showframe. It shows typing area and margins ... The reason is that class IEEEtran uses a two-column-layout. Then environment table has to fit into one column, but your used table exceeds the possible columnwidth. To get rid of this use environment table* instead. It spans both columns ...


  9. I commented tablesize{footnotesize} because it throws the error message comand tablesize undefined.


  10. Your used command bf is outdated, in your case you can use textbf{...} instead (as I did in the following code). An alternative would be to change bf to bfseries.

  11. 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}

%usepackage{siunitx}
usepackage{booktabs}
usepackage{float} % for fix the image position
%usepackage{subfloat}
usepackage{caption}
%usepackage{subcaption} % for subfigures
%usepackage{graphicx}
%usepackage{color} % for colors
%usepackage{epstopdf}
%usepackage{url}
%usepackage{hhline}%%%

%usepackage[]{algorithm2e}
%usepackage{amsmath} % for case bracket

%usepackage{multirow} % for devide row
%usepackage{multicol}
%usepackage{subfig}
%usepackage{cite}

%usepackage{algorithm}
usepackage{array}
%usepackage{pdflscape}

usepackage{showframe}
%usepackage{cleveref} % <===============================================

hyphenation{Smart Grid}
pagenumbering{gobble} %%% for without page numbers
newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


begin{document}
begin{table}[H]
% centering
small
%tablesize{footnotesize} % <==========================================
caption{Comprehension of recent and relevant work.}
label{litrature}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
toprule
textbf{Methodologies}
& textbf{Features}
& textbf{Targets Achieved}
& textbf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite{35}
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite{6}
& 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 %cite{3}
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
end{tabular}
end{table}
end{document}


you get the result:



resulting table



or better for showing the issue with environment table with filled columns in document:



resulting table overlapping columns



With using the following code for the table (I used package blindtext to generate dummy text to fill the columns) with environment table*:



blindtext

begin{table*}
centering % <========================================================
small
%tablesize{footnotesize} % <==========================================
caption{Comprehension of recent and relevant work.}
label{tab:litraturea}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
toprule
textbf{Methodologies}
& textbf{Features}
& textbf{Targets Achieved}
& textbf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite{35}
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite{6}
& 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 %cite{3}
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
end{tabular}
end{table*}

Blindtext


you get the following result:



result two



The complete code is with both tables (see the better label for the tables with label{tab:<name>}):



documentclass[journal]{IEEEtran}

%usepackage[classicReIm]{kpfonts}

%usepackage{siunitx}
usepackage{booktabs}
usepackage{float} % for fix the image position
%usepackage{subfloat}
%usepackage{caption} % unsupported in IEEEtran!
%usepackage{subcaption} % for subfigures
%usepackage{graphicx}
%usepackage{color} % for colors
%usepackage{epstopdf}
%usepackage{url}
%usepackage{hhline}%%%

%usepackage[]{algorithm2e}
%usepackage{amsmath} % for case bracket

%usepackage{multirow} % for devide row
%usepackage{multicol}
%usepackage{subfig}
%usepackage{cite}

%usepackage{algorithm}
usepackage{array}
%usepackage{pdflscape}

usepackage{showframe}
usepackage{blindtext}
%usepackage{cleveref} % <===============================================

hyphenation{Smart Grid}
pagenumbering{gobble} %%% for without page numbers
newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


begin{document}
begin{table}[H]
% centering
small
%tablesize{footnotesize} % <==========================================
caption{Comprehension of recent and relevant work.}
label{tab:litrature}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
toprule
bf Methodologies
& bf Features
& bf Targets Achieved
& bf{Limitations and Remarks} \
midrule
bfseries Methodologies
& bfseries Features
& bfseries Targets Achieved
& bfseries{Limitations and Remarks} \
midrule
textbf{Methodologies}
& textbf{Features}
& textbf{Targets Achieved}
& textbf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite{35}
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite{6}
& 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 %cite{3}
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
end{tabular}
end{table}

Blindtext
blindtext

begin{table*}
centering % <========================================================
small
%tablesize{footnotesize} % <==========================================
caption{Comprehension of recent and relevant work.}
label{tab:litraturea}
begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
toprule
textbf{Methodologies}
& textbf{Features}
& textbf{Targets Achieved}
& textbf{Limitations and Remarks} \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP
& Optimal domestic load scheduling %cite{35}
& Electricity cost reduction
& The cost is reduced at expense of user discomfort\
midrule
Greedy algorithm
& Heuristic optimization of generic cost model %cite{6}
& 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 %cite{3}
& Load dispatching in off-peak hours
& Solved economic load dispatch (ELD) problems in the current study \
bottomrule
end{tabular}
end{table*}

Blindtext
end{document}





share|improve this answer


























  • @Mico I added it, thanks!

    – Kurt
    11 hours ago



















4














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 a table* environment instead of a table 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 a tabularx environment instead of a tabular environment. I suggest you use the basic l column type for the left-hand column and the X column type for the next three columns.


  • The caption and subcaption packages are known not be compatible with the IEEEtran document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by the IEEEtran 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.



enter image description here



documentclass[journal]{IEEEtran}
usepackage[classicReIm]{kpfonts}
usepackage{booktabs,tabularx,lipsum}

begin{document}
begin{table*}
caption{Summary of recent and relevant work.} label{litrature}

begin{tabularx}{textwidth}{@{}lXXX@{}}
toprule
Methodologies & Features & Targets Achieved & Limitations and Remarks \
midrule
%hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
addlinespace %midrule
Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
bottomrule
end{tabularx}
end{table*}

lipsum[1-30] % filler text

end{document}





share|improve this answer































    1














    You need to define the C column. I took the definition from here.



    documentclass[journal]{IEEEtran}
    usepackage{siunitx,booktabs}
    usepackage{float} %for fix the image position
    usepackage{amsmath} %% for case bracket
    pagenumbering{gobble} %%% for without page numbers
    usepackage{float}
    usepackage{array}
    usepackage[classicReIm]{kpfonts}
    % from https://tex.stackexchange.com/a/175138/121799
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
    begin{document}
    begin{table}[H]
    centering small
    caption{Comprehension of recent and relevant work.} label{litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
    toprule
    textbf{Methodologies } & textbf{Features}&textbf{Targets Achieved}&bf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
    end{tabular}
    end{table}
    end{document}


    enter image description here






    share|improve this answer
























    • 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
      19 hours ago












    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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









    6














    You have a lot of issues in your shown code.




    1. Do you really need all the packages you are loading?

    2. You load several packages twice, do not do this!

    3. Have a closer look at the order of calling packages. In your case package cleveref should be called last. If you want to use hyperref too load it before cleveref!

    4. For the problem with your table the used font is not relevant (I commented it).

    5. The definition for C you used in your table is missing. Because you load array I think newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}} is what you are using but you had not copied into your code. If you use p{#1} instead of my m{#1} please check the added screenshot below for differences!

    6. I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.

    7. 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!

    8. Please see that centering is not working with your used class inside environment table. To visualize this I added package showframe. It shows typing area and margins ... The reason is that class IEEEtran uses a two-column-layout. Then environment table has to fit into one column, but your used table exceeds the possible columnwidth. To get rid of this use environment table* instead. It spans both columns ...


    9. I commented tablesize{footnotesize} because it throws the error message comand tablesize undefined.


    10. Your used command bf is outdated, in your case you can use textbf{...} instead (as I did in the following code). An alternative would be to change bf to bfseries.

    11. 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}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    usepackage{caption}
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}
    end{document}


    you get the result:



    resulting table



    or better for showing the issue with environment table with filled columns in document:



    resulting table overlapping columns



    With using the following code for the table (I used package blindtext to generate dummy text to fill the columns) with environment table*:



    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext


    you get the following result:



    result two



    The complete code is with both tables (see the better label for the tables with label{tab:<name>}):



    documentclass[journal]{IEEEtran}

    %usepackage[classicReIm]{kpfonts}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    %usepackage{caption} % unsupported in IEEEtran!
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    usepackage{blindtext}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    bf Methodologies
    & bf Features
    & bf Targets Achieved
    & bf{Limitations and Remarks} \
    midrule
    bfseries Methodologies
    & bfseries Features
    & bfseries Targets Achieved
    & bfseries{Limitations and Remarks} \
    midrule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}

    Blindtext
    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext
    end{document}





    share|improve this answer


























    • @Mico I added it, thanks!

      – Kurt
      11 hours ago
















    6














    You have a lot of issues in your shown code.




    1. Do you really need all the packages you are loading?

    2. You load several packages twice, do not do this!

    3. Have a closer look at the order of calling packages. In your case package cleveref should be called last. If you want to use hyperref too load it before cleveref!

    4. For the problem with your table the used font is not relevant (I commented it).

    5. The definition for C you used in your table is missing. Because you load array I think newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}} is what you are using but you had not copied into your code. If you use p{#1} instead of my m{#1} please check the added screenshot below for differences!

    6. I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.

    7. 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!

    8. Please see that centering is not working with your used class inside environment table. To visualize this I added package showframe. It shows typing area and margins ... The reason is that class IEEEtran uses a two-column-layout. Then environment table has to fit into one column, but your used table exceeds the possible columnwidth. To get rid of this use environment table* instead. It spans both columns ...


    9. I commented tablesize{footnotesize} because it throws the error message comand tablesize undefined.


    10. Your used command bf is outdated, in your case you can use textbf{...} instead (as I did in the following code). An alternative would be to change bf to bfseries.

    11. 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}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    usepackage{caption}
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}
    end{document}


    you get the result:



    resulting table



    or better for showing the issue with environment table with filled columns in document:



    resulting table overlapping columns



    With using the following code for the table (I used package blindtext to generate dummy text to fill the columns) with environment table*:



    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext


    you get the following result:



    result two



    The complete code is with both tables (see the better label for the tables with label{tab:<name>}):



    documentclass[journal]{IEEEtran}

    %usepackage[classicReIm]{kpfonts}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    %usepackage{caption} % unsupported in IEEEtran!
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    usepackage{blindtext}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    bf Methodologies
    & bf Features
    & bf Targets Achieved
    & bf{Limitations and Remarks} \
    midrule
    bfseries Methodologies
    & bfseries Features
    & bfseries Targets Achieved
    & bfseries{Limitations and Remarks} \
    midrule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}

    Blindtext
    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext
    end{document}





    share|improve this answer


























    • @Mico I added it, thanks!

      – Kurt
      11 hours ago














    6












    6








    6







    You have a lot of issues in your shown code.




    1. Do you really need all the packages you are loading?

    2. You load several packages twice, do not do this!

    3. Have a closer look at the order of calling packages. In your case package cleveref should be called last. If you want to use hyperref too load it before cleveref!

    4. For the problem with your table the used font is not relevant (I commented it).

    5. The definition for C you used in your table is missing. Because you load array I think newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}} is what you are using but you had not copied into your code. If you use p{#1} instead of my m{#1} please check the added screenshot below for differences!

    6. I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.

    7. 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!

    8. Please see that centering is not working with your used class inside environment table. To visualize this I added package showframe. It shows typing area and margins ... The reason is that class IEEEtran uses a two-column-layout. Then environment table has to fit into one column, but your used table exceeds the possible columnwidth. To get rid of this use environment table* instead. It spans both columns ...


    9. I commented tablesize{footnotesize} because it throws the error message comand tablesize undefined.


    10. Your used command bf is outdated, in your case you can use textbf{...} instead (as I did in the following code). An alternative would be to change bf to bfseries.

    11. 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}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    usepackage{caption}
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}
    end{document}


    you get the result:



    resulting table



    or better for showing the issue with environment table with filled columns in document:



    resulting table overlapping columns



    With using the following code for the table (I used package blindtext to generate dummy text to fill the columns) with environment table*:



    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext


    you get the following result:



    result two



    The complete code is with both tables (see the better label for the tables with label{tab:<name>}):



    documentclass[journal]{IEEEtran}

    %usepackage[classicReIm]{kpfonts}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    %usepackage{caption} % unsupported in IEEEtran!
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    usepackage{blindtext}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    bf Methodologies
    & bf Features
    & bf Targets Achieved
    & bf{Limitations and Remarks} \
    midrule
    bfseries Methodologies
    & bfseries Features
    & bfseries Targets Achieved
    & bfseries{Limitations and Remarks} \
    midrule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}

    Blindtext
    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext
    end{document}





    share|improve this answer















    You have a lot of issues in your shown code.




    1. Do you really need all the packages you are loading?

    2. You load several packages twice, do not do this!

    3. Have a closer look at the order of calling packages. In your case package cleveref should be called last. If you want to use hyperref too load it before cleveref!

    4. For the problem with your table the used font is not relevant (I commented it).

    5. The definition for C you used in your table is missing. Because you load array I think newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}} is what you are using but you had not copied into your code. If you use p{#1} instead of my m{#1} please check the added screenshot below for differences!

    6. I did a little bit pretty printing with your table so the reader can faster locate a special cell in the table.

    7. 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!

    8. Please see that centering is not working with your used class inside environment table. To visualize this I added package showframe. It shows typing area and margins ... The reason is that class IEEEtran uses a two-column-layout. Then environment table has to fit into one column, but your used table exceeds the possible columnwidth. To get rid of this use environment table* instead. It spans both columns ...


    9. I commented tablesize{footnotesize} because it throws the error message comand tablesize undefined.


    10. Your used command bf is outdated, in your case you can use textbf{...} instead (as I did in the following code). An alternative would be to change bf to bfseries.

    11. 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}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    usepackage{caption}
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}
    end{document}


    you get the result:



    resulting table



    or better for showing the issue with environment table with filled columns in document:



    resulting table overlapping columns



    With using the following code for the table (I used package blindtext to generate dummy text to fill the columns) with environment table*:



    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext


    you get the following result:



    result two



    The complete code is with both tables (see the better label for the tables with label{tab:<name>}):



    documentclass[journal]{IEEEtran}

    %usepackage[classicReIm]{kpfonts}

    %usepackage{siunitx}
    usepackage{booktabs}
    usepackage{float} % for fix the image position
    %usepackage{subfloat}
    %usepackage{caption} % unsupported in IEEEtran!
    %usepackage{subcaption} % for subfigures
    %usepackage{graphicx}
    %usepackage{color} % for colors
    %usepackage{epstopdf}
    %usepackage{url}
    %usepackage{hhline}%%%

    %usepackage[]{algorithm2e}
    %usepackage{amsmath} % for case bracket

    %usepackage{multirow} % for devide row
    %usepackage{multicol}
    %usepackage{subfig}
    %usepackage{cite}

    %usepackage{algorithm}
    usepackage{array}
    %usepackage{pdflscape}

    usepackage{showframe}
    usepackage{blindtext}
    %usepackage{cleveref} % <===============================================

    hyphenation{Smart Grid}
    pagenumbering{gobble} %%% for without page numbers
    newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}


    begin{document}
    begin{table}[H]
    % centering
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litrature}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    bf Methodologies
    & bf Features
    & bf Targets Achieved
    & bf{Limitations and Remarks} \
    midrule
    bfseries Methodologies
    & bfseries Features
    & bfseries Targets Achieved
    & bfseries{Limitations and Remarks} \
    midrule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table}

    Blindtext
    blindtext

    begin{table*}
    centering % <========================================================
    small
    %tablesize{footnotesize} % <==========================================
    caption{Comprehension of recent and relevant work.}
    label{tab:litraturea}
    begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}} % C
    toprule
    textbf{Methodologies}
    & textbf{Features}
    & textbf{Targets Achieved}
    & textbf{Limitations and Remarks} \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP
    & Optimal domestic load scheduling %cite{35}
    & Electricity cost reduction
    & The cost is reduced at expense of user discomfort\
    midrule
    Greedy algorithm
    & Heuristic optimization of generic cost model %cite{6}
    & 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 %cite{3}
    & Load dispatching in off-peak hours
    & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabular}
    end{table*}

    Blindtext
    end{document}






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited 11 hours ago

























    answered 19 hours ago









    KurtKurt

    41.4k950164




    41.4k950164













    • @Mico I added it, thanks!

      – Kurt
      11 hours ago



















    • @Mico I added it, thanks!

      – Kurt
      11 hours ago

















    @Mico I added it, thanks!

    – Kurt
    11 hours ago





    @Mico I added it, thanks!

    – Kurt
    11 hours ago











    4














    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 a table* environment instead of a table 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 a tabularx environment instead of a tabular environment. I suggest you use the basic l column type for the left-hand column and the X column type for the next three columns.


    • The caption and subcaption packages are known not be compatible with the IEEEtran document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by the IEEEtran 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.



    enter image description here



    documentclass[journal]{IEEEtran}
    usepackage[classicReIm]{kpfonts}
    usepackage{booktabs,tabularx,lipsum}

    begin{document}
    begin{table*}
    caption{Summary of recent and relevant work.} label{litrature}

    begin{tabularx}{textwidth}{@{}lXXX@{}}
    toprule
    Methodologies & Features & Targets Achieved & Limitations and Remarks \
    midrule
    %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
    MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
    addlinespace %midrule
    Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
    bottomrule
    end{tabularx}
    end{table*}

    lipsum[1-30] % filler text

    end{document}





    share|improve this answer




























      4














      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 a table* environment instead of a table 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 a tabularx environment instead of a tabular environment. I suggest you use the basic l column type for the left-hand column and the X column type for the next three columns.


      • The caption and subcaption packages are known not be compatible with the IEEEtran document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by the IEEEtran 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.



      enter image description here



      documentclass[journal]{IEEEtran}
      usepackage[classicReIm]{kpfonts}
      usepackage{booktabs,tabularx,lipsum}

      begin{document}
      begin{table*}
      caption{Summary of recent and relevant work.} label{litrature}

      begin{tabularx}{textwidth}{@{}lXXX@{}}
      toprule
      Methodologies & Features & Targets Achieved & Limitations and Remarks \
      midrule
      %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
      MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
      addlinespace %midrule
      Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
      bottomrule
      end{tabularx}
      end{table*}

      lipsum[1-30] % filler text

      end{document}





      share|improve this answer


























        4












        4








        4







        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 a table* environment instead of a table 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 a tabularx environment instead of a tabular environment. I suggest you use the basic l column type for the left-hand column and the X column type for the next three columns.


        • The caption and subcaption packages are known not be compatible with the IEEEtran document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by the IEEEtran 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.



        enter image description here



        documentclass[journal]{IEEEtran}
        usepackage[classicReIm]{kpfonts}
        usepackage{booktabs,tabularx,lipsum}

        begin{document}
        begin{table*}
        caption{Summary of recent and relevant work.} label{litrature}

        begin{tabularx}{textwidth}{@{}lXXX@{}}
        toprule
        Methodologies & Features & Targets Achieved & Limitations and Remarks \
        midrule
        %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
        MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
        addlinespace %midrule
        Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
        bottomrule
        end{tabularx}
        end{table*}

        lipsum[1-30] % filler text

        end{document}





        share|improve this answer













        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 a table* environment instead of a table 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 a tabularx environment instead of a tabular environment. I suggest you use the basic l column type for the left-hand column and the X column type for the next three columns.


        • The caption and subcaption packages are known not be compatible with the IEEEtran document class. Don't load these packages. Instead, just rely on the caption formatting algorithms provided by the IEEEtran 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.



        enter image description here



        documentclass[journal]{IEEEtran}
        usepackage[classicReIm]{kpfonts}
        usepackage{booktabs,tabularx,lipsum}

        begin{document}
        begin{table*}
        caption{Summary of recent and relevant work.} label{litrature}

        begin{tabularx}{textwidth}{@{}lXXX@{}}
        toprule
        Methodologies & Features & Targets Achieved & Limitations and Remarks \
        midrule
        %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
        MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
        addlinespace %midrule
        Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \
        bottomrule
        end{tabularx}
        end{table*}

        lipsum[1-30] % filler text

        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 19 hours ago









        MicoMico

        287k32392781




        287k32392781























            1














            You need to define the C column. I took the definition from here.



            documentclass[journal]{IEEEtran}
            usepackage{siunitx,booktabs}
            usepackage{float} %for fix the image position
            usepackage{amsmath} %% for case bracket
            pagenumbering{gobble} %%% for without page numbers
            usepackage{float}
            usepackage{array}
            usepackage[classicReIm]{kpfonts}
            % from https://tex.stackexchange.com/a/175138/121799
            newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
            begin{document}
            begin{table}[H]
            centering small
            caption{Comprehension of recent and relevant work.} label{litrature}
            begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
            toprule
            textbf{Methodologies } & textbf{Features}&textbf{Targets Achieved}&bf{Limitations and Remarks} \
            midrule
            %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
            MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
            midrule
            Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
            end{tabular}
            end{table}
            end{document}


            enter image description here






            share|improve this answer
























            • 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
              19 hours ago
















            1














            You need to define the C column. I took the definition from here.



            documentclass[journal]{IEEEtran}
            usepackage{siunitx,booktabs}
            usepackage{float} %for fix the image position
            usepackage{amsmath} %% for case bracket
            pagenumbering{gobble} %%% for without page numbers
            usepackage{float}
            usepackage{array}
            usepackage[classicReIm]{kpfonts}
            % from https://tex.stackexchange.com/a/175138/121799
            newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
            begin{document}
            begin{table}[H]
            centering small
            caption{Comprehension of recent and relevant work.} label{litrature}
            begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
            toprule
            textbf{Methodologies } & textbf{Features}&textbf{Targets Achieved}&bf{Limitations and Remarks} \
            midrule
            %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
            MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
            midrule
            Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
            end{tabular}
            end{table}
            end{document}


            enter image description here






            share|improve this answer
























            • 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
              19 hours ago














            1












            1








            1







            You need to define the C column. I took the definition from here.



            documentclass[journal]{IEEEtran}
            usepackage{siunitx,booktabs}
            usepackage{float} %for fix the image position
            usepackage{amsmath} %% for case bracket
            pagenumbering{gobble} %%% for without page numbers
            usepackage{float}
            usepackage{array}
            usepackage[classicReIm]{kpfonts}
            % from https://tex.stackexchange.com/a/175138/121799
            newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
            begin{document}
            begin{table}[H]
            centering small
            caption{Comprehension of recent and relevant work.} label{litrature}
            begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
            toprule
            textbf{Methodologies } & textbf{Features}&textbf{Targets Achieved}&bf{Limitations and Remarks} \
            midrule
            %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
            MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
            midrule
            Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
            end{tabular}
            end{table}
            end{document}


            enter image description here






            share|improve this answer













            You need to define the C column. I took the definition from here.



            documentclass[journal]{IEEEtran}
            usepackage{siunitx,booktabs}
            usepackage{float} %for fix the image position
            usepackage{amsmath} %% for case bracket
            pagenumbering{gobble} %%% for without page numbers
            usepackage{float}
            usepackage{array}
            usepackage[classicReIm]{kpfonts}
            % from https://tex.stackexchange.com/a/175138/121799
            newcolumntype{C}[1]{>{centeringarraybackslash}m{#1}}
            begin{document}
            begin{table}[H]
            centering small
            caption{Comprehension of recent and relevant work.} label{litrature}
            begin{tabular}{C{2.5cm}C{6cm}C{2.5cm}C{2.5cm}}
            toprule
            textbf{Methodologies } & textbf{Features}&textbf{Targets Achieved}&bf{Limitations and Remarks} \
            midrule
            %hline Optimal power scheduling method for DR in HEMS is presented in cite{9} & GA & Cost and PAR reduction & Increased system complexity \
            MILP& Optimal domestic load scheduling cite{35} & Electricity cost reduction & The cost is reduced at expense of user discomfort\
            midrule
            Greedy algorithm& Heuristic optimization of generic cost model cite{6} & 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 cite{3}& Load dispatching in off-peak hours & Solved economic load dispatch (ELD) problems in the current study \ bottomrule
            end{tabular}
            end{table}
            end{document}


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 20 hours ago









            marmotmarmot

            118k6153288




            118k6153288













            • 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
              19 hours 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
              19 hours 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
            19 hours 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
            19 hours ago


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f485076%2flatex-gives-error-undefined-control-sequence-table%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

            looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...