LaTeX forum ⇒ Graphics, Figures & TablesIssue with multi-columned Cell Topic is solved

Information and discussion about graphics, figures & tables in LaTeX documents.
marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Issue with multi-columned Cell

Postby marie2011 » Tue Feb 12, 2013 3:11 pm

Dear forum members,

I was wondering if you could help me with this table I cannot compile. The error says:
  1. ERROR: File ended while scanning use of \multicolumn.
  2.  
  3. --- TeX said ---
  4. ! File ended while scanning use of \multicolumn.
  5. --- HELP ---
  6. No help available


And the minimal example is:

  1. \documentclass[
  2. 12pt,%
  3. % draft,%
  4. twoside,%
  5. BCOR10mm,%
  6. % bibtotocnumbered,% <= obsolete
  7. bib=totoc, % <= recommended
  8. toc=listof,
  9. toc=bibliography,
  10. numbers=noenddot
  11. ]{scrreprt}
  12.  
  13. \usepackage[T1]{fontenc}
  14. \usepackage[utf8]{inputenc}
  15. \usepackage[spanish,ngerman,catalan,english]{babel}
  16. \usepackage{longtable}
  17. \usepackage{tablefootnote}
  18.  
  19. \begin{document}
  20. \begin{longtable}{lp{13cm}}
  21. \caption{Aspect} \label{tab:aspects} \\
  22. \hline
  23. \textbf{Número} &\textbf{Comentario} \\ \hline
  24. \endfirsthead
  25. \caption[]{Aspects} \\\hline
  26. \textbf{Número} &\textbf{Comentario} \\ \hline
  27. \endhead \hline
  28. \multicolumn{2}{r}{{\emph{continuación}}\\
  29. \hline
  30. \endfoot
  31. \hline \hline
  32. \endlastfoot
  33. \hline
  34. 1. &``Sentence in Spanish''\tablefootnote{(cita original) ``Sentence
  35. in English.}.\\
  36.  
  37. \hline
  38. \end{longtable}
  39.  
  40. \end{document}

The example does not work, since I am having problems. I assume there is a mistake with some elements, but I cannot find it.

Many thanks in advance.

Regards,
Marie

Tags:

kaiserkarl13
Posts: 636
Joined: Tue Mar 25, 2008 5:02 pm

Postby kaiserkarl13 » Tue Feb 12, 2013 4:02 pm

As LaTeX was trying to tell you, you're missing a brace after your multicolumn command (you have two, and need three due to the \emph command).

marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Postby marie2011 » Tue Feb 12, 2013 4:11 pm

Hello kaiserkarl13,

Many thanks for your answer.

Here is the minimal working example.

Mi problem now is that the footnote does not appear at the end of the page.

  1. \documentclass[
  2. 12pt,%
  3. % draft,%
  4. twoside,%
  5. BCOR10mm,%
  6. % bibtotocnumbered,% <= obsolete
  7. bib=totoc, % <= recommended
  8. toc=listof,
  9. toc=bibliography,
  10. numbers=noenddot
  11. ]{scrreprt}
  12.  
  13. \usepackage[T1]{fontenc}
  14. \usepackage[utf8]{inputenc}
  15. \usepackage[spanish,ngerman,catalan,english]{babel}
  16. \usepackage{longtable}
  17. \usepackage{tablefootnote}
  18.  
  19. \begin{document}
  20. \begin{longtable}{lp{13cm}}
  21. \caption{Aspect} \label{tab:aspects} \\
  22. \hline
  23. \textbf{Número} &\textbf{Comentario} \\ \hline
  24. \endfirsthead
  25. \caption[]{Aspects} \\\hline
  26. \textbf{Número} &\textbf{Comentario} \\ \hline
  27. \endhead \hline
  28. \multicolumn{2}{r}{{\emph{continuación}}}\\
  29. \hline
  30. \endfoot
  31. \hline \hline
  32. \endlastfoot
  33. \hline
  34. 1. &``Sentence in Spanish''\tablefootnote{(cita original) ``Sentence
  35. in English''.}.\\
  36.  
  37. \hline
  38. \end{longtable}
  39. \end{document}


Many thanks in advance.

Regards,
Marie

marie2011
Posts: 138
Joined: Mon Feb 06, 2012 4:58 pm

Postby marie2011 » Wed Feb 13, 2013 11:51 am

Hello,

I replaced \tablefootnote for \footnote and everything works fine now.

Regards,
Marie


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 9 guests