LaTex2Web logo

Documents Live, a web authoring and publishing system

If you see this, something is wrong

Table of contents

First published on Friday, Aug 29, 2025 and last modified on Friday, Aug 29, 2025

Using the tutorial document

François Chaplais

1 Introduction

The tutorial document is a document template that is available to all registered users. To work with the tutorial document,select Start from a sample document… in the Help menu. Then you are presented a list of available templates. Click on the Use button at the right of “Tutorial document”.

You will be prompted to

  • choose a title for the document
  • select the number of authors.

You can keep the number of authors to one. The title must be unique in the LaTeX2Web site, so it may be wise to customize it with your name. Once this done, you will be re-directed to your dashboard. Your tutorial document will be marked as a draft, which is fine.

From the action menu next to the tutorial title, select Compile. The sample document will be compiled to a web page and your will be re-directed to this web page.

The next thing to do is to open your dashboard in a new tab, and, next to the tutorial document title, select Edit source from the action menu. This way, you will have in this tab the document source code, and in the other one its web render.

The workflow is then the following

  • edit the source code and save it
  • in the web view, select Compile in the View menu to see the result.

2 The source code editor

We have a whole tutorial on the source code editor in the LaTeX2Web online help. Here is an excerpt about the editor toolbar.

2.1 The toolbar

The left part is devoted to the search and replace operations. At its right is a collection of LaTeX-related editing buttons.

2.1.1 Search and replace

The input field on the left is where you enter the string you are looking for. The search is case-sensitive. To launch the search, click on the magnifier icon next to it. Pressing the enter/return key will not initiate the search. Actually, the keyboard action is first intercepted by the browser which, in this case, will reload the page. Doing so would lose your unsaved changes.

When you have found your first match, hit Ctrl-K (Windows/Linux) or Command-G (Mac) to search for the next occurence.

At the right of the replace field are two search and replace buttons. The first one will do a single search and replace operation. Hitting it repeatedly will repeat the process for the next occurences. The second button performs a global search and replace.

2.1.2 LaTeX tools

Here is a quick description of the LaTeX related dropdown menus, as seen in figure 1.

  • This dropdown menu lets you insert a sectioning command. If some text was selected before performing the action, it will be used as the parameter of the sectioning command, i.e., the section title. This is a general behavior (when applicable) of the LaTeX editor actions.
  • This lets you style the selected text.
  • gives you access to some common LaTeX commands.
  • gives you access to some common LaTeX environments.
  • gives access to LaTeX2Web specific commands. The environment action creates an environment whose name is the selected text. For instance, to create a verbatim environment, type verbatim in the editor, select the word, and use the environment action on it.

2.1.2.1 Keyboard shortcuts

Keyboard shortcuts are available in all of LaTeX editors. Make sure you are editing code, or the shortcut may have undesirable results. Most of the shortcuts apply to the selection, if any. Here is a list.

Ctrl/Cmd Minserts \item
Ctrl/Cmd Linserts/makes a label
Ctrl/Cmd Rinserts/makes a reference
Ctrl/Cmd Iapplies italic style
Ctrl/Cmd Bapplies bold style
Ctrl/Cmd Emakes an environment out of the selection

2.1.2.2 Editor help

The question mark reveals help for the editor.