tex revision 284194
1285612Sdelphij 2132451Sroberto#------------------------------------------------------------------------------ 354359Sroberto# $File: tex,v 1.20 2014/03/16 02:53:03 christos Exp $ 4285612Sdelphij# tex: file(1) magic for TeX files 5285612Sdelphij# 654359Sroberto# XXX - needs byte-endian stuff (big-endian and little-endian DVI?) 754359Sroberto# 854359Sroberto# From <conklin@talisman.kaleida.com> 954359Sroberto 1054359Sroberto# Although we may know the offset of certain text fields in TeX DVI 1154359Sroberto# and font files, we can't use them reliably because they are not 1254359Sroberto# zero terminated. [but we do anyway, christos] 1354359Sroberto0 string \367\002 TeX DVI file 1454359Sroberto!:mime application/x-dvi 15106163Sroberto>16 string >\0 (%s) 16106163Sroberto0 string \367\203 TeX generic font data 17285612Sdelphij0 string \367\131 TeX packed font data 18285612Sdelphij>3 string >\0 (%s) 19285612Sdelphij0 string \367\312 TeX virtual font data 20285612Sdelphij0 search/1 This\ is\ TeX, TeX transcript text 21285612Sdelphij0 search/1 This\ is\ METAFONT, METAFONT transcript text 2254359Sroberto 23285612Sdelphij# There is no way to detect TeX Font Metric (*.tfm) files without 24285612Sdelphij# breaking them apart and reading the data. The following patterns 25285612Sdelphij# match most *.tfm files generated by METAFONT or afm2tfm. 26285612Sdelphij2 string \000\021 TeX font metric data 27285612Sdelphij!:mime application/x-tex-tfm 28285612Sdelphij>33 string >\0 (%s) 29285612Sdelphij2 string \000\022 TeX font metric data 30285612Sdelphij!:mime application/x-tex-tfm 31285612Sdelphij>33 string >\0 (%s) 32285612Sdelphij 33285612Sdelphij# Texinfo and GNU Info, from Daniel Quinlan (quinlan@yggdrasil.com) 34285612Sdelphij0 search/1 \\input\ texinfo Texinfo source text 35285612Sdelphij!:mime text/x-texinfo 36285612Sdelphij0 search/1 This\ is\ Info\ file GNU Info text 37285612Sdelphij!:mime text/x-info 38285612Sdelphij 39285612Sdelphij# TeX documents, from Daniel Quinlan (quinlan@yggdrasil.com) 40285612Sdelphij0 search/4096 \\input TeX document text 41285612Sdelphij!:mime text/x-tex 42285612Sdelphij!:strength + 15 43285612Sdelphij0 search/4096 \\begin LaTeX document text 44285612Sdelphij!:mime text/x-tex 45285612Sdelphij!:strength + 15 46285612Sdelphij0 search/4096 \\section LaTeX document text 47285612Sdelphij!:mime text/x-tex 48285612Sdelphij!:strength + 18 49285612Sdelphij0 search/4096 \\setlength LaTeX document text 50285612Sdelphij!:mime text/x-tex 51285612Sdelphij!:strength + 15 52285612Sdelphij0 search/4096 \\documentstyle LaTeX document text 53285612Sdelphij!:mime text/x-tex 54285612Sdelphij!:strength + 18 55285612Sdelphij0 search/4096 \\chapter LaTeX document text 56285612Sdelphij!:mime text/x-tex 57285612Sdelphij!:strength + 18 58285612Sdelphij0 search/4096 \\documentclass LaTeX 2e document text 59285612Sdelphij!:mime text/x-tex 60285612Sdelphij!:strength + 15 61285612Sdelphij0 search/4096 \\relax LaTeX auxiliary file 62285612Sdelphij!:mime text/x-tex 63285612Sdelphij!:strength + 15 64285612Sdelphij0 search/4096 \\contentsline LaTeX table of contents 65285612Sdelphij!:mime text/x-tex 66285612Sdelphij!:strength + 15 67285612Sdelphij0 search/4096 %\ -*-latex-*- LaTeX document text 68285612Sdelphij!:mime text/x-tex 69285612Sdelphij 70285612Sdelphij# Tex document, from Hendrik Scholz <hendrik@scholz.net> 71285612Sdelphij0 search/1 \\ifx TeX document text 72285612Sdelphij 73285612Sdelphij# Index and glossary files 74285612Sdelphij0 search/4096 \\indexentry LaTeX raw index file 75285612Sdelphij0 search/4096 \\begin{theindex} LaTeX sorted index 76285612Sdelphij0 search/4096 \\glossaryentry LaTeX raw glossary 77285612Sdelphij0 search/4096 \\begin{theglossary} LaTeX sorted glossary 7854359Sroberto0 search/4096 This\ is\ makeindex Makeindex log file 79200576Sroberto 8054359Sroberto# End of TeX 81200576Sroberto 82132451Sroberto#------------------------------------------------------------------------------ 83132451Sroberto# file(1) magic for BibTex text files 84132451Sroberto# From Hendrik Scholz <hendrik@scholz.net> 85132451Sroberto 8682498Sroberto0 search/1/c @article{ BibTeX text file 87132451Sroberto0 search/1/c @book{ BibTeX text file 8854359Sroberto0 search/1/c @inbook{ BibTeX text file 8954359Sroberto0 search/1/c @incollection{ BibTeX text file 9054359Sroberto0 search/1/c @inproceedings{ BibTeX text file 9154359Sroberto0 search/1/c @manual{ BibTeX text file 9254359Sroberto0 search/1/c @misc{ BibTeX text file 9354359Sroberto0 search/1/c @preamble{ BibTeX text file 9454359Sroberto0 search/1/c @phdthesis{ BibTeX text file 9554359Sroberto0 search/1/c @techreport{ BibTeX text file 96182007Sroberto0 search/1/c @unpublished{ BibTeX text file 97182007Sroberto 98285612Sdelphij73 search/1 %%%\ \ BibTeX-file{ BibTex text file (with full header) 99285612Sdelphij 100285612Sdelphij73 search/1 %%%\ \ @BibTeX-style-file{ BibTeX style text file (with full header) 101182007Sroberto 102182007Sroberto0 search/1 %\ BibTeX\ standard\ bibliography\ BibTeX standard bibliography style text file 103285612Sdelphij 104285612Sdelphij0 search/1 %\ BibTeX\ ` BibTeX custom bibliography style text file 105285612Sdelphij 106285612Sdelphij0 search/1 @c\ @mapfile{ TeX font aliases text file 107285612Sdelphij 108285612Sdelphij0 string #LyX LyX document text 109285612Sdelphij 110285612Sdelphij# ConTeXt documents 111285612Sdelphij# http://wiki.contextgarden.net/ 112285612Sdelphij0 search/4096 \\setupcolors[ ConTeXt document text 113330567Sgordon!:strength + 15 114285612Sdelphij0 search/4096 \\definecolor[ ConTeXt document text 115285612Sdelphij!:strength + 15 116285612Sdelphij0 search/4096 \\setupinteraction[ ConTeXt document text 117285612Sdelphij!:strength + 15 118285612Sdelphij0 search/4096 \\useURL[ ConTeXt document text 119285612Sdelphij!:strength + 15 120285612Sdelphij0 search/4096 \\setuppapersize[ ConTeXt document text 121285612Sdelphij!:strength + 15 122316722Sdelphij0 search/4096 \\setuplayout[ ConTeXt document text 123285612Sdelphij!:strength + 15 124285612Sdelphij0 search/4096 \\setupfooter[ ConTeXt document text 125285612Sdelphij!:strength + 15 126285612Sdelphij0 search/4096 \\setupfootertexts[ ConTeXt document text 127285612Sdelphij!:strength + 15 128285612Sdelphij0 search/4096 \\setuppagenumbering[ ConTeXt document text 129285612Sdelphij!:strength + 15 130285612Sdelphij0 search/4096 \\setupbodyfont[ ConTeXt document text 131289997Sglebius!:strength + 15 132285612Sdelphij0 search/4096 \\setuphead[ ConTeXt document text 133285612Sdelphij!:strength + 15 134285612Sdelphij0 search/4096 \\setupitemize[ ConTeXt document text 135285612Sdelphij!:strength + 15 136285612Sdelphij0 search/4096 \\setupwhitespace[ ConTeXt document text 137285612Sdelphij!:strength + 15 138285612Sdelphij0 search/4096 \\setupindenting[ ConTeXt document text 139285612Sdelphij!:strength + 15 140285612Sdelphij