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
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:
- Extra alignment tab has been changed to cr. centering
- Extra alignment tab has been changed to cr. end
- Misplaced noalign. hline
- Misplaced omit. centering
- Misplaced omit. end
Current version of table that I want and is the output but with errors:

tables errors longtable hline
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.
add a comment |
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:
- Extra alignment tab has been changed to cr. centering
- Extra alignment tab has been changed to cr. end
- Misplaced noalign. hline
- Misplaced omit. centering
- Misplaced omit. end
Current version of table that I want and is the output but with errors:

tables errors longtable hline
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 needarraybackslashafter thecentering. Unrelated but do not put acenterenviornment around longtable.
– David Carlisle
11 hours ago
2
Add the missing three\and remove all the occurences ofcentering. 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 a comment |
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:
- Extra alignment tab has been changed to cr. centering
- Extra alignment tab has been changed to cr. end
- Misplaced noalign. hline
- Misplaced omit. centering
- Misplaced omit. end
Current version of table that I want and is the output but with errors:

tables errors longtable hline
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:
- Extra alignment tab has been changed to cr. centering
- Extra alignment tab has been changed to cr. end
- Misplaced noalign. hline
- Misplaced omit. centering
- Misplaced omit. end
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
tables errors longtable hline
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.
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 needarraybackslashafter thecentering. Unrelated but do not put acenterenviornment around longtable.
– David Carlisle
11 hours ago
2
Add the missing three\and remove all the occurences ofcentering. 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 a comment |
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 needarraybackslashafter thecentering. Unrelated but do not put acenterenviornment around longtable.
– David Carlisle
11 hours ago
2
Add the missing three\and remove all the occurences ofcentering. 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
add a comment |
2 Answers
2
active
oldest
votes
Based on the information you've provided so far, here is how I would structure the table:
I'd use a
tabularxenvironment, set its width totextwidth, 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--115rather than100-115, etc.Set the parameter
extrarowheightto 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...

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}
add a comment |
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!!!! :-)
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 theMcolumn type is defined.
– Mico
9 hours ago
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Based on the information you've provided so far, here is how I would structure the table:
I'd use a
tabularxenvironment, set its width totextwidth, 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--115rather than100-115, etc.Set the parameter
extrarowheightto 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...

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}
add a comment |
Based on the information you've provided so far, here is how I would structure the table:
I'd use a
tabularxenvironment, set its width totextwidth, 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--115rather than100-115, etc.Set the parameter
extrarowheightto 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...

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}
add a comment |
Based on the information you've provided so far, here is how I would structure the table:
I'd use a
tabularxenvironment, set its width totextwidth, 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--115rather than100-115, etc.Set the parameter
extrarowheightto 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...

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}
Based on the information you've provided so far, here is how I would structure the table:
I'd use a
tabularxenvironment, set its width totextwidth, 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--115rather than100-115, etc.Set the parameter
extrarowheightto 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...

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}
answered 8 hours ago
MicoMico
285k31388778
285k31388778
add a comment |
add a comment |
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!!!! :-)
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 theMcolumn type is defined.
– Mico
9 hours ago
add a comment |
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!!!! :-)
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 theMcolumn type is defined.
– Mico
9 hours ago
add a comment |
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!!!! :-)
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!!!! :-)
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.
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 theMcolumn type is defined.
– Mico
9 hours ago
add a comment |
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 theMcolumn 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
add a comment |
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 needarraybackslashafter thecentering. Unrelated but do not put acenterenviornment around longtable.– David Carlisle
11 hours ago
2
Add the missing three
\and remove all the occurences ofcentering. 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