tex 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #------------------------------------------------------------------------------
  2. # tex: file(1) magic for TeX files
  3. #
  4. # From <conklin@talisman.kaleida.com>
  5. # Although we may know the offset of certain text fields in TeX DVI
  6. # and font files, we can't use them reliably because they are not
  7. # zero terminated. [but we do anyway, christos]
  8. 0 string \367\002 TeX DVI file
  9. >16 string >\0 (%s)
  10. 0 string \367\203 TeX generic font data
  11. 0 string \367\131 TeX packed font data
  12. >3 string >\0 (%s)
  13. 0 string \367\312 TeX virtual font data
  14. 0 string This\ is\ TeX, TeX transcript text
  15. 0 string This\ is\ METAFONT, METAFONT transcript text
  16. # There is no way to detect TeX Font Metric (*.tfm) files without
  17. # breaking them apart and reading the data. The following patterns
  18. # match most *.tfm files generated by METAFONT or afm2tfm.
  19. 2 string \000\021 TeX font metric data
  20. >33 string >\0 (%s)
  21. 2 string \000\022 TeX font metric data
  22. >33 string >\0 (%s)
  23. # Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
  24. 0 string \\input\ texinfo Texinfo source text
  25. 0 string This\ is\ Info\ file GNU Info text
  26. # TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
  27. 0 string \\input TeX document text
  28. 0 string \\section LaTeX document text
  29. 0 string \\setlength LaTeX document text
  30. 0 string \\documentstyle LaTeX document text
  31. 0 string \\chapter LaTeX document text
  32. 0 string \\documentclass LaTeX 2e document text
  33. 0 string \\relax LaTeX auxiliary file
  34. 0 string \\contentsline LaTeX table of contents
  35. # Index and glossary files
  36. 0 string \\indexentry LaTeX raw index file
  37. 0 string \\begin{theindex} LaTeX sorted index
  38. 0 string \\glossaryentry LaTeX raw glossary
  39. 0 string \\begin{theglossary} LaTeX sorted glossary
  40. 0 string This\ is\ makeindex Makeindex log file
  41. # End of TeX