2 #------------------------------------------------------------------------------
3 # tex: file(1) magic for TeX files
5 # From <conklin@talisman.kaleida.com>
7 # Although we may know the offset of certain text fields in TeX DVI
8 # and font files, we can't use them reliably because they are not
9 # zero terminated. [but we do anyway, christos]
10 0 string \367\002 TeX DVI file
12 0 string \367\203 TeX generic font data
13 0 string \367\131 TeX packed font data
15 0 string \367\312 TeX virtual font data
16 0 string This\ is\ TeX, TeX transcript text
17 0 string This\ is\ METAFONT, METAFONT transcript text
19 # There is no way to detect TeX Font Metric (*.tfm) files without
20 # breaking them apart and reading the data. The following patterns
21 # match most *.tfm files generated by METAFONT or afm2tfm.
22 2 string \000\021 TeX font metric data
24 2 string \000\022 TeX font metric data
27 # Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
28 0 string \\input\ texinfo Texinfo source text
29 0 string This\ is\ Info\ file GNU Info text
31 # TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
32 0 search/400 \\input TeX document text
33 0 search/400 \\section LaTeX document text
34 0 search/400 \\setlength LaTeX document text
35 0 search/400 \\documentstyle LaTeX document text
36 0 search/400 \\chapter LaTeX document text
37 0 search/400 \\documentclass LaTeX 2e document text
38 0 search/400 \\relax LaTeX auxiliary file
39 0 search/400 \\contentsline LaTeX table of contents
40 0 search/400 %\ -*-latex-*- LaTeX document text
42 # Tex document, from Hendrik Scholz <hendrik@scholz.net>
43 0 string \\ifx TeX document text
45 # Index and glossary files
46 0 search/400 \\indexentry LaTeX raw index file
47 0 search/400 \\begin{theindex} LaTeX sorted index
48 0 search/400 \\glossaryentry LaTeX raw glossary
49 0 search/400 \\begin{theglossary} LaTeX sorted glossary
50 0 search/400 This\ is\ makeindex Makeindex log file
54 #------------------------------------------------------------------------------
55 # file(1) magic for BibTex text files
56 # From Hendrik Scholz <hendrik@scholz.net>
58 0 string/c @article{ BibTeX text file
59 0 string/c @book{ BibTeX text file
60 0 string/c @inbook{ BibTeX text file
61 0 string/c @incollection{ BibTeX text file
62 0 string/c @inproceedings{ BibTeX text file
63 0 string/c @manual{ BibTeX text file
64 0 string/c @misc{ BibTeX text file
65 0 string/c @preamble{ BibTeX text file
66 0 string/c @phdthesis{ BibTeX text file
67 0 string/c @techreport{ BibTeX text file
68 0 string/c @unpublished{ BibTeX text file
70 73 string %%%\ \ BibTeX-file{ BibTex text file (with full header)
72 73 string %%%\ \ @BibTeX-style-file{ BibTeX style text file (with full header)
74 0 string %\ BibTeX\ standard\ bibliography\ BibTeX standard bibliography style text file
76 0 string %\ BibTeX\ ` BibTeX custom bibliography style text file
78 0 string @c\ @mapfile{ TeX font aliases text file