From: Stroller <lin...@my...> - 2006-11-04 13:58:03
|
On 4 Nov 2006, at 13:10, Stroller wrote: > On 4 Nov 2006, at 06:39, Dr Eberhard Lisse wrote: >> ...so try this fragment: >> >> \usepackage{ifthen} >> \usepackage{numprint} >> >> \begin{tabularx}{\textwidth}{lXrlr} >> Part & Description & Price & & Amount \\ >> <%foreach number%> >> <%number%> & >> <%description%> & >> % \ifthenelse{\lengthtest{<%qty%>pt>1pt}}{\pounds <%sellprice%>} >> {}}}}& > \ifthenelse{\lengthtest{<%qty%>pt>1pt}{\pounds <%sellprice%>}{}} & >> % \ifthenelse{\lengthtest{<%qty%>pt>1pt}}{x <%qty%>}{}}}} & > \ifthenelse{\lengthtest{<%qty%>pt>1pt}{x <%qty%>}{}} & >> \pounds <%linetotal%> \\ % end of table row >> <%end number%> >> \end{tabularx} Ooops! My bad. That bracketing prevents the /pounds from showing on my system. I _think_ this is right: \begin{tabularx}{\textwidth}{lXrlr} Part & Description & Price & Quantity & Amount \\ <%foreach number%> <%number%> & <%description%> & \ifthenelse{\lengthtest{<%qty%>pt>1pt}}{\pounds <%sellprice%>}{} & \ifthenelse{\lengthtest{<%qty%>pt>1pt}}{x <%qty%>}{} & \pounds <%linetotal%> \\ % end of table row <%end number%> \end{tabularx} Stroller. |