page table coming from a csv file. My problem: there is an error arrising in the condition before the table. Do you know how I can fix this problem? (Not all the data is shown but it is important that the table stays multi-page like.
\documentclass[a4paper, 11pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
\usepackage{siunitx}
\usepackage[left=3cm,top=3cm,right=3cm]{geometry}
\usepackage{tabularx}
\usepackage{ltablex}
\keepXColumns
\usepackage{xfrac}
\usepackage{float}
\newcolumntype{Y}{>{\small\raggedright\arraybackslash}X}
\usepackage{csvsimple}
%________________________________________________________________________
\newenvironment{conditions}
{\par\vspace{\abovedisplayskip}\noindent\tabularx{\textwidth}{>{$}l<{$} @{${}={}$} X}}
{\endtabularx\par\vspace{\belowdisplayskip}}
%________________________________________________________________________
% Part 4
\begin{filecontents*}{exp4.csv}
0.2,320.1
0.4,319.5
0.6,317.7
\end{filecontents*}
%________________________________________________________________________
\begin{document}
%________________________________________________________________________
\begin{conditions}
\kappa & specific conductivity [$\si{\siemens~\cm^{-1}}$] \\
\end{conditions}
\begin{tabularx}{\textwidth}{|X|X|}
\hline
\bfseries V EDTA [\si{\milli\liter}] & \bfseries value 1
\csvreader[no head]{exp4.csv}{}{\\ \hline \csvcoli & \csvcolii }
\\ \hline
\end{tabularx}
\end{document}

ltablexto maketabularxtables be able to occupy multiple pages (This is not the standard behaviour oftabularx.)ltablexseems to cause the issue here. Would you mind switching to an alternative package such asxltabularinstead? – leandriis May 22 '20 at 09:41tabularxfor this kind of table in the first place? You introduce a huge amount of white space in the table making it less visually appealing and harder to read. Why not use twoltype columns and a regularlongtableinstead? – leandriis May 22 '20 at 09:43tabularxpackage does not allow you to make tables span multiple pages. It only allows you to useXtype columns and specify an overall width for the table. If you want tables that can span multiple pages, uselongtable. If you want to combine the features oftabularx(Xtype columns) andlongtable(pagebreaks) in one table, there are multiple packages. One of them isltablexthat you used and that also causes the error message here. An alternative to that is thexltabularpackage that I used in my answer. – leandriis May 22 '20 at 09:59\begin{tabularx}{\textwidth}you made the actually quite narrow table as wide as the textwidth introducing a lot of unused white space in both columns. For such a table with few columns and narrow contents in each columns, there is no need forXtype columns (andtabularxorxltabularat all). You can just use a regularlongtableinstead as I showed in my answer. – leandriis May 22 '20 at 10:02