Interactive Demo
Try out LaTeX compilation below. Select an engine, configure options, and compile your LaTeX code.
Input
PDF Preview
Compilation Log
Package Management
Loaded Packages (0)
Features
- XeLaTeX: Compile with XeTeX engine + bibtex8 + dvipdfmx
- PdfLaTeX: Compile with PdfTeX engine + bibtex8
- LuaLaTeX: Compile with LuaHBTeX engine + bibtex8
- Multi-file Support: Handle complex projects with multiple .tex and .bib files
- SyncTeX: Generate SyncTeX files for editor synchronization
- Package Management: Search and install LaTeX packages on-demand
- All compilation runs entirely in the browser with no server required
Installation
npm install texlyre-busytex
npx texlyre-busytex download-assetsUsage
import { BusyTexRunner, XeLatex } from 'texlyre-busytex';
const runner = new BusyTexRunner({
busytexBasePath: '/core/busytex'
});
await runner.initialize();
const xelatex = new XeLatex(runner);
const result = await xelatex.compile({
input: '\\documentclass{article}...',
bibtex: true
});
if (result.success && result.pdf) {
const blob = new Blob([result.pdf], { type: 'application/pdf' });
const url = URL.createObjectURL(blob);
window.open(url);
}