[TriLUG] LaTeX tables - ascii input?

Ed Hill ed at eh3.com
Tue Feb 10 10:06:04 EST 2004


On Tue, 2004-02-10 at 09:27, Ed Hill wrote:
> On Tue, 2004-02-10 at 08:51, Douglas Kojetin wrote:
> > Hi All-
> > 
> > Sorry if this is a basic LaTeX question, but I left my 'LaTeX for 
> > Beginners' book @ home (and I'm @ school).
> > 
> > Is there a way to take some sort of delimited text file and 'import' or 
> > 'source' (similar, but not, to the 'include' function) it in my LaTeX 
> > file?  For instance, say I have a file with the following data:
> > 
> > # file = table.ascii
> > 1,2,3,4,5
> > 2,4,6,8,10
> > 3,6,9,12,15
> > .....
> > 
> > and I want to make table of this data (say, in total, 100 rows long ... 
> > just to bring home the point I do not want to add this info directly to 
> > the LaTeX file itself).
> > 
> > How might I do that?
> 
> Hi Doug,
> 
> TMTOWTDI!
> 
> Oh, wait, this is LaTeX, not PERL...  ;-)
> 
> But seriously, there are multiple ways to do tables:
> 
>   1) in a separate file, format the table using TeX and then
>      just \input{} it
> 
>   2) create the table using some completely different tool
>      (OpenOffice?) and then include it as an Encapsulated 
>      PostScript figure:


Oh, and I forgot to mention the "ps2epsi" utility which can be mighty
helpful for option #2 above.

Ed

[XXX at YYY]: rpm -q --whatprovides `which ps2epsi`
ghostscript-7.05-32.1


-- 
Edward H. Hill III, PhD
office:  MIT Dept. of EAPS;  Room 54-1424;  77 Massachusetts Ave.
            Cambridge, MA 02139-4307
email:   eh3 at mit.edu,  ed at eh3.com
URL:     http://web.mit.edu/eh3/
phone:   617-253-0098
fax:     617-253-4464
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.trilug.org/pipermail/trilug/attachments/20040210/dd95cd2f/attachment.pgp>


More information about the TriLUG mailing list