home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 4 / 4042 / append-magic
Encoding:
Text File  |  1991-09-14  |  1.5 KB  |  37 lines

  1. ##########################################################################
  2. # TeX support for the file command, to be appended to /usr/lib/file/magic,
  3. # /etc/magic or whatever applies on your system.
  4. # Version 1.1 (13 Sep 1991)
  5. #
  6. # Copyright 1991 Ignatios Souvatzis  (souva@babsy.mpifr-bonn.mpg.de)
  7. # All rights reserved.
  8. #
  9. # You may use this file or give it away under the conditions of the 
  10. # GNU copyleft, Version 1 or later, available from the Free Software 
  11. # Foundation, 675 Mass Ave, Campridge, MA 02139, USA
  12. # In short, you are  allowed to use, copy  and distribute this file as
  13. # long as you don't make any profit out of it (except for reasonable 
  14. # copying fees) and don't remove this notice from it.
  15. #########################################################################
  16. #
  17. # LaTeX file:
  18. #
  19. 0    string    \documentstyle\\%[^}]*}\\%    1,1    LaTeX document %s
  20. #
  21. # .dvi file:
  22. #
  23. 0    short    0x02f7    1,1    TeX82 .dvi file
  24. >12    short    x    1,1    , mag %d
  25. >15    string    ^\\%[\040-\0176]*\\%    1,1    :%s
  26. 0    short    0x03f7    1,1    TeX dvi-ivd file
  27. 0    short    0x04f7    1,1    Impossible!   (TeX output generated after 2048)
  28. #
  29. #   ^         ^       ^     ^  these should be TABS!!!!
  30. #
  31. #The line with  the >12 at  the beginning should  be removed on Digital
  32. #Equipment  - byte sexed machines.  Anyway, it works only for specified
  33. #magnifications < 65536/1000. The last line is a joke ("2nd byte will be
  34. #changed from 2 or  3 to 4 when an  incompatible change is made  to the
  35. #.dvi format, about in 2048" (Knuth, approx. cited from tex.web 3.0).
  36. #
  37.