GNU TeXmacsUser manualReferenceAboutEnglish
TeXmacs in the browser

TeXmacs Upsilon, an enhanced and bleeding-edge version of TeXmacs with experimental features, also runs in a page of a web browser. It is the same TeXmacs, compiled to WebAssembly, with a new interface, Vue, which draws the menus, the tool bars and the dialogs itself. Nothing is installed on your computer, and nothing you write is sent anywhere: the documents stay in the browser, on your computer, until you save a copy of them.

This page describes what is different from the desktop program, and what does not work yet.

1.Windows, tabs and dialogs

A web page has a single window. The windows of TeXmacs are therefore the tabs in the column at the left of the page: one per document, with its name, a dot when it has unsaved changes, a cross to close it, and New window after the last one, for a new document. A tab is moved to another place by dragging it; when the tabs do not fit, chevrons above and below them scroll them. Its right edge changes its width (a double click gives the usual width back); dragged far enough to the left, it folds the column, and dragged back, it opens it again. The chevron at the bottom of the column folds it, to leave more room to the document: the column then keeps the logo and small tabs with the initials of the windows; under the mouse, a small tab grows into a whole one, with the name of its window and a cross to close it; the browser remembers it. The dialogs of TeXmacs float over the page, and can be moved by their title bar and resized by their edges.

Closing or reloading the page while documents have unsaved changes: the browser asks first (in its own words). Safari on the iPhone and the iPad never asks.

The Upsilon button at the top left of the page opens a menu of the page itself: the version of TeXmacs, the state of its files and the storage they use, Files in this browser…, Save a backup and Restore a backup… (see below), Reload, Reset… (which deletes your files and preferences), and Remove from this browser…. Its panel also has more information and the options of the address of the page (see below).

2.What works in the page

Editing and typesetting work as in the desktop program, with the menus, the dialogs and the side tools, and also:

Help\(\rightarrow\)Upsilon features describes what this version of TeXmacs adds to the official one, in the browser and on the desktop.

3.Your files

Your documents are kept in the storage of the browser, for this site only. File\(\rightarrow\)Files in this browser… shows them:

Backups

What the browser keeps is lost when its data for this site are cleared, and it is not seen by another browser or another computer. In the menu of Upsilon, Save a backup saves on your computer a zip archive of all of it: your documents and your .TeXmacs folder, with your preferences, your own styles and the wallet (which stays encrypted: its passphrase opens it). A document which is not saved is not in it: save your documents first.

Save a backup and Restore a backup… are buttons of File\(\rightarrow\)Files in this browser… too.

Restore a backup…, in the same menu, takes such an archive, in this browser or in another one: after a confirmation, its files replace the files of the same name, the others stay (use Reset… first for an exact copy), and TeXmacs starts again with them. The passphrase of the wallet opens it everywhere; a passkey added to it may not be there in another browser.

How long the browser keeps them

At the first save of a file, TeXmacs asks the browser to keep the files of the site (persistent storage). Firefox asks you, Chrome decides by itself (from how you use the site: a bookmark, an installed application…), and Safari grants it mostly to a web application added to the Home Screen. When the browser agrees, it keeps the files until you clear the data of the site; otherwise it may delete them when it needs space.

The line at the top of File\(\rightarrow\)Files in this browser… says which: Kept until you clear the data of this site, or The browser may delete these files. It gives the date of your last backup (or never), with a Back up button. When your files have had no backup for seven days (or none at all), a short reminder at the bottom of the page says so, at most once a day, with the same button; there is none while you have no documents.

Warning. Clearing the data of the site deletes your files, and so does clearing the history of Safari by hand, which removes the data of the sites too. Safari also deletes the data of a site after seven days of its use without a visit to the site (a web application added to the Home Screen counts only the days it is used). Save a copy of the documents you want to keep, or save a backup now and then: the date of the last one is in the Files panel.

Several tabs

