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

Did Shadowfax go to Valinor?

Why are 150k or 200k jobs considered good when there are 300k+ births a month?

Why do falling prices hurt debtors?

What is the offset in a seaplane's hull?

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

Schoenfled Residua test shows proportionality hazard assumptions holds but Kaplan-Meier plots intersect

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

Test if tikzmark exists on same page

Why Is Death Allowed In the Matrix?

Which models of the Boeing 737 are still in production?

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

Do VLANs within a subnet need to have their own subnet for router on a stick?

Have astronauts in space suits ever taken selfies? If so, how?

Why "Having chlorophyll without photosynthesis is actually very dangerous" and "like living with a bomb"?

Is a tag line useful on a cover?

LaTeX closing $ signs makes cursor jump

Why doesn't H₄O²⁺ exist?

Dragon forelimb placement

Voyeurism but not really

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

Finding angle with pure Geometry.

Can I ask the recruiters in my resume to put the reason why I am rejected?

Test whether all array elements are factors of a number

can i play a electric guitar through a bass amp?



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 8 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
    11 hours ago











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

    – Tee
    11 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
    11 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
    11 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 8 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
    11 hours ago











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

    – Tee
    11 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
    11 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
    11 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 8 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 11 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 8 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 8 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
    11 hours ago











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

    – Tee
    11 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
    11 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
    11 hours ago





















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

    – Mico
    11 hours ago











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

    – Tee
    11 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
    11 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
    11 hours ago



















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

– Mico
11 hours ago





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

– Mico
11 hours ago













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

– Tee
11 hours ago





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

– Tee
11 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
11 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
11 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
11 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
11 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
      10 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
      9 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 8 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
              10 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
              9 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
              10 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
              9 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 10 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 10 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
              10 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
              9 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
              10 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
              9 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
            10 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
            10 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
            9 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
            9 hours ago



            Popular posts from this blog

            Installing LyX: “No textclass is found.”LyX installation error- text class not found- 'Reconfigure' or...

            (1602) Indiana Índice Designación y nombre Características orbitales Véase...

            Universidad Autónoma de Occidente Índice Historia Campus Facultades Programas Académicos Medios de...