[texhax] Tables from Files

David Jonah david.jonah at gmail.com
Thu Nov 2 17:36:24 CET 2006


When I embed your code in a \documentclass{article} file, I get the
following strange response:

! LaTeX Error: File `chart.csv' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: csv)
Enter file name: chart.cvs
(./chart.cvs) [1] (./table-to-tex.aux)
Output written on table-to-tex.dvi (1 page, 652 bytes).

Your idea converts a  file with lines with enteries separated by commas
a three column table as expected.

Question: why do latex, pdflatex, and vlatex all fail to find the file the
first time and find
it the second time?

I'm using  latex and pdflatex from texlive 2005 on a laptop with SUSe linux.


On 7/12/06, Ulf Markwardt <ulf.markwardt at tu-dresden.de> wrote:
> Thank you all,
> >I am looking for a package that makes it possible to directly input data
> >a file into a table like \tabularfromfile{filename.csv}[formatoptions].
> here is the solution which is what I had in mind.
> {
> \catcode`\,=\catcode`\&
> \catcode`\
> =\active%
> \def
> {\\ \hline}%
> \begin{tabular}[hbt]{|c|c|c|}
> % place header
> \input{tabelle.csv}%
> \end{tabular}%
> }
> Ulf
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/texhax/attachments/20061102/b3aad8e9/attachment.html 

More information about the texhax mailing list