If you see this, something is wrong
To get acquainted with the document, the best thing to do is to select the "Collapse all sections" item from the "View" menu. This will leave visible only the titles of the top-level sections.
Clicking on a section title toggles the visibility of the section content. If you have collapsed all of the sections, this will let you discover the document progressively, from the top-level sections to the lower-level ones.
Generally speaking, anything that is blue is clickable.
Clicking on a reference link (like an equation number, for instance) will display the reference as close as possible, without breaking the layout. Clicking on the displayed content or on the reference link hides the content. This is recursive: if the content includes a reference, clicking on it will have the same effect. These "links" are not necessarily numbers, as it is possible in LaTeX2Web to use full text for a reference.
Clicking on a bibliographical reference (i.e., a number within brackets) will display the reference.
Speech bubbles indicate a footnote. Click on the bubble to reveal the footnote (there is no page in a web document, so footnotes are placed inside the text flow). Acronyms work the same way as footnotes, except that you have the acronym instead of the speech bubble.
By default, discussions are open in a document. Click on the discussion button below to reveal the discussion thread. However, you must be registered to participate in the discussion.
If a thread has been initialized, you can reply to it. Any modification to any comment, or a reply to it, in the discussion is signified by email to the owner of the document and to the author of the comment.
First published on Saturday, Aug 16, 2025 and last modified on Monday, Jan 12, 2026 by François Chaplais.
Besides ordinary running text, you can also insert media in your document flow. This lesson details what type of media can be used in your document, and how to upload media files.
Images are inserted in a document by using the \includegraphics command.
PDF images are not handled natively in HTML 5, which means, in practice, that PDF illustrations cannot be inserted into the flow of a web page. The same applies to EPS files.
The only supported vector file format in HTML 5 is SVG. Here is a sample SVG illustration.
LaTeX2Web supports the following file formats:
Animated GIFs also work. Here is a JPG photo (which has been compressed before upload).
And an animated GIF.
The previous images are all embeded in a figure object, which has many nice properties and can have a caption. Figures can be expanded to fill the browser windown by clicking on the icon. Here is the structure of the code.
\begin{figure}
\includegraphics{path or url of the image}
\caption{the figure caption}
\end{figure}
You can place multiple images in a grid. To do so, simply use several \includegraphics commands in the body of the figure environment.
To obtain something more elaborate, you can use the subfigure environment several times inside the figure. Let us have a look at the code.
\begin{figure}
\caption{Observe how the grid behaves when resizing the browser window.}
\begin{subfigure}
\includegraphics{4600_8-02.svg}
\caption{A cute space cat}
\end{subfigure}
\begin{subfigure}
\includegraphics{cute-cat-with-blue-eyes-2024-10-14-17-06-59-utc.jpg}
\caption{Cuteness overload}
\end{subfigure}
\begin{subfigure}
\includegraphics{mlvseq9yvZhba.gif}
\caption{Not ALL cats are cute}
\end{subfigure}
\end{figure}Here is the result.
Image can be used as links. This image leads to the LaTeX2Web home page.
Here is the code.
\begin{imageLink}
\url{https://latex2web.app/}
\imageUrl{house.jpg}
\alt{link to LaTeX2Web home page}
\caption{Click on this image to go to the LaTeX2Web home page}
\end{imageLink}LaTeX2Web supports four kinds of video:
Here is an mp4 example with the code below.
\begin{video}
\url{father-with-son-cooking-together-1080p-2025-08-05-01-59-33-utc.mp4}
\theme{fantasy}
\end{video}
If specified, a theme can be applied to the viseo player. For backward compatibility, you can specify one of the four keyword as a argument for the command: city, fantasy, forest and sea.
In general, the argument for the \theme command should a comma separated list of two values: a standard HTML color , and a valid CSS size. For instance, the following YouTube video uses the following command
\theme{red, 24}This means that the theme color will be set to red, and the controls will be sized at a value of 24px.
Here is the YouTube example.
Video 1. A YouTube video featuring the LaTeX2Web Inline Editor
Here is the code.
\begin{video}
\theme{red, 24}
\url{ElDRYDgSUO0}
\type{youtube}
\caption{A YouTube video featuring the LaTeX2Web Inline Editor}
\end{video}You can also add an interactive transcript of the video! When you click somewhere in the transcript, the video is brought to the corresponding segment.
For more details on video in LaTeX2Web, see the online help .
Audio in the mp3 format is supported. Here is an example.
Sample audio
Here is the code.
\begin{audio}
\url{path or url of the audio}
\end{audio}In general, it is simpler to host your media along your document. You may already have media available if you have uploaded an existing LaTeX project. You can upload media files to your project at any type.
To do so, go to your dashboard and, from the action menu, select “Upload media”. You are then re-directed to an upload page. You can either upload single media files or a zip archive of such files.
To see (notably) the list of media files for a document, select “Get media info” in the action menu.
Summary 1
In LaTeX2Web, media can be of type image, video or audio. Images in the PDF or EPS formats are not supported.
Images and videos can be expanded, and multiple images can be displayed in a grid.