NetBSD/usr.bin/file/magdir/tex

37 lines
1.4 KiB
Plaintext
Raw Normal View History

1995-03-26 01:35:28 +03:00
#------------------------------------------------------------------------------
# tex: file(1) magic for TeX files
#
# From <conklin@talisman.kaleida.com>
1995-03-26 01:35:28 +03:00
# Although we may know the offset of certain text fields in TeX DVI
# and font files, we can't use them reliably because they are not
# zero terminated. [but we do anyway, christos]
0 string \367\002 TeX DVI file
1995-03-26 01:35:28 +03:00
>16 string >\0 (%s)
0 string \367\203 TeX generic font data
0 string \367\131 TeX packed font data
1995-03-26 01:35:28 +03:00
>3 string >\0 (%s)
0 string \367\312 TeX virtual font data
1995-03-26 01:35:28 +03:00
0 string This\ is\ TeX, TeX transcript text
0 string This\ is\ METAFONT, METAFONT transcript text
1995-03-26 01:35:28 +03:00
# There is no way to detect TeX Font Metric (*.tfm) files without
# breaking them apart and reading the data. The following patterns
# match most *.tfm files generated by METAFONT or afm2tfm.
2 string \000\021 TeX font metric data
>33 string >\0 (%s)
2 string \000\022 TeX font metric data
1995-03-26 01:35:28 +03:00
>33 string >\0 (%s)
# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com)
0 string \\input\ texinfo Texinfo source text
0 string This\ is\ Info\ file GNU Info text
# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com)
0 string \\input TeX document text
0 string \\section LaTeX document text
0 string \\setlength LaTeX document text
0 string \\documentstyle LaTeX document text
0 string \\chapter LaTeX document text