Plugins
OverviewHTML editors
CKEditor 5 CKEditor 4 TinyMCE 6 and 7 TinyMCE 4 Froala Tiptap AngularCMS and LMS
WordPress Moodle Canvas, Blackboard and LTI BloggerOther
Google Docs and SlidesTiddlyWiki
Developers
Writing your own
Google Docs and Slides
The fxEditor add-on for Google Docs and Google Slides adds Insert equation… to the Extensions menu. It opens the equation editor in a sidebar; press Insert and the equation is placed in your document or slide as an image. Here is the sidebar beside a stand-in document:
Preview. The add-on is not yet listed on the Google Workspace Marketplace.
Deploy your own copy from the add-on folder in the download in
Customise and download, or from its
GitHub repository,
as described below, or contact us. It has not
yet been run end to end in a real Google account: the example above is the sidebar in a stand-in
page, not in Google Docs itself.
Why an image
Docs and Slides have no way for an add-on to insert MathML or live LaTeX: an image is the only form of equation both apps can hold. It is drawn by fxTeX Server as a PNG at the moment you insert it, so the document does not depend on our service afterwards. The equation's LaTeX is kept in the image's alt text, for screen readers. An inserted equation cannot be reopened in the editor: to change one, build it again in the sidebar and insert it in place of the old one.
Deploying it for your organisation
The add-on is an Apps Script project. To deploy your own copy — for example, as an
add-on private to your Google Workspace domain — with Google's clasp tool:
npm install -g @google/clasp
clasp login
cd add-on # from the download below
clasp create --type standalone --title "LaTeX Equation Editor - fxEditor" --rootDir src
cp appsscript.json src/appsscript.json
clasp push --force
clasp pushes only what is in src/, and clasp create puts a
default manifest there, so the cp replaces it with the add-on's own
appsscript.json — its OAuth scopes. The project is standalone, not bound to a
document: the add-on runs in any Docs or Slides file it is installed in. The Apps Script API must be
on for your account first, at
script.google.com/home/usersettings.
From a clone of the GitHub repository
(git clone https://github.com/willzyba/google_workspace.git), run the same commands
in its google_workspace folder instead of add-on.
Then set its Script properties (Project Settings → Script Properties in the Apps Script editor), with at least your licence key:
| EQNEDITOR_LICENCE | Your fxEditor licence key, from fxeditor.codecogs.com/purchase. Required. | |
| EQNEDITOR_DESIGN | The editor's look, as JSON: dialog width, height and scale, toolbar panels and size, colour, equation and markup sizes, undo/redo. Build one in Customise and download — design.json in the download. JSON that does not parse is ignored. | |
| EQNEDITOR_SERVER | https://fxtex.codecogs.com | Where the equation editor is loaded from, as a URL. |
| EQNEDITOR_RENDER_URL | https://fxtex.codecogs.com | The fxTeX Server that draws the images: CodeCogs', or your own. |
Then, from the Apps Script editor:
- Deploy → Test deployments to try it in your own Docs and Slides.
- Deploy → New deployment → Editor Add-on once it is working. Before anyone outside your own organisation can install it, the Google Cloud project it runs under has to complete Google's OAuth verification.
- To list it on the Google Workspace Marketplace for anyone to find, you also need a Marketplace SDK configuration and store listing.
The licence key activates the equation editor for your domain, with fxTeX Pro's
chemistry and picture packages: chemical formulae (\ce), chemical structures
(\chemfig), the physics package and LaTeX's picture environment. Get one from
fxeditor.codecogs.com/purchase. If you are not
sure which domain to register for an add-on, contact
us.
Customise and download
Make the equation editor your own: choose what it shows, drag panels from
More panels into up to three toolbar rows, and pick a colour and sizes. The preview is
the real Google Docs and Slides page, rebuilt as you go. Then add your licence key and download it: an
example.html with a page of equations to edit, loading everything it needs from
fxplugins.codecogs.com.
Your toolbar
More panels 0
School levels
Your design
The option that gives Google Docs and Slides this design — it is already in the download. Leave it out and the editor uses the standard design.
Get your licence key from fxeditor.codecogs.com/purchase. Without a key, the download still works: equations show why they cannot render until you add one.
Or get the plugin’s source code from GitHub.
Complete example
The whole of the page running above: a simple, complete HTML page that loads Google Docs and Slides and the
plugin. Every file comes from fxplugins.codecogs.com, so it works as it is —
put in your own licence key. (Keys are shortened here.)
