I'm making a table with threeparttablex
and longtable
packages.
When I use caption, I get an error with \hline
and \thead
commands. So, I had to disable the three following lines. But I need these lines, mainly, the \thead
command, by my school standards (please, see Vertical alignment in tabular cells with variable height 4).
Could I to use caption, and besides \hline
and \thead
?
I must to put a footnote in the caption. The table size is of several pages.
This thread explains the solution to a similar issue: bottomrule not working in a self-made environment, but I don't know to adapt it to my trouble.
Please, excuse me by my English.
Thank you very much.
\documentclass[letterpaper,12pt,oneside]{report}
\usepackage{appendix}
\usepackage[american]{babel}
\usepackage{caption}
\usepackage{longtable}
\usepackage{makecell}
\usepackage{pdflscape}
\usepackage[para]{threeparttablex}
\usepackage{titletoc}
\renewcommand\theadset{\renewcommand\arraystretch{1}
\setlength\extrarowheight{0pt}}
\renewcommand\theadfont{\normalsize}
\begin{document}
\begin{appendices}
\begin{landscape}
\chapter{Calculos detallados de factibilidad economica de alternativa 2 (SIR)}
\begingroup
\begin{ThreePartTable}
\begin{longtable} {| r | r | r | r | c | r | l |}
\caption[table]{Estimacion de costos de desarrollo de SIR \tnote{a}}
%\hline
%\thead{Descripcion} & \thead{Cantidad} & \thead{Unidad} & \thead{Duracion,\\sem.} & \thead{Costo unit.,\\Bs./ud.} & \thead{Costo renglon,\\Bs.} & \thead{Observacion} \\
%\hline
\endhead
\multicolumn{7}{r}{(continua)}
\endfoot
\hline
\endlastfoot
\multicolumn{7}{|l|}{COSTOS DE PERSONAL \tnote{b}}\\ \hline
Analistas & 2 & empleado & 10 & 8.500/sem & 170.000 & \\ \hline
Disenadores & 2 & empleado & 11 & 8.500/sem & 187.000 & \\ \hline
Programadores & 2 & empleado & 6 & 8.500/sem & 102.000 & Codificacion \\ \hline
Funcionarios & 2 & empleado & 26 & 8.500/sem & 34.000 & Informacion \\ \hline
Tecnicos de redes & 6 & empleado & 3 & 7.500/sem & 135.000 & \\ \hline
Viaticos & 7 & gira & --- & 35.000 & 245.000 & Para redes \\ \hline
Capacitacion & 1 & curso & --- & 0 & 0 & Cuso gratuito \\ \hline
\multicolumn{7}{|l|}{COSTOS DE \emph{HARDWARE}}\\ \hline
Equipos A & 100 & maquina & --- & 100.000 & 10.000.000 & Equipo \\ \hline
Equipos B & 70 & maquina & --- & 30.000 & 2.100.000 & Recuperados \\ \hline
Servidor & 1 & maquina & --- & 650.000 & 650.000 & \\ \hline
Impresoras & 35 & maquina & --- & 40.000 & 1.400.000 & \\ \hline
Detect. biometricos & 32 & maquina & --- & 90.000 & 2.880.000 & \\ \hline
\end{longtable}
\begin{tablenotes}
\item[a] Datos obtenidos el 15/12/2015.
\item[b] Se consideran bono de alimentacion y un incremento de 30 \% en el sueldo por prestaciones sociales.
\end{tablenotes}
\end{ThreePartTable}
\endgroup
\end{landscape}
\end{appendices}
\end{document}
\\
at the end of the\caption
line.\hline
before\endlastfoot