Errors with table [duplicate]Vertically centered and right/left/center horizontal alignment in tabularTable...
Fencing style for blades that can attack from a distance
Email Account under attack (really) - anything I can do?
Mathematical cryptic clues
LaTeX closing $ signs makes cursor jump
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?
can i play a electric guitar through a bass amp?
What does "Puller Prush Person" mean?
Problem of parity - Can we draw a closed path made up of 20 line segments...
Has the BBC provided arguments for saying Brexit being cancelled is unlikely?
Why don't electron-positron collisions release infinite energy?
"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"
Example of a continuous function that don't have a continuous extension
"You are your self first supporter", a more proper way to say it
Arthur Somervell: 1000 Exercises - Meaning of this notation
Is it unprofessional to ask if a job posting on GlassDoor is real?
What defenses are there against being summoned by the Gate spell?
Is it possible to do 50 km distance without any previous training?
Is it important to consider tone, melody, and musical form while writing a song?
How to write a macro that is braces sensitive?
Is this a crack on the carbon frame?
Approximately how much travel time was saved by the opening of the Suez Canal in 1869?
Can a Warlock become Neutral Good?
Risk of getting Chronic Wasting Disease (CWD) in the United States?
Errors with table [duplicate]
Vertically centered and right/left/center horizontal alignment in tabularTable errors with excel2latexExhaustive Information about text alignment in TabularMultiple questions regarding formatting tablesErrors in table, missing endgroup inserted <inserted text> endgroupLongtable ErrorsHow to fix misplaced noalign on afterpage with clearpage and too high longtable head?Converting table to longtable errorslongtable giving erroneous output“! Undefined control sequence.” errors with tableHaving trouble understanding the tabular environment
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
marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
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
marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
14 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
14 hours ago
1
people can only comment on the code that you post, that has no\
. It is always best to provide a complete small example that produces the error that you are asking about. You also needarraybackslash
after thecentering
. Unrelated but do not put acenter
enviornment around longtable.
– David Carlisle
14 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
14 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
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
New contributor
edited 12 hours ago
Mico
285k31388778
285k31388778
New contributor
asked 14 hours ago
TeeTee
213
213
New contributor
New contributor
marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by leandriis, JouleV, Stefan Pinnow, Raaja, Sebastiano 12 hours ago
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
14 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
14 hours ago
1
people can only comment on the code that you post, that has no\
. It is always best to provide a complete small example that produces the error that you are asking about. You also needarraybackslash
after thecentering
. Unrelated but do not put acenter
enviornment around longtable.
– David Carlisle
14 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
14 hours ago
add a comment |
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
14 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
14 hours ago
1
people can only comment on the code that you post, that has no\
. It is always best to provide a complete small example that produces the error that you are asking about. You also needarraybackslash
after thecentering
. Unrelated but do not put acenter
enviornment around longtable.
– David Carlisle
14 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
14 hours ago
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
14 hours ago
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
14 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
14 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
14 hours ago
1
1
people can only comment on the code that you post, that has no
\
. It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash
after the centering
. Unrelated but do not put a center
enviornment around longtable.– David Carlisle
14 hours ago
people can only comment on the code that you post, that has no
\
. It is always best to provide a complete small example that produces the error that you are asking about. You also need arraybackslash
after the centering
. Unrelated but do not put a center
enviornment around longtable.– David Carlisle
14 hours ago
2
2
Add the missing three
\
and remove all the occurences of centering
. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm}
or even diefine you own new column type.– leandriis
14 hours ago
Add the missing three
\
and remove all the occurences of centering
. If you want to horizontally center the contents in the columns, you might want to use >{centeringarraybackslash}m{3cm}
or even diefine you own new column type.– leandriis
14 hours ago
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
tabularx
environment, 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--115
rather than100-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...
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
1
Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the{}
button or by pressing ctrl+k.
– leandriis
13 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how theM
column type is defined.
– Mico
12 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
tabularx
environment, 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--115
rather than100-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...
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
tabularx
environment, 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--115
rather than100-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...
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
tabularx
environment, 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--115
rather than100-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...
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
tabularx
environment, 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--115
rather than100-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...
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 12 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
1
Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the{}
button or by pressing ctrl+k.
– leandriis
13 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how theM
column type is defined.
– Mico
12 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
1
Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the{}
button or by pressing ctrl+k.
– leandriis
13 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how theM
column type is defined.
– Mico
12 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
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
edited 13 hours ago
leandriis
11.2k1732
11.2k1732
New contributor
answered 14 hours ago
TeeTee
213
213
New contributor
New contributor
1
Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the{}
button or by pressing ctrl+k.
– leandriis
13 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how theM
column type is defined.
– Mico
12 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
13 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how theM
column type is defined.
– Mico
12 hours ago
1
1
Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the
{}
button or by pressing ctrl+k.– leandriis
13 hours ago
Could you please extend your code to a full minimal working example (MWE) by adding the documentclass as well as the relevant packages and your newly defined column type? By the way, on this site you can easily highlight code by selecting it and using the
{}
button or by pressing ctrl+k.– leandriis
13 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the
M
column type is defined.– Mico
12 hours ago
So that future readers of this posting have a fighting chance to understand what's going on in the code, it would be very helpful if you noted which document class you employ, which packages you load, and how the
M
column type is defined.– Mico
12 hours ago
add a comment |
Welcome to TeX.SE. You must place line-ending indicators (double backslash) at the ends of lines.
– Mico
14 hours ago
Thank you :-) I had that already but it still gave the same errors.
– Tee
14 hours ago
1
people can only comment on the code that you post, that has no
\
. It is always best to provide a complete small example that produces the error that you are asking about. You also needarraybackslash
after thecentering
. Unrelated but do not put acenter
enviornment around longtable.– David Carlisle
14 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
14 hours ago