1# $OpenBSD: tex,v 1.4 2008/05/08 01:40:57 chl Exp $ 2 3#------------------------------------------------------------------------------ 4# tex: file(1) magic for TeX files 5# 6# From <conklin@talisman.kaleida.com> 7 8# Although we may know the offset of certain text fields in TeX DVI 9# and font files, we can't use them reliably because they are not 10# zero terminated. [but we do anyway, christos] 110 string \367\002 TeX DVI file 12>16 string >\0 (%s) 130 string \367\203 TeX generic font data 140 string \367\131 TeX packed font data 15>3 string >\0 (%s) 160 string \367\312 TeX virtual font data 170 string This\ is\ TeX, TeX transcript text 180 string This\ is\ METAFONT, METAFONT transcript text 19 20# There is no way to detect TeX Font Metric (*.tfm) files without 21# breaking them apart and reading the data. The following patterns 22# match most *.tfm files generated by METAFONT or afm2tfm. 232 string \000\021 TeX font metric data 24>33 string >\0 (%s) 252 string \000\022 TeX font metric data 26>33 string >\0 (%s) 27 28# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com) 290 string \\input\ texinfo Texinfo source text 300 string This\ is\ Info\ file GNU Info text 31 32# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com) 330 search/400 \\input TeX document text 340 search/400 \\section LaTeX document text 350 search/400 \\setlength LaTeX document text 360 search/400 \\documentstyle LaTeX document text 370 search/400 \\chapter LaTeX document text 380 search/400 \\documentclass LaTeX 2e document text 390 search/400 \\relax LaTeX auxiliary file 400 search/400 \\contentsline LaTeX table of contents 410 search/400 %\ -*-latex-*- LaTeX document text 42 43# Tex document, from Hendrik Scholz <hendrik@scholz.net> 440 string \\ifx TeX document text 45 46# Index and glossary files 470 search/400 \\indexentry LaTeX raw index file 480 search/400 \\begin{theindex} LaTeX sorted index 490 search/400 \\glossaryentry LaTeX raw glossary 500 search/400 \\begin{theglossary} LaTeX sorted glossary 510 search/400 This\ is\ makeindex Makeindex log file 52 53# End of TeX 54 55#------------------------------------------------------------------------------ 56# file(1) magic for BibTex text files 57# From Hendrik Scholz <hendrik@scholz.net> 58 590 string/c @article{ BibTeX text file 600 string/c @book{ BibTeX text file 610 string/c @inbook{ BibTeX text file 620 string/c @incollection{ BibTeX text file 630 string/c @inproceedings{ BibTeX text file 640 string/c @manual{ BibTeX text file 650 string/c @misc{ BibTeX text file 660 string/c @preamble{ BibTeX text file 670 string/c @phdthesis{ BibTeX text file 680 string/c @techreport{ BibTeX text file 690 string/c @unpublished{ BibTeX text file 70 7173 string %%%\ \ BibTeX-file{ BibTex text file (with full header) 72 7373 string %%%\ \ @BibTeX-style-file{ BibTeX style text file (with full header) 74 750 string %\ BibTeX\ standard\ bibliography\ BibTeX standard bibliography style text file 76 770 string %\ BibTeX\ ` BibTeX custom bibliography style text file 78 790 string @c\ @mapfile{ TeX font aliases text file 80 81