Skip to content

rossprogram/tex.rossprogram.org

Repository files navigation

This is a live demo of the JavaScript-based TeX compiler and DVI viewer discussed in:

J. Fowler, Both TEX and DVI viewers inside the web browser, TUGboat, Volume 40 (2019), No. 1.

In particular, it uses web2js to compile Knuth's Pascal TeX source into WebAssembly, which can then be run in a WebWorker in the browser. The texmf hierarchy from TexLive is also served on a web endpoint, and the WebAssembly is instrumented with asyncify so TeX can be interrupted while waiting for files to be fetched from the network. Finally dvi2html is used to convert the resulting dvi into HTML, and an SVG driver is used to support TikZ as well.

The real-time collaborative features are made possible by ShareDB, and the Ace Editor is used with its TeX language support.

Running development version

Deploy the frontend via yarn run start and the backend via node server/index.js.

About

A real-time collaborative TeX editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published