Ulf <br><br>When I embed your code in a \documentclass{article} file, I get the following strange response:<br><br>! LaTeX Error: File `chart.csv' not found.<br>Type X to quit or <RETURN> to proceed,<br>or enter new name. (Default extension: csv)
<br>Enter file name: chart.cvs<br>(./chart.cvs) [1] (./table-to-tex.aux)<br>Output written on table-to-tex.dvi (1 page, 652 bytes).<br><br>Your idea converts a file with lines with enteries separated by commas into<br>a three column table as expected.
<br><br>Question: why do latex, pdflatex, and vlatex all fail to find the file the first time and find<br>it the second time?<br><br>I'm using latex and pdflatex from texlive 2005 on a laptop with SUSe linux.<br><br>David
<br><br>On 7/12/06, Ulf Markwardt <<a href="mailto:ulf.markwardt@tu-dresden.de">ulf.markwardt@tu-dresden.de</a>> wrote:<br>> Thank you all,<br>> <br>> >I am looking for a package that makes it possible to directly input data from
<br>> >a file into a table like \tabularfromfile{filename.csv}[formatoptions].<br>> <br>> here is the solution which is what I had in mind.<br>> <br>> {<br>> \catcode`\,=\catcode`\&<br>> \catcode`\
<br>> =\active%<br>> \def<br>> {\\ \hline}%<br>> \begin{tabular}[hbt]{|c|c|c|}<br>> % place header<br>> \input{tabelle.csv}%<br>> \end{tabular}%<br>> }<br>> <br>> Ulf<br>> _______________________________________________
<br>> TeX FAQ: <a href="http://www.tex.ac.uk/faq">http://www.tex.ac.uk/faq</a><br>> Mailing list archives: <a href="http://tug.org/pipermail/texhax/">http://tug.org/pipermail/texhax/</a><br>> More links: <a href="http://tug.org/begin.html">
http://tug.org/begin.html</a><br>> <br>> Automated subscription management: <a href="http://tug.org/mailman/listinfo/texhax">http://tug.org/mailman/listinfo/texhax</a><br>> Human mailing list managers: <a href="mailto:postmaster@tug.org">
postmaster@tug.org</a><br>> <br><br>