🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.tex
Article #82

Knuth's "list.tex".

#82
From: Geoffrey Tobin
Date: Thu, 29 Oct 1992 09:05
30 lines
1282 bytes
Reading David M. Jones's "TeX Macro Index", I was fascinated by the
entry on Donald E. Knuth's "list.tex" file lister, for which the
typical usage is:

    tex list *.c \\end

Actually,

    tex list file1 file2 ... filen \\end
and
    tex list *.tex \\end

work, too.

But how does it work?  The operative command seems to be:

    \everypar{\grabfile}

However, I don't see how the files following "list" on the command
line are read by TeX and interpreted.

Where in "The TeXbook" does it say that TeX can have more than one
file on the command line?  (I never knew about this, which is what
made me think that "list.tex" might be very interesting.)

Also, how \everypar and \grabfile function?
In particular, what have paragraphs and boxes got to do with reading
files from their names on TeX's command line?

Geoffrey Tobin
Technical Details
Message-ID: <1992Oct29.090557.7007@lugb.latrobe.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!luxor.latrobe.edu.au!ecsgrt

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!luxor.latrobe.edu.au!ecsgrt
Newsgroups: comp.text.tex
Subject: Knuth's "list.tex".
Message-ID: <1992Oct29.090557.7007@lugb.latrobe.edu.au>
From: ecsgrt@luxor.latrobe.edu.au (Geoffrey Tobin)
Date: Thu, 29 Oct 1992 09:05:57 GMT
Sender: news@lugb.latrobe.edu.au (USENET News System)
Organization: La Trobe University
Lines: 30