Errors with table [duplicate]Vertically centered and right/left/center horizontal alignment in tabularTable...

Fencing style for blades that can attack from a distance

Email Account under attack (really) - anything I can do?

Mathematical cryptic clues

LaTeX closing $ signs makes cursor jump

Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

can i play a electric guitar through a bass amp?

What does "Puller Prush Person" mean?

Problem of parity - Can we draw a closed path made up of 20 line segments...

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Why don't electron-positron collisions release infinite energy?

"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"

Example of a continuous function that don't have a continuous extension

"You are your self first supporter", a more proper way to say it

Arthur Somervell: 1000 Exercises - Meaning of this notation

Is it unprofessional to ask if a job posting on GlassDoor is real?

What defenses are there against being summoned by the Gate spell?

Is it possible to do 50 km distance without any previous training?

Is it important to consider tone, melody, and musical form while writing a song?

How to write a macro that is braces sensitive?

Is this a crack on the carbon frame?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Can a Warlock become Neutral Good?

Risk of getting Chronic Wasting Disease (CWD) in the United States?



Errors with table [duplicate]


Vertically centered and right/left/center horizontal alignment in tabularTable errors with excel2latexExhaustive Information about text alignment in TabularMultiple questions regarding formatting tablesErrors in table, missing endgroup inserted <inserted text> endgroupLongtable ErrorsHow to fix misplaced noalign on afterpage with clearpage and too high longtable head?Converting table to longtable errorslongtable giving erroneous output“! Undefined control sequence.” errors with tableHaving trouble understanding the tabular environment













2
















This question already has an answer here:




  • Vertically centered and right/left/center horizontal alignment in tabular

    1 answer




I am very new to the latex community (1 week) and writing my thesis with latex.



I am trying to built a table using the following code:



begin{center}
begin{longtable} [c] { |m{3cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|}
caption{Rating scale for total growth area label{GrowTable}}
hline
centering Total Growth Area (m$^2$) & centering 100 or less & centering 100-115 & centering 115-130 & centering 130-145 & centering 145 or more
hline
centering Rating & centering cellcolor{red} 1 & centering cellcolor{red} 2 & centering cellcolor{yellow} 3 & centering cellcolor{green} 4 & centering cellcolor{green} 5
hline
end{longtable}
end{center}


It gives me the exact table I want but also provides errors which I do not know how to omit:




  1. Extra alignment tab has been changed to cr. centering

  2. Extra alignment tab has been changed to cr. end

  3. Misplaced noalign. hline

  4. Misplaced omit. centering

  5. Misplaced omit. end


Current version of table that I want and is the output but with errors:
Current version of table that I want and is the output but with errors










share|improve this question









New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.

    – Mico
    14 hours ago











  • Thank you :-) I had that already but it still gave the same errors.

    – Tee
    14 hours ago






  • 1





    people can only comment on the code that you post, that has no \ . It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash after the centering. Unrelated but do not put a center enviornment around longtable.

    – David Carlisle
    14 hours ago








  • 2





    Add the missing three \ and remove all the occurences of centering. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm} or even diefine you own new column type.

    – leandriis
    14 hours ago


















2
















This question already has an answer here:




  • Vertically centered and right/left/center horizontal alignment in tabular

    1 answer




I am very new to the latex community (1 week) and writing my thesis with latex.



I am trying to built a table using the following code:



begin{center}
begin{longtable} [c] { |m{3cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|}
caption{Rating scale for total growth area label{GrowTable}}
hline
centering Total Growth Area (m$^2$) & centering 100 or less & centering 100-115 & centering 115-130 & centering 130-145 & centering 145 or more
hline
centering Rating & centering cellcolor{red} 1 & centering cellcolor{red} 2 & centering cellcolor{yellow} 3 & centering cellcolor{green} 4 & centering cellcolor{green} 5
hline
end{longtable}
end{center}


It gives me the exact table I want but also provides errors which I do not know how to omit:




  1. Extra alignment tab has been changed to cr. centering

  2. Extra alignment tab has been changed to cr. end

  3. Misplaced noalign. hline

  4. Misplaced omit. centering

  5. Misplaced omit. end


Current version of table that I want and is the output but with errors:
Current version of table that I want and is the output but with errors










share|improve this question









New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.



















  • Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.

    – Mico
    14 hours ago











  • Thank you :-) I had that already but it still gave the same errors.

    – Tee
    14 hours ago






  • 1





    people can only comment on the code that you post, that has no \ . It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash after the centering. Unrelated but do not put a center enviornment around longtable.

    – David Carlisle
    14 hours ago








  • 2





    Add the missing three \ and remove all the occurences of centering. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm} or even diefine you own new column type.

    – leandriis
    14 hours ago
















