LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Collapse and expand sections

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.

Cross-references and related material

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.

Discussions

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.

Publications

The blue button below that says "table of contents" is your tool to navigate in a publication.

The left arrow brings you to the previous document in the publication, and the right one brings you to the next. Both cycle over the publication list.

The middle button that says "table of contents" reveals the publication table of contents. This table is hierarchical structured. It has sections, and sections can be collapsed or expanded. If you are a registered user, you can save the layout of the table of contents.

Table of contents

First published on Tuesday, Dec 3, 2024 and last modified on Monday, Dec 15, 2025

Video

François Chaplais

1 Basics

Video objects can be incorporated in LaTeX2Web.

The videos can be of two types:

  • standalone videos in the mp4 format
  • YouTube videos
  • Vimeo videos
  • Videos delivered by the Mux platform

The syntax is the following:

\begin{video}\label{}
\url{the URL to your video}
\caption{}
\type{}
\theme{}
\end{video}

Note: the previous \height command is deprecated. It will not break your document, but it will have no effect.

If the label is specified, there will be a number attached to the video. caption works like for images or tables.

If the type is not specified, it defaults to mp4. The other type are youtube, vimeo and mux.

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.

\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.

To use a pure HTML 5 video player, omit the \theme and the \type commands.

2 YouTube videos

To render a YouTube video, you must specify the youtube type, and give as an argument of the \url command the code that you can fetch when you are on YouTube and want to share the video. Let me explain the with a screenshot.

Here the link is https://youtu.be/uykQe2l7cXc?si=3n55NW5ffVwqHEbv.

Select the code that stands between a slash and a question mark. Here it is uykQe2l7cXc. Provide this ID in the \url command of your video, and your document will display the corresponding YouTube video.

The result is below.

3 Vimeo videos

The configuration for Vimeo videos is similar to what has been explained for YouTube. Give vimeo as type, and get the link vor the video. Here is an example

https://vimeo.com/1144110111?share=copy&fl=sv&fe=ci

Select the ID that stands between a slash and the question mark and provide it as a URL for the video. Here is the result.

4 Mux videos

To display a video hosted by mux , select mux as the video type, and provide as a URL the complete link to the Mux video. The link must end with the m3u8 suffix. Here is an example:

https://stream.mux.com/a1r1sgxcBJI902avWpkNUGVdv2ukUfNtZ6ndsmEsX8Ug.m3u8

and here is the corresponding video.

5 Videos with subtitles

Vidéos subtitles can be stored in text files with the .srt extension. The text file is a list of subtitle entries with two components: the time stamp of the subtitle in the video, and the subtitle itself. You can edit the subtitles to fix transcription errors.

In the video declaration, you can add a \srt command which specifies the name of the subtitle file that you have uploaded to your LaTeX2Web project. When the subtitles are provided, LaTeX2Web provides a transcript component to the video. This component features the text of the subtitles with some extra LaTeX2Web magic: when you click on some subtitle text, the video is moved directly to the place where the caption stands.

This way, you can combine the speed of text reading with the extra video experience.

Here is an example with the following code.

\begin{video}
\theme{red, 24}
\url{Inline Editor Quick 2.mp4}
\poster{Inline Editor Quick 2-Miniature.jpg}
\srt{DepuislemenuView.srt}
\end{video}

And here is the result.