{"success":true,"data":{"ext":"tex","name":"TEX","description":"TeX is a document preparation and typesetting language developed by Donald E. Knuth and maintained through the wider TeX community. It is used to produce scientific papers, books, technical reports, and documents containing complex mathematical notation, with applications such as LaTeX workflows and academic publishing. TeX files are generally safe as plain text, though malformed input can cause formatting issues during compilation.","mime":["application/x-tex"],"risk_level":"Safe","signatures":[{"hex":"5C 69 6E 70 75 74","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 73 65 63 74 69 6F 6E","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 73 65 74 6C 65 6E 67 74 68","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 64 6F 63 75 6D 65 6E 74 73 74 79 6C 65","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 63 68 61 70 74 65 72","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 64 6F 63 75 6D 65 6E 74 63 6C 61 73 73","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 72 65 6C 61 78","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]},{"hex":"5C 63 6F 6E 74 65 6E 74 73 6C 69 6E 65","offset":0,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["texi","texinfo"],"usage":{"python":"def is_tex(file_path: str) -> bool:\n    \"\"\"Check if file is a valid TEX by magic bytes.\"\"\"\n    signature = bytes([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74])\n    with open(file_path, \"rb\") as f:\n        return f.read(6) == signature","node":"function isTEX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74]);\n  return buffer.subarray(0, 6).equals(signature);\n}","go":"func IsTEX(data []byte) bool {\n    signature := []byte{0x5C, 0x69, 0x6E, 0x70, 0x75, 0x74}\n    if len(data) < 6 {\n        return false\n    }\n    return bytes.Equal(data[:6], signature)\n}"}}}