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

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

LaTeX does not compile my code for a tab

Post by jordanfrnier »

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 :
\begin{center}
Statistiques descriptives, utilisant les observations 1 - 343\\

\vspace{8pt}

\begin{tabular}{lr@{,}lr@{,}lr@{,}lr@{,}l}
Variable & \multicolumn{2}{c}{Moyenne}
 & \multicolumn{2}{c}{Médiane}
  & \multicolumn{2}{c}{Minimum}
   & \multicolumn{2}{c}{Maximum} \\[1ex]
puiss\_max & 143&31 & 120&00 & 40&000 & 493&00\\
MasseUEx100 & 16&728 & 16&250 & 8&1500 & 28&100\\
cylindreex100 & 23&991 & 19&970 & 6&9800 & 64&960\\[10pt]

Variable &  \multicolumn{2}{c}{Écart type\}
 & \multicolumn{2}{c}{C.V.}
  & \multicolumn{2}{c}{Asymétrie}
   & \multicolumn{2}{c}{Aplatissement\} \\[1ex]
puiss\_max & 87&491 & 0&61048 & 1&9208 & 3&5384\\
MasseUEx100 & 3&4190 & 0&20439 & 0&30129 & 0&064547\\
cylindreex100 & 11&277 & 0&47007 & 1&7479 & 2&7997\\[10pt]

Variable &  \multicolumn{2}{c}{pourc. 5\%}
 & \multicolumn{2}{c}{pourc. 95\%}
  & \multicolumn{2}{c}{Intervalle IQ}
   & \multicolumn{2}{c}{Obs. manquantes} \\[1ex]
puiss\_max & 61&160 & 368&00 & 72&000 & \multicolumn{2}{c}{0}\\
MasseUEx100 & 11&302 & 22&600 & 4&4100 & \multicolumn{2}{c}{0}\\
cylindreex100 & 13&048 & 54&566 & 13&690 & \multicolumn{2}{c}{0}\\
\end{tabular}
\end{center}
I'd really appreciate some help, thank you !

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

LaTeX does not compile my code for a tab

Post by Stefan Kottwitz »

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
Post Reply