2












2








2









This question already has an answer here:




  • Vertically centered and right/left/center horizontal alignment in tabular

    1 answer




I am very new to the latex community (1 week) and writing my thesis with latex.



I am trying to built a table using the following code:



begin{center}
begin{longtable} [c] { |m{3cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|}
caption{Rating scale for total growth area label{GrowTable}}
hline
centering Total Growth Area (m$^2$) & centering 100 or less & centering 100-115 & centering 115-130 & centering 130-145 & centering 145 or more
hline
centering Rating & centering cellcolor{red} 1 & centering cellcolor{red} 2 & centering cellcolor{yellow} 3 & centering cellcolor{green} 4 & centering cellcolor{green} 5
hline
end{longtable}
end{center}


It gives me the exact table I want but also provides errors which I do not know how to omit:




  1. Extra alignment tab has been changed to cr. centering

  2. Extra alignment tab has been changed to cr. end

  3. Misplaced noalign. hline

  4. Misplaced omit. centering

  5. Misplaced omit. end


Current version of table that I want and is the output but with errors:
Current version of table that I want and is the output but with errors










share|improve this question









New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













This question already has an answer here:




  • Vertically centered and right/left/center horizontal alignment in tabular

    1 answer




I am very new to the latex community (1 week) and writing my thesis with latex.



I am trying to built a table using the following code:



begin{center}
begin{longtable} [c] { |m{3cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|m{2cm}|}
caption{Rating scale for total growth area label{GrowTable}}
hline
centering Total Growth Area (m$^2$) & centering 100 or less & centering 100-115 & centering 115-130 & centering 130-145 & centering 145 or more
hline
centering Rating & centering cellcolor{red} 1 & centering cellcolor{red} 2 & centering cellcolor{yellow} 3 & centering cellcolor{green} 4 & centering cellcolor{green} 5
hline
end{longtable}
end{center}


It gives me the exact table I want but also provides errors which I do not know how to omit:




  1. Extra alignment tab has been changed to cr. centering

  2. Extra alignment tab has been changed to cr. end

  3. Misplaced noalign. hline

  4. Misplaced omit. centering

  5. Misplaced omit. end


Current version of table that I want and is the output but with errors:
Current version of table that I want and is the output but with errors





This question already has an answer here:




  • Vertically centered and right/left/center horizontal alignment in tabular

    1 answer








tables errors longtable hline






share|improve this question









New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 12 hours ago









Mico

285k31388778




285k31388778






New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 14 hours ago









TeeTee

213




213




New contributor




Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.









marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.















  • Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.

    – Mico
    14 hours ago











  • Thank you :-) I had that already but it still gave the same errors.

    – Tee
    14 hours ago






  • 1





    people can only comment on the code that you post, that has no \ . It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash after the centering. Unrelated but do not put a center enviornment around longtable.

    – David Carlisle
    14 hours ago








  • 2





    Add the missing three \ and remove all the occurences of centering. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm} or even diefine you own new column type.

    – leandriis
    14 hours ago





















  • Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.

    – Mico
    14 hours ago











  • Thank you :-) I had that already but it still gave the same errors.

    – Tee
    14 hours ago






  • 1





    people can only comment on the code that you post, that has no \ . It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash after the centering. Unrelated but do not put a center enviornment around longtable.

    – David Carlisle
    14 hours ago








  • 2





    Add the missing three \ and remove all the occurences of centering. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm} or even diefine you own new column type.

    – leandriis
    14 hours ago



















Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.

– Mico
14 hours ago





Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.

– Mico
14 hours ago













Thank you :-) I had that already but it still gave the same errors.

– Tee
14 hours ago





Thank you :-) I had that already but it still gave the same errors.

– Tee
14 hours ago




1




1





people can only comment on the code that you post, that has no \ . It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash after the centering. Unrelated but do not put a center enviornment around longtable.

