[NTG-context] Feature request: Creating tables from (tab-separated) values

Peter Münster pmlists at free.fr
Sat Apr 22 20:02:45 CEST 2006

On Sat, 22 Apr 2006, Mojca Miklavec wrote:

> - [with luaTeX in mind] calculating sums of rows & columns & other
> Excel-like calculations & references accross tables ;) - well, that
> one wasn't meant seriously.

Hello Mojca,
should be possible even without luaTeX:

\input realcalc % can be found on CTAN


  \Radd\SumFF\SumFF\R \bTR \bTD\eTD \bTD#1\eTD \expanded{\bTD\R\eTD} \eTR}

\def\PrintSums{\bTR \bTD Sums: \eTD
  \bTD\Rtrunc\SumEUR2\SumEUR \SumEUR\eTD
  \bTD\Rtrunc\SumFF2\SumFF   \SumFF \eTD \eTR}

\bTR \bTH\eTH \bTH Euro \eTH \bTH FF \eTH \eTR

With LaTeX, you can even replace the . by a , :

\input{realcalc}% on CTAN
  \cc{Euro} & \cc{FF}\\\hline
  20.33     & \\
  20.3      & \\
  20        & \\
  14.46     &

Cheers, Peter


More information about the ntg-context mailing list