\usepackage{integrations}
Intégrese en cualquier pila.
FormaTeX es una API HTTP sencilla. Si su lenguaje puede hacer una solicitud POST, puede compilar LaTeX. Aquí hay ejemplos listos para usar para las pilas más comunes.
\env
bash
# .env
FORMATEX_API_URL=https://api.formatex.io
FORMATEX_API_KEY=fex_... # from your dashboardnpm SDK
formatex · Node.js · Bun · Deno
\install
bash
npm install formatex-sdkcompile.ts
import { writeFileSync } from "node:fs";
import { FormaTexClient } from "formatex-sdk";
const client = new FormaTexClient(process.env.FORMATEX_API_KEY!);
const latex = `
\\documentclass{article}
\\begin{document}
Hello, FormaTeX!
\\end{document}`;
const result = await client.compile(latex);
writeFileSync("output.pdf", result.pdf);\env
bash
# .env
FORMATEX_API_URL=https://api.formatex.io
FORMATEX_API_KEY=fex_... # from your dashboard\and{y más}
Cualquier lenguaje. Cualquier entorno de ejecución.
FormaTeX es HTTP sencillo con JSON. Si corre en un servidor y puede hacer una solicitud POST, funciona.
RustJavaKotlinSwiftC#ElixirHaskellScalaDartLuaJuliaRMATLAB