TeXmacs Upsilon may be open in several tabs of the browser: each of them keeps the documents it saves, and the others see the new version. Your preferences (the .TeXmacs folder) are kept by one tab at a time: when TeXmacs Upsilon is already open in another tab, a new tab says so; Use TeXmacs here moves the preferences to it (the other tab keeps its last changes first). When the tab which has them is closed, the others offer to reload. Two tabs which save the same document overwrite each other: the last one saved stays.

4.Passwords and keys: the wallet

The wallet of TeXmacs keeps passwords and keys (the keys of the services of artificial intelligence, the passwords of TeXmacs servers) encrypted. In the browser it is encrypted by the browser itself, and opened with a passphrase or with a passkey: Edit\(\rightarrow\)Preferences, tab Security.

While the wallet is on, the code which runs in the page (a JavaScript session for instance) could read what it holds: only run code which you trust.

5.Keyboard, clipboard and printing

TeXmacs keeps its usual keyboard shortcuts, but the browser keeps some for itself (a new window, a new tab, closing a tab, reloading the page): use the menus of TeXmacs, or the + of the tabs, for those. On a Mac, they use the command key, as those of the browser: ⌘C, ⌘X and ⌘V copy, cut and paste. The keys which compose (dead keys, the accents of a Mac, the input methods of Chinese or Japanese) work as in the other programs.

Copy, cut and paste go through the clipboard of the system, so that text can be exchanged with the other programs; a copy made in TeXmacs keeps its structure when it is pasted back into TeXmacs. The browser lets a page read its clipboard only when a key pastes, so that Edit\(\rightarrow\)Paste pastes the last copy or paste of TeXmacs; use Edit\(\rightarrow\)Paste from browser… for what was copied in another page or program since: it opens a small dialog, in which ⌘V (or its button) pastes.

In the same way, some browsers (Safari) let a page write its clipboard only during a key or a click: ⌘C and ⌘X always copy for the other programs, but a copy from a menu (Edit\(\rightarrow\)Copy, the formats of Edit\(\rightarrow\)Copy to) opens a small dialog, Copy for other programs, whose button gives it to them.

File\(\rightarrow\)Print makes a PDF of the document and opens it in a new tab of the browser, from which it can be printed or saved.

6.Loading and fonts

The first visit loads about 11 MB before TeXmacs starts, and about 9 MB more in the background while you work (the section This build below gives the size of each part). The fonts of the first screen come with the files needed to start; the other fonts which come with TeXmacs are loaded one by one, the first time a document uses them, and a font which failed to load is tried again in the background. All of it is kept by the browser: the next visits load nothing.

Only the fonts which come with TeXmacs are available: a web page cannot see the fonts installed on your computer.

7.Opening a document from the web

A link to the page can open a document published on the web, which makes the page a viewer of TeXmacs documents:

https://mgubi.github.io/texmacs/texmacs.html?open=https://example.org/paper.tm

Any format TeXmacs opens will do (.tm, .tex, .html, .md…). The site of the document has to allow other pages to read it, and the images the document refers to are not fetched with it. Other options of the address run Scheme commands (the page asks before running them) or show debugging messages: see the options of the address in the Upsilon menu.

8.What does not work

9.Reporting problems

TeXmacs Upsilon is experimental. A problem which does not happen with the TeXmacs you install on your computer is a problem of this port: please report it on the issue page of the port, not to the TeXmacs project. The sources and the notes of the port are on GitHub.

10.Recent changes

The additions to TeXmacs Upsilon, the newest first.

21 November 2026
19 November 2026
9 November 2026
8 November 2026
31 October 2026
28 October 2026
27 October 2026
26 October 2026
23 October 2026
22 October 2026
21 October 2026
20 October 2026
19 October 2026
18 October 2026
17 October 2026
15 October 2026
14 October 2026
13 October 2026
9 October 2026
8 October 2026
7 October 2026
6 October 2026
5 October 2026
4 October 2026
3 October 2026
2 October 2026
1 October 2026
30 September 2026
29 September 2026
28 September 2026
27 September 2026
26 September 2026
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".