I'm having issues with this table and can't find the problem. I'm including all the packages I'm using for customizing the table:
\usepackage{spreadtab}
\usepackage{arydshln} % For the dotted line on the table
\renewcommand{\arraystretch}{1.5} % Apply vertical padding to table cells
\usepackage{hhline} % For single-cell borders
\newcounter{pos}
\setcounter{pos}{0}
\begin{spreadtab}{{tabular}[t t t]{lp{8.2cm}r}}
\hdashline[1pt/1pt]
\STtextcell \textbf{Pos.} & \STtextcell \textbf{Leistung/Beschreibung} & \STtextcell \textbf{Preise in EUR} \\ \hline
\STtextcell \refstepcounter{pos} \thepos & \STtextcell Die erste Leistung & 750.0 \\
\STtextcell \refstepcounter{pos} \thepos & \STtextcell Die zweite Leistung & 180.0 \\
\STtextcell \refstepcounter{pos} \thepos & \STtextcell Die dritte Leistung & 55.0 \\
\STtextcell \refstepcounter{pos} \thepos & \STtextcell Die fierte Leistung & 55.0 \\ \hline
\STtextcell & \STtextcell \multicolumn{1}{r}{\textbf{Rechnungsbetrag:}} & \textbf{sum(c1:c4)} \\ \hhline{~~-}
\end{spreadtab}
I'm getting the following error: Paragraph ended before \ST@left@ii was complete.
Can anyone see what I'm doing wrong? Any help would be much appreciated.
\STtextcell
by@
and change\textbf{sum(c1:c4)}
into\textbf{:={sum(c1:c4)}}
@
and\STtextcell
were equivalent, but it doesn't work using\STtextcell
.