[Tex/LaTex] Big Table in latex

longtabletablestabularx

Could you please helping me to draw a nice big tables

like this one , I don't know how to mange the big table in LateX

Many thanks

enter image description here

Best Answer

You can use the ltxtable latexpackage

This package is a wrapper around tabularx (that allows you to not specify the length of a column - for you the 4th one -) and longtable

By default the first line is repeated under all pages.

the main problem with this package is that the table needs to be written in another file. But you can do that like this:

\newcommand{\oldinput}[1]{\input{#1}}
\renewcommand{\input}[1]{#1}
\LTXtable{\linewidth}{%
  \begin{longtable}{cccXc}
  \end{longtable}
}
\renewcommand{\input}[1]{\oldinput{#1}}

If this pice of code is a little long you can set it into a command or environment (with the \newEnviron command provided by environ package) or \newenvironment and replace the LTXtable bracked with \bgroup and \egroup