– David Carlisle
14 hours ago







people can only comment on the code that you post, that has no \ . It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash after the centering. Unrelated but do not put a center enviornment around longtable.

– David Carlisle
14 hours ago






2




2





Add the missing three \ and remove all the occurences of centering. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm} or even diefine you own new column type.

– leandriis
14 hours ago







Add the missing three \ and remove all the occurences of centering. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm} or even diefine you own new column type.

– leandriis
14 hours ago












2 Answers
2






active

oldest

votes


















2














Based on the information you've provided so far, here is how I would structure the table:




  • I'd use a tabularx environment, set its width to textwidth, and let LaTeX calculate the widths of the five data columns.


  • While it looks like a good idea to center the contents of the five data cplumns, the material in the left-most column probably looks better if it's typeset ragged-right (aka flushleft).


  • Use en-dashes to "connect" numbers, i.e., write 100--115 rather than 100-115, etc.


  • Set the parameter extrarowheight to a small positive length, e.g., 2pt, in order to give the table a more open "look". While on the subject of giving the table a more open and inviting "look", do please get rid of all vertical lines. They're simply not needed, unless one is a big fan of the "prison cell" look...



enter image description here



documentclass[a4paper,oneside]{book}
usepackage[table]{xcolor}
usepackage{tabularx}
newcolumntype{C}{>{centeringarraybackslash}X}
newcolumntype{M}[1]{>{raggedrightarraybackslash}m{#1}}
usepackage[skip=0.333baselineskip]{caption} % optional

begin{document}
begin{table}
setlengthextrarowheight{2pt}
caption{Rating scale for total growth area} label{GrowTable}
begin{tabularx}{textwidth}{@{} M{2.5cm} *{5}{C} }
hline
Total Growth Area (m$^2$)
& $le100$ & 100--115 & 115--130 & 130--145 & $ge145$ \
hline
Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3
& cellcolor{green} 4 & cellcolor{green} 5 \
hline
end{tabularx}
end{table}
end{document}





share|improve this answer































    1














    Thank you Mico, Leandriis and David Carlisle!!! You are awesome!!!!!



    I didn't have user package array but now I do and I defined a new column! :-D



    begin{table} 
    centering
    caption{Rating scale for total growth area label{GrowTable}}
    begin{tabular}{| M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} |}
    hline
    Total Growth Area (m$^2$) & 100 or less & 100-115 & 115-130 & 130-145 & 145 or more \
    hline
    Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3 & cellcolor{green} 4 & cellcolor{green} 5 \
    hline
    end{tabular}
    end{table}


    Worked!!!! :-)






    share|improve this answer










    New contributor




    Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.
















    • 1





      Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

      – leandriis
      13 hours ago











    • So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

      – Mico
      12 hours ago


















    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    Based on the information you've provided so far, here is how I would structure the table:




    • I'd use a tabularx environment, set its width to textwidth, and let LaTeX calculate the widths of the five data columns.


    • While it looks like a good idea to center the contents of the five data cplumns, the material in the left-most column probably looks better if it's typeset ragged-right (aka flushleft).


    • Use en-dashes to "connect" numbers, i.e., write 100--115 rather than 100-115, etc.


    • Set the parameter extrarowheight to a small positive length, e.g., 2pt, in order to give the table a more open "look". While on the subject of giving the table a more open and inviting "look", do please get rid of all vertical lines. They're simply not needed, unless one is a big fan of the "prison cell" look...



    enter image description here



    documentclass[a4paper,oneside]{book}
    usepackage[table]{xcolor}
    usepackage{tabularx}
    newcolumntype{C}{>{centeringarraybackslash}X}
    newcolumntype{M}[1]{>{raggedrightarraybackslash}m{#1}}
    usepackage[skip=0.333baselineskip]{caption} % optional

    begin{document}
    begin{table}
    setlengthextrarowheight{2pt}
    caption{Rating scale for total growth area} label{GrowTable}
    begin{tabularx}{textwidth}{@{} M{2.5cm} *{5}{C} }
    hline
    Total Growth Area (m$^2$)
    & $le100$ & 100--115 & 115--130 & 130--145 & $ge145$ \
    hline
    Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3
    & cellcolor{green} 4 & cellcolor{green} 5 \
    hline
    end{tabularx}
    end{table}
    end{document}





    share|improve this answer




























      2














      Based on the information you've provided so far, here is how I would structure the table:




      • I'd use a tabularx environment, set its width to textwidth, and let LaTeX calculate the widths of the five data columns.


      • While it looks like a good idea to center the contents of the five data cplumns, the material in the left-most column probably looks better if it's typeset ragged-right (aka flushleft).


      • Use en-dashes to "connect" numbers, i.e., write 100--115 rather than 100-115, etc.


      • Set the parameter extrarowheight to a small positive length, e.g., 2pt, in order to give the table a more open "look". While on the subject of giving the table a more open and inviting "look", do please get rid of all vertical lines. They're simply not needed, unless one is a big fan of the "prison cell" look...



      enter image description here



      documentclass[a4paper,oneside]{book}
      usepackage[table]{xcolor}
      usepackage{tabularx}
      newcolumntype{C}{>{centeringarraybackslash}X}
      newcolumntype{M}[1]{>{raggedrightarraybackslash}m{#1}}
      usepackage[skip=0.333baselineskip]{caption} % optional

      begin{document}
      begin{table}
      setlengthextrarowheight{2pt}
      caption{Rating scale for total growth area} label{GrowTable}
      begin{tabularx}{textwidth}{@{} M{2.5cm} *{5}{C} }
      hline
      Total Growth Area (m$^2$)
      & $le100$ & 100--115 & 115--130 & 130--145 & $ge145$ \
      hline
      Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3
      & cellcolor{green} 4 & cellcolor{green} 5 \
      hline
      end{tabularx}
      end{table}
      end{document}





      share|improve this answer


























        2












        2








        2







        Based on the information you've provided so far, here is how I would structure the table:




        • I'd use a tabularx environment, set its width to textwidth, and let LaTeX calculate the widths of the five data columns.


        • While it looks like a good idea to center the contents of the five data cplumns, the material in the left-most column probably looks better if it's typeset ragged-right (aka flushleft).


        • Use en-dashes to "connect" numbers, i.e., write 100--115 rather than 100-115, etc.


        • Set the parameter extrarowheight to a small positive length, e.g., 2pt, in order to give the table a more open "look". While on the subject of giving the table a more open and inviting "look", do please get rid of all vertical lines. They're simply not needed, unless one is a big fan of the "prison cell" look...



        enter image description here



        documentclass[a4paper,oneside]{book}
        usepackage[table]{xcolor}
        usepackage{tabularx}
        newcolumntype{C}{>{centeringarraybackslash}X}
        newcolumntype{M}[1]{>{raggedrightarraybackslash}m{#1}}
        usepackage[skip=0.333baselineskip]{caption} % optional

        begin{document}
        begin{table}
        setlengthextrarowheight{2pt}
        caption{Rating scale for total growth area} label{GrowTable}
        begin{tabularx}{textwidth}{@{} M{2.5cm} *{5}{C} }
        hline
        Total Growth Area (m$^2$)
        & $le100$ & 100--115 & 115--130 & 130--145 & $ge145$ \
        hline
        Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3
        & cellcolor{green} 4 & cellcolor{green} 5 \
        hline
        end{tabularx}
        end{table}
        end{document}





        share|improve this answer













        Based on the information you've provided so far, here is how I would structure the table:




        • I'd use a tabularx environment, set its width to textwidth, and let LaTeX calculate the widths of the five data columns.


        • While it looks like a good idea to center the contents of the five data cplumns, the material in the left-most column probably looks better if it's typeset ragged-right (aka flushleft).


        • Use en-dashes to "connect" numbers, i.e., write 100--115 rather than 100-115, etc.


        • Set the parameter extrarowheight to a small positive length, e.g., 2pt, in order to give the table a more open "look". While on the subject of giving the table a more open and inviting "look", do please get rid of all vertical lines. They're simply not needed, unless one is a big fan of the "prison cell" look...



        enter image description here



        documentclass[a4paper,oneside]{book}
        usepackage[table]{xcolor}
        usepackage{tabularx}
        newcolumntype{C}{>{centeringarraybackslash}X}
        newcolumntype{M}[1]{>{raggedrightarraybackslash}m{#1}}
        usepackage[skip=0.333baselineskip]{caption} % optional

        begin{document}
        begin{table}
        setlengthextrarowheight{2pt}
        caption{Rating scale for total growth area} label{GrowTable}
        begin{tabularx}{textwidth}{@{} M{2.5cm} *{5}{C} }
        hline
        Total Growth Area (m$^2$)
        & $le100$ & 100--115 & 115--130 & 130--145 & $ge145$ \
        hline
        Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3
        & cellcolor{green} 4 & cellcolor{green} 5 \
        hline
        end{tabularx}
        end{table}
        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 12 hours ago









        MicoMico

        285k31388778




        285k31388778























            1














            Thank you Mico, Leandriis and David Carlisle!!! You are awesome!!!!!



            I didn't have user package array but now I do and I defined a new column! :-D



            begin{table} 
            centering
            caption{Rating scale for total growth area label{GrowTable}}
            begin{tabular}{| M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} |}
            hline
            Total Growth Area (m$^2$) & 100 or less & 100-115 & 115-130 & 130-145 & 145 or more \
            hline
            Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3 & cellcolor{green} 4 & cellcolor{green} 5 \
            hline
            end{tabular}
            end{table}


            Worked!!!! :-)






            share|improve this answer










            New contributor




            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
















            • 1





              Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

              – leandriis
              13 hours ago











            • So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

              – Mico
              12 hours ago
















            1














            Thank you Mico, Leandriis and David Carlisle!!! You are awesome!!!!!



            I didn't have user package array but now I do and I defined a new column! :-D



            begin{table} 
            centering
            caption{Rating scale for total growth area label{GrowTable}}
            begin{tabular}{| M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} |}
            hline
            Total Growth Area (m$^2$) & 100 or less & 100-115 & 115-130 & 130-145 & 145 or more \
            hline
            Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3 & cellcolor{green} 4 & cellcolor{green} 5 \
            hline
            end{tabular}
            end{table}


            Worked!!!! :-)






            share|improve this answer










            New contributor




            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
















            • 1





              Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

              – leandriis
              13 hours ago











            • So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

              – Mico
              12 hours ago














            1












            1








            1







            Thank you Mico, Leandriis and David Carlisle!!! You are awesome!!!!!



            I didn't have user package array but now I do and I defined a new column! :-D



            begin{table} 
            centering
            caption{Rating scale for total growth area label{GrowTable}}
            begin{tabular}{| M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} |}
            hline
            Total Growth Area (m$^2$) & 100 or less & 100-115 & 115-130 & 130-145 & 145 or more \
            hline
            Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3 & cellcolor{green} 4 & cellcolor{green} 5 \
            hline
            end{tabular}
            end{table}


            Worked!!!! :-)






            share|improve this answer










            New contributor




            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.










            Thank you Mico, Leandriis and David Carlisle!!! You are awesome!!!!!



            I didn't have user package array but now I do and I defined a new column! :-D



            begin{table} 
            centering
            caption{Rating scale for total growth area label{GrowTable}}
            begin{tabular}{| M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} | M{2cm} |}
            hline
            Total Growth Area (m$^2$) & 100 or less & 100-115 & 115-130 & 130-145 & 145 or more \
            hline
            Rating & cellcolor{red} 1 & cellcolor{red} 2 & cellcolor{yellow} 3 & cellcolor{green} 4 & cellcolor{green} 5 \
            hline
            end{tabular}
            end{table}


            Worked!!!! :-)







            share|improve this answer










            New contributor




            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            share|improve this answer



            share|improve this answer








            edited 13 hours ago









            leandriis

            11.2k1732




            11.2k1732






            New contributor




            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            answered 14 hours ago









            TeeTee

            213




            213




            New contributor




            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





            New contributor





            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            Tee is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.








            • 1





              Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

              – leandriis
              13 hours ago











            • So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

              – Mico
              12 hours ago














            • 1





              Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

              – leandriis
              13 hours ago











            • So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

              – Mico
              12 hours ago








            1




            1





            Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

            – leandriis
            13 hours ago





            Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the {} button or by pressing ctrl+k.

            – leandriis
            13 hours ago













            So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

            – Mico
            12 hours ago





            So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the M column type is defined.

            – Mico
            12 hours ago



            Popular posts from this blog

            Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

            Schneeberg (Smreczany) Bibliografia | Menu...

            Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...