LaTeX forum ⇒ Graphics, Figures & Tableslongtable | Legend on subsequent Pages Topic is solved

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

longtable | Legend on subsequent Pages  Topic is solved

Postby marie2011 » Sun Dec 09, 2012 8:45 pm

Dear forum members,

I have the following longtable and I need to write the name of the legend in the subsequent pages. How can I do it? In addition, a line above "continuación" should appear as well.

  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.  
  18. \begin{document}
  19. \begin{center}
  20. \begin{longtable}{lp{13cm}}
  21. \caption{Preguntas}
  22. \label{tab:preguntas}\\
  23. \hline
  24. \textbf{Num.} & \textbf{Pregunta} \\
  25. \hline \hline
  26. \endfirsthead
  27.  
  28. \hline
  29. \textbf{Num.} & \textbf{Pregunta} \\
  30.  
  31. \hline \hline
  32. \endhead
  33.  
  34. \multicolumn{2}{l}{continuación} \hline
  35. \endfoot
  36. \endlastfoot
  37.  
  38. 5.& ¿Qué dudas o temores tenías antes de comenzar?\\
  39.  
  40. \end{longtable}
  41. \end{center}
  42. \end{document}

Many, many thanks for your help.


Regards,
Marie

Tags:

User avatar
sommerfee
Posts: 498
Joined: Mon Apr 09, 2007 4:20 pm

Postby sommerfee » Tue Dec 11, 2012 10:58 am

marie2011 wrote:I have the following longtable and I need to write the name of the legend in the subsequent pages.


Use \caption in your longtable header, which is marked with \endhead. (If you use \caption[]{...some...text...} this will suppress additional LOT entries.)

In addition, a line above "continuación" should appear as well.


Where is the problem in adding a \hline here?

BTW: I can't compile your sample document without errors:
  1. ! Misplaced \noalign.
  2. \hline ->\noalign
  3. {\ifnum 0=`}\fi \penalty \@M \futurelet \@let@token \LT@@h...
  4. l.34 \multicolumn{2}{l}{continuación} \hline


Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: Google [Bot] and 4 guests