LaTeX2Web by François Chaplais

All issues

Interactivity on LaTeX2Web: part 1

Interactivity on LaTeX2Web: part 1

We give some insight on the JavaScript libraries which are used in LaTeX2Web to offer you a rich, interactive experience when reading the documents.


The LaTeX2Web modules

LaTeX2Web has its own library which provides the following functionalities:

Beyond this, there are quite a few controllers that are responsible to manage the requests and responses from the server. More on this in a future post.


Third party libraries

Equations

MathJax renders equations in the browser, with support for AMSmath. The stable version (which is used by default) is version 3. Version 4 is currently in beta, but it supports line breaking in equations, which can be super useful on mobile.


Images

When you click on an image, a bar of control icons are displayed. The use of these buttons are the following


Code editor

All the code editing tasks in LaTeX2Web use the Ace library.


Syntax coloring

The popular highlight.js library is responsible for the syntax coloring of the code blocks in your document.


Notifications

Notifications (which appear notably after LaTeX2Web operations) are managed by the Simple Notify library.


Algorithms

Instead of implementing the various LaTeX algorithm packages by ourselves, we rely on the pseudocode.js library to render the algorithms.


See you soon!

François

Share
Get the next issue in your inbox
Free, and you can unsubscribe any time.

0 comments

More issues

All 4 →
#3 Nov 13, 2024

The ArXiv papers

Read issue →
#2 Oct 28, 2024

Your first contact with LaTeX2Web

Read issue →