LaTeX forum ⇒ Graphics, Figures & TablesLaTeX does not compile my code for a tab

Information and discussion about graphics, figures & tables in LaTeX documents.
jordanfrnier
Posts: 1
Joined: Thu May 03, 2018 9:51 am

LaTeX does not compile my code for a tab

Postby jordanfrnier » Thu May 03, 2018 9:57 am

Hi, i would like to compile some code in my TeX file, this is the code of a table that Gretl (statistics) auto-generated.
When I want to compile the file, I have a message as an error saying "file ended while using of \multicolomn".

Here is my code :
  1. \begin{center}
  2. Statistiques descriptives, utilisant les observations 1 - 343\\
  3.  
  4. \vspace{8pt}
  5.  
  6. \begin{tabular}{lr@{,}lr@{,}lr@{,}lr@{,}l}
  7. Variable & \multicolumn{2}{c}{Moyenne}
  8. & \multicolumn{2}{c}{Médiane}
  9. & \multicolumn{2}{c}{Minimum}
  10. & \multicolumn{2}{c}{Maximum} \\[1ex]
  11. puiss\_max & 143&31 & 120&00 & 40&000 & 493&00\\
  12. MasseUEx100 & 16&728 & 16&250 & 8&1500 & 28&100\\
  13. cylindreex100 & 23&991 & 19&970 & 6&9800 & 64&960\\[10pt]
  14.  
  15. Variable & \multicolumn{2}{c}{Écart type\}
  16. & \multicolumn{2}{c}{C.V.}
  17. & \multicolumn{2}{c}{Asymétrie}
  18. & \multicolumn{2}{c}{Aplatissement\} \\[1ex]
  19. puiss\_max & 87&491 & 0&61048 & 1&9208 & 3&5384\\
  20. MasseUEx100 & 3&4190 & 0&20439 & 0&30129 & 0&064547\\
  21. cylindreex100 & 11&277 & 0&47007 & 1&7479 & 2&7997\\[10pt]
  22.  
  23. Variable & \multicolumn{2}{c}{pourc. 5\%}
  24. & \multicolumn{2}{c}{pourc. 95\%}
  25. & \multicolumn{2}{c}{Intervalle IQ}
  26. & \multicolumn{2}{c}{Obs. manquantes} \\[1ex]
  27. puiss\_max & 61&160 & 368&00 & 72&000 & \multicolumn{2}{c}{0}\\
  28. MasseUEx100 & 11&302 & 22&600 & 4&4100 & \multicolumn{2}{c}{0}\\
  29. cylindreex100 & 13&048 & 54&566 & 13&690 & \multicolumn{2}{c}{0}\\
  30. \end{tabular}
  31. \end{center}
  32.  


I'd really appreciate some help, thank you !

Tags:

User avatar
Stefan Kottwitz
Site Admin
Posts: 9572
Joined: Mon Mar 10, 2008 9:44 pm

Postby Stefan Kottwitz » Thu May 03, 2018 11:41 am

Hi,

welcome to the forum!

You have a backslash \ in the code that causes an error.

Here, each time before the closing brace:

\multicolumn{2}{c}{Écart type\}
\multicolumn{2}{c}{Aplatissement\}


Just remove it there.

Stefan
LaTeX.org admin


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 5 guests