The following example gives
! Package array Error: Illegal pream-token ([): `c' used.
! Package array Error: Illegal pream-token (t): `c' used.
! Package array Error: Illegal pream-token (a): `c' used.
...(e) ...(-) ...(f) ...(o) ...(=) ...(3) ...(.) ...(2)
...(,) ...(u) ...(i) ...(g) ...(d) ...(s) ...(]): `c' used.
I'm really struggling to understand what these 18 errors refer to. Here is my main.tex:
\documentclass{article}
\usepackage[a4paper, margin=2cm]{geometry}
\usepackage{datetime}
\usepackage{spreadtab}
\usepackage{numprint}
\npdecimalsign{.}
\usepackage{tabularx}
\setlength\parindent{0pt}
\hbadness=99999 % or any number >=10000
\begin{document}
\STautoround*{2}
\begin{spreadtab}{{tabularx}{\textwidth}{
>{\raggedright\arraybackslash\hsize=0.6\hsize}X
>{\raggedright\arraybackslash\hsize=1.8\hsize}X
>{\raggedleft\arraybackslash\hsize=0.6\hsize}X[table-format=3.2, round-integer-to-decimal, round-mode = places, round-precision = 2] }}
\textbf{@Date} & \textbf{@Description} & \textbf{@Amount}\\
\hline
@Jan 2019 & @Bookkeeping and Accounts & 44.30tag(lastrow)\\ %tag(lastrow)
% & @Year End 2019 & 6.31\\
% & @Payroll & 2.05tag(lastrow)\\
\hline
& @\textbf{TOTAL} & sum(c1:cell(lastrow))\\
\end{spreadtab}
\end{document}
Thanks for any help
[
inX[table...
tabularx
X columns have no[..]
syntax.[table-format=3.2, round-integer-to-decimal, round-mode = places, round-precision = 2]
if you want to useX
or perhaps you meant to useS[table-format=3.2, round-integer-to-decimal, round-mode = places, round-precision = 2]
withS
from thesiunitx
package?X[...]
isn't a tabularx syntax, you presumably intended it to do something but it's just a syntax error. so "as stated above" doesn't really help say what you intended. I guess you intended S but that's a guess.