Errors with table [duplicate]Vertically centered and right/left/center horizontal alignment in tabularTable...
Why is no PWM signal generated using Timer 2?
A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?
Replacing matching entries in one column of a file by another column from a different file
Did Shadowfax go to Valinor?
The Clique vs. Independent Set Problem
Why are electrically insulating heatsinks so rare? Is it just cost?
Why Is Death Allowed In the Matrix?
"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"
How does strength of boric acid solution increase in presence of salicylic acid?
Have astronauts in space suits ever taken selfies? If so, how?
I'm planning on buying a laser printer but concerned about the life cycle of toner in the machine
The use of multiple foreign keys on same column in SQL Server
Fencing style for blades that can attack from a distance
Accidentally leaked the solution to an assignment, what to do now? (I'm the prof)
What does it mean to describe someone as a butt steak?
What's the point of deactivating Num Lock on login screens?
Why does Kotter return in Welcome Back Kotter?
Test whether all array elements are factors of a number
Either or Neither in sentence with another negative
Can I ask the recruiters in my resume to put the reason why I am rejected?
Is it possible to do 50 km distance without any previous training?
How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?
Do I have a twin with permutated remainders?
Dragon forelimb placement
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 5 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 5 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
8 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
7 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
7 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
7 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 5 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 8 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 5 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 5 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
8 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
7 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
7 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
7 hours ago
add a comment |
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
8 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
7 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
7 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
7 hours ago
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
8 hours ago
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
8 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
7 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
7 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
7 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
7 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
7 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
7 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
7 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
6 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 5 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
7 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
6 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
7 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
6 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 7 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 7 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
7 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
6 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
7 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
6 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
7 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
7 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
6 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
6 hours ago
add a comment |
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
8 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
7 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
7 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
7 hours ago