# Local compiler attribution and sources

Latexify uses the original BusyTeX project, not TeXlyre or its AGPL fork.

Source: https://github.com/busytex/busytex/tree/4499aa69fd3cf77ad86a47287d9a5193cf5ad993
Pinned release: https://github.com/busytex/busytex/releases/tag/build_wasm_4499aa69fd3cf77ad86a47287d9a5193cf5ad993_7936974349_1
Source archive: https://github.com/busytex/busytex/archive/4499aa69fd3cf77ad86a47287d9a5193cf5ad993.tar.gz

The upstream README declares its code and scripts MIT. This does **not** apply
to the compiled binaries: their linked TeX Live components retain their own
copyrights and licenses. No TeXlyre source is included.

Local modifications: the preparation script changes
`Module.callMain(args)` to `Module.callMain(args.slice())` in the MIT pipeline
wrapper. Emscripten mutates that array; copying it prevents repeated pdfLaTeX
passes in a BibTeX compilation from receiving a duplicate executable name.
It also replaces only the final `.tex` extension case-insensitively when
deriving output names and detecting bibliography input, and runs three
pdfLaTeX passes for documents without BibTeX so labels and contents resolve
inside a fresh worker. Source files with uppercase extensions are preserved.
The preparation script verifies both the upstream and modified SHA-256 hashes.
The worker adapter and installer are original Latexify code.

The pinned compiler identifies itself as TeX Live 2023, built with Emscripten
3.1.43. Its source inputs are recorded by the upstream `versions.txt`:

- TeX Live source: https://github.com/TeX-Live/texlive-source/archive/refs/heads/tags/texlive-2023.0.tar.gz
- TeX Live data: https://tug.ctan.org/systems/texlive/Images/texlive2023-20230313.iso
- Expat 2.5.0: https://github.com/libexpat/libexpat/releases/tag/R_2_5_0
- Fontconfig 2.13.96: https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.13.96.tar.gz
- Ubuntu package sources: https://packages.ubuntu.com/lunar/

Runtime copyright notices identify pdfTeX (Han The Thanh et al.) and XeTeX
(SIL International, Jonathan Kew and Khaled Hosny) under their respective
copyright terms and LGPL; LuaHBTeX (Taco Hoekwater and the LuaTeX team),
xdvipdfmx (the DVIPDFMx project team and SIL International), and several
kpathsea utilities under GPL version 2 or later. kpathsea is LGPL 2.1 or later.
TeX fonts/macros/data retain their individual upstream licenses.

See GPL-2.0.txt and LGPL-2.1.txt alongside this notice. Complete component
copyright/license information and corresponding sources are in the source
archives above. TeX Live copying conditions:
https://www.tug.org/texlive/copying.html

Capabilities: pdfLaTeX, included project files and BibTeX with the basic package
set. Packages or native tools not present in the installed set are unavailable;
the compiler does not download them or send project contents to a server.
