Initial import from FreeBSD RELENG_4:
[dragonfly.git] / contrib / 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
37 0       string          \\documentclass LaTeX 2e document text
38 0       string          \\relax         LaTeX auxiliary file
39 0       string          \\contentsline  LaTeX  table of contents
40 0       string          %\ -*-latex-*-  LaTeX document text
41
42 # Tex document, from Hendrik Scholz <hendrik@scholz.net>
43 0   string      \\ifx       TeX document text
44
45 # Index and glossary files
46 0       string          \\indexentry    LaTeX raw index file
47 0       string          \\begin{theindex}       LaTeX sorted index
48 0       string          \\glossaryentry LaTeX raw glossary
49 0       string          \\begin{theglossary}    LaTeX sorted glossary
50 0       string          This\ is\ makeindex     Makeindex log file
51
52 # End of TeX
53
54 #------------------------------------------------------------------------------
55 # file(1) magic for BibTex text files
56 # From Hendrik Scholz <hendrik@scholz.net>
57
58 0   string @article{          BibTex text file
59 0   string @book{             BibTex text file
60 0   string @inbook{           BibTex text file
61 0   string @incollection{     BibTex text file
62 0   string @inproceedings{    BibTex text file
63 0   string @manual{           BibTex text file
64 0   string @misc{             BibTex text file
65 0   string @preamble{         BibTex text file
66 0   string @phdthesis{        BibTex text file
67 0   string @techreport{       BibTex text file
68 0   string @unpublished{      BibTex text file
69
70 0   string @Article{          BibTex text file
71 0   string @Book{             BibTex text file
72 0   string @Inbook{           BibTex text file
73 0   string @Incollection{     BibTex text file
74 0   string @Inproceedings{    BibTex text file
75 0   string @Manual{           BibTex text file
76 0   string @Misc{             BibTex text file
77 0   string @Preamble{         BibTex text file
78 0   string @Phdthesis{        BibTex text file
79 0   string @Techreport{       BibTex text file
80 0   string @Unpublished{      BibTex text file
81
82 0   string @ARTICLE{          BibTex text file
83 0   string @BOOK{             BibTex text file
84 0   string @INBOOK{           BibTex text file
85 0   string @INCOLLECTION{     BibTex text file
86 0   string @INPROCEEDINGS{    BibTex text file
87 0   string @MANUAL{           BibTex text file
88 0   string @MISC{             BibTex text file
89 0   string @PREAMBLE{         BibTex text file
90 0   string @PHDTHESIS{        BibTex text file
91 0   string @TECHREPORT{       BibTex text file
92 0   string @UNPUBLISHED{      BibTex text file
93
94 73  string %%%\ \ BibTeX-file{ BibTex text file (with full header)
95
96 73  string %%%\ \ @BibTeX-style-file{   BibTeX style text file (with full header)
97
98 0   string %\ BibTeX\ standard\ bibliography\      BibTeX standard bibliography style text file
99
100 0   string %\ BibTeX\ `     BibTeX custom bibliography style text file
101
102 0   string  @c\ @mapfile{   TeX font aliases text file
103