]> git.saurik.com Git - apple/file_cmds.git/blob - file/magdir/tex
file_cmds-60.tar.gz
[apple/file_cmds.git] / file / magdir / tex
1
2 #------------------------------------------------------------------------------
3 # tex: file(1) magic for TeX files
4 #
5 # From <conklin@talisman.kaleida.com>
6
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
11 >16 string >\0 (%s)
12 0 string \367\203 TeX generic font data
13 0 string \367\131 TeX packed font data
14 >3 string >\0 (%s)
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
18
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
23 >33 string >\0 (%s)
24 2 string \000\022 TeX font metric data
25 >33 string >\0 (%s)
26
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
30
31 # TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
32 0 string \\input TeX document text
33 0 string \\section LaTeX document text
34 0 string \\setlength LaTeX document text
35 0 string \\documentstyle LaTeX document text
36 0 string \\chapter LaTeX document text