tex revision 68349
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]
100	string		\367\002	TeX DVI file
11>16	string		>\0		(%s)
120	string		\367\203	TeX generic font data
130	string		\367\131	TeX packed font data
14>3	string		>\0		(%s)
150	string		\367\312	TeX virtual font data
160	string		This\ is\ TeX,	TeX transcript text
170	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.
222	string		\000\021	TeX font metric data
23>33	string		>\0		(%s)
242	string		\000\022	TeX font metric data
25>33	string		>\0		(%s)
26
27# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
280	string		\\input\ texinfo	Texinfo source text
290	string		This\ is\ Info\ file	GNU Info text
30
31# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
320	string		\\input		TeX document text
330	string		\\section	LaTeX document text
340	string		\\setlength	LaTeX document text
350	string		\\documentstyle	LaTeX document text
360	string		\\chapter	LaTeX document text
370	string		\\documentclass	LaTeX 2e document text
380	string		\\relax		LaTeX auxiliary file
390	string		\\contentsline	LaTeX  table of contents
40
41# Index and glossary files
420	string		\\indexentry	LaTeX raw index file
430	string		\\begin{theindex}	LaTeX sorted index
440	string		\\glossaryentry	LaTeX raw glossary
450	string		\\begin{theglossary}	LaTeX sorted glossary
460	string		This\ is\ makeindex	Makeindex log file
47# End of TeX
48