tex 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 search/400 \\input TeX document text
  28. 0 search/400 \\section LaTeX document text
  29. 0 search/400 \\setlength LaTeX document text
  30. 0 search/400 \\documentstyle LaTeX document text
  31. 0 search/400 \\chapter LaTeX document text
  32. 0 search/400 \\documentclass LaTeX 2e document text
  33. 0 search/400 \\relax LaTeX auxiliary file
  34. 0 search/400 \\contentsline LaTeX table of contents
  35. 0 search/400 %\ -*-latex-*- LaTeX document text
  36. # Tex document, from Hendrik Scholz <hendrik@scholz.net>
  37. 0 string \\ifx TeX document text
  38. # Index and glossary files
  39. 0 search/400 \\indexentry LaTeX raw index file
  40. 0 search/400 \\begin{theindex} LaTeX sorted index
  41. 0 search/400 \\glossaryentry LaTeX raw glossary
  42. 0 search/400 \\begin{theglossary} LaTeX sorted glossary
  43. 0 search/400 This\ is\ makeindex Makeindex log file
  44. # End of TeX
  45. #------------------------------------------------------------------------------
  46. # file(1) magic for BibTex text files
  47. # From Hendrik Scholz <hendrik@scholz.net>
  48. 0 string/c @article{ BibTeX text file
  49. 0 string/c @book{ BibTeX text file
  50. 0 string/c @inbook{ BibTeX text file
  51. 0 string/c @incollection{ BibTeX text file
  52. 0 string/c @inproceedings{ BibTeX text file
  53. 0 string/c @manual{ BibTeX text file
  54. 0 string/c @misc{ BibTeX text file
  55. 0 string/c @preamble{ BibTeX text file
  56. 0 string/c @phdthesis{ BibTeX text file
  57. 0 string/c @techreport{ BibTeX text file
  58. 0 string/c @unpublished{ BibTeX text file
  59. 73 string %%%\ \ BibTeX-file{ BibTex text file (with full header)
  60. 73 string %%%\ \ @BibTeX-style-file{ BibTeX style text file (with full header)
  61. 0 string %\ BibTeX\ standard\ bibliography\ BibTeX standard bibliography style text file
  62. 0 string %\ BibTeX\ ` BibTeX custom bibliography style text file
  63. 0 string @c\ @mapfile{ TeX font aliases text file