tex revision 139368
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 400 string %\ -*-latex-*- LaTeX document text 41 42# Tex document, from Hendrik Scholz <hendrik@scholz.net> 430 string \\ifx TeX document text 44 45# Index and glossary files 460 string \\indexentry LaTeX raw index file 470 string \\begin{theindex} LaTeX sorted index 480 string \\glossaryentry LaTeX raw glossary 490 string \\begin{theglossary} LaTeX sorted glossary 500 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 580 string/c @article{ BibTeX text file 590 string/c @book{ BibTeX text file 600 string/c @inbook{ BibTeX text file 610 string/c @incollection{ BibTeX text file 620 string/c @inproceedings{ BibTeX text file 630 string/c @manual{ BibTeX text file 640 string/c @misc{ BibTeX text file 650 string/c @preamble{ BibTeX text file 660 string/c @phdthesis{ BibTeX text file 670 string/c @techreport{ BibTeX text file 680 string/c @unpublished{ BibTeX text file 69 7073 string %%%\ \ BibTeX-file{ BibTex text file (with full header) 71 7273 string %%%\ \ @BibTeX-style-file{ BibTeX style text file (with full header) 73 740 string %\ BibTeX\ standard\ bibliography\ BibTeX standard bibliography style text file 75 760 string %\ BibTeX\ ` BibTeX custom bibliography style text file 77 780 string @c\ @mapfile{ TeX font aliases text file 79 80