{"success":true,"data":{"ext":"latex","name":"LATEX","description":"LaTeX is a document preparation system and markup language originally developed by Leslie Lamport and now maintained as part of the LaTeX Project. It is used to create scientific articles, theses, books, presentations, and other technical documents, especially where complex formulas, citations, and cross-references are required. LaTeX source files are plain text and generally safe, though they may reference external packages or auxiliary files; the format is still widely used rather than obsolete.","mime":["application/x-latex"],"risk_level":"Safe","signatures":[{"hex":"25 20 2D 2A 2D 6C 61 74 65 78 2D 2A 2D","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":[],"usage":{"python":"def is_latex(file_path: str) -> bool:\n    \"\"\"Check if file is a valid LATEX by magic bytes.\"\"\"\n    signature = bytes([0x25, 0x20, 0x2D, 0x2A, 0x2D, 0x6C, 0x61, 0x74, 0x65, 0x78, 0x2D, 0x2A, 0x2D])\n    with open(file_path, \"rb\") as f:\n        return f.read(13) == signature","node":"function isLATEX(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x25, 0x20, 0x2D, 0x2A, 0x2D, 0x6C, 0x61, 0x74, 0x65, 0x78, 0x2D, 0x2A, 0x2D]);\n  return buffer.subarray(0, 13).equals(signature);\n}","go":"func IsLATEX(data []byte) bool {\n    signature := []byte{0x25, 0x20, 0x2D, 0x2A, 0x2D, 0x6C, 0x61, 0x74, 0x65, 0x78, 0x2D, 0x2A, 0x2D}\n    if len(data) < 13 {\n        return false\n    }\n    return bytes.Equal(data[:13], signature)\n}"}}}