Interactivity on LaTeX2Web: part 1
Fran?ois Chaplais, PhD
Founder of WebMagic | Bring LaTeX to the Web | Spread knowledge | Promote STEM
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 in currently in beta, but it supports line breaking in equations, which can be very 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.
Client-server interactions
This will be the subject of future posts.