
-------------------------------------
Dear LaTex Community Friends,
For the sake of knowing how to "exactly" use the ltxtable package, I'm initiating this post. I have searched the forums and the index for an "ample" example of codes used for the ltxtable but had a very hard time, so here is a begining that doesn't work. Hoping that some Latex gurus will contribute keeping this thread for those who are struggling with longtable (tables that span across multiple pages) and tabularx (variable width columns). The example is of two columns (a small one with a title) and the second (much longer containing a full description of the concept). Pls excuse me for not sticking to the minimal example here as those didn't help me much.!!!
For those who still don't know it, you have to create the table in a seprate .tex file using something like the following code:
Code: Select all
%!TEX encoding = IsoLatin
\documentclass[parskip=half]{scrartcl}
\usepackage[latin1]{inputenc}
\usepackage{array}
\usepackage{booktabs,tabularx}
\usepackage{ltxtable}
\begin{document}
\begin{table}
\caption{Your caption}
\label{tab:table}
\centering
\begin{tabularx}{\linewidth}{|>{\hsize=.8\hsize}X|>{\hsize=1.2\hsize}X|}
\toprule
Concept 1 & blablabla \\
\hline
Concept 2 & blablabla \\
\hline
Concept 3 & blablabla \\
\hline
Concept 4 & blablabla \\
\hline
\bottomline
\end{tabularx}
\end{table}
\end{document}
Code: Select all
\newcolumntype{Y}{>{\small\raggedright\arraybackslash}X}
\renewcommand{\arraystretch}{1.5}
\noindent
\begin{longtable}{|>{\setlength\hsize{.8\hsize}}X|>{\setlength\hsize{1.2\hsize}}X|}
But that didn't work for me...Pls tell me why
And finally on the main file and where you should include your long table a code like this should appear:
Code: Select all
\LTXtable{linewidth}{table.tex}
I call upon those of you who can tell us how to manage all this to start posting their replies here...
Thanks to all Latex users/developpers/sufferers.....
Well I kind of enjoy playing with it by now......
