The template library

A template is a formula with blanks. The editor comes with 257 of them, from high-school algebra to university physics: you fill in the blanks, and the formula is in your project. You can write templates of your own, star the ones you reach for most, and take them to another machine.

The template library

The Templates tab is the second tab of the Creator. It has four entries, and each one opens a pop-up.

The Templates tab of the Creator with four entries: Default templates, My templates, Create template and Favorites, each with a line saying how many it holds.
The four entries of the Templates tab.
EntryWhat it opens
Default templatesThe 257 formulas that come with the editor.
My templatesYour own templates, with the buttons to change them.
Create templateThe form that writes a new template of yours.
FavoritesEvery template you gave a star, yours and the default ones.

Default templates

The default library has 257 formulas in 15 categories: Algebra, Functions, Trigonometry, Analytic geometry, Sequences and series, Limits, Derivatives, Integrals, Multivariable calculus, Linear algebra, Differential equations, Complex numbers, Probability and statistics, Sets and logic, and Physics. Each one is marked High school or University.

The Default templates pop-up with the word derivative typed in its search: cards of derivative formulas, each with its drawing, a level badge, a star, and the buttons Use and Save a copy.
The default library, searched for derivative. Each card shows the formula with the template's own values.

Along the top of the pop-up are a search field, a category list and a level list, and a count that says N of 257 while they filter the cards. Search takes any number of words, and every word has to appear in the name, the description, the LaTeX or the category of a template. Both lists start at All: type, and the cards narrow at once while the count follows. The cards are grouped under the name of their category.

On each card:

The pop-up is resizable, and the search and the filters of each list are still there the next time you open it. In the search field, Esc empties the search first; with nothing to empty, and anywhere else in the pop-up, it closes it.

Using a template

Press Use on a card. What happens next depends on whether the template has blanks, which the editor calls placeholders.

The Use template dialog for Product of powers: a drawing of the formula (1), the LaTeX under it (2), three fields numbered #1 base, #2 first exponent and #3 second exponent (3), a Formula name field (4) and a Create formula button (5).
The dialog of Product of powers: the drawing (1), its LaTeX (2), a field for each placeholder (3), the name of the formula (4) and Create formula (5).
  1. The drawing shows the formula the values make, and redraws as you type.
  2. Under it, the LaTeX those values give.
  3. A field for each placeholder, labelled #1, #2… and, when the template says what each one is, with its name (base, first exponent). It starts with the template's own value. Type any LaTeX there.
  4. The name the new formula will have. It starts as the template's name made into a valid one (product_of_powers), and the rules of names apply.
  5. Create formula adds the formula to the project. Reset values puts back the values the template came with, and Cancel leaves without making anything.
Type a value in a field and the drawing follows: x for the base, then 2k for the first exponent.

A value that LaTeX cannot draw shows the error under the LaTeX, and Create formula stays off until the value is right. Enter in any field creates the formula, too.

How a value goes into the formula

The template's LaTeX names its blanks #1, #2… and each is replaced by the value you typed, the way a LaTeX macro takes its arguments. The braces are the template's, not yours, so a value that is longer than one character stays together:

TemplateValuesFormula
#1^{#2}\cdot #1^{#3}=#1^{#2+#3} x, 2k, 3 x^{2k}\cdot x^{3}=x^{2k+3}

Where two pieces would run together (a command followed by a letter, or two braces side by side), the editor puts a space between them, as LaTeX ignores it in maths.

What you get

The Creator on its Formulas tab with the new formula product_of_powers selected in the list, with its drawing.
After Create formula the Creator goes to its Formulas tab with the new formula selected.

The formula is an ordinary one: its LaTeX is final, with the values already in it, and nothing remembers that it came from a template. Edit it, rename it or delete it as you would any other (see Writing formulas). Because the LaTeX was final from the start, its glyphs are made once, of what it is, so nothing has to be matched again afterwards.

The Creator after Use on Euler's identity: the formula eulers_identity is in the list without any dialog.
A template without placeholders goes straight into the project, named after itself.

Your own templates

When you write the same shape of formula again and again, make it a template. Press Create template in the Templates tab, or New template in My templates, and fill in the form.

The Create template form: fields Name, Category, Description and LaTeX, a table of placeholders #1 and #2 with default values a and b and names first term and second term, a drawing of a plus b equals b plus a, a LaTeX packages line and the Save template button.
The form with {#1}+{#2}={#2}+{#1} written: a row for each number, a default value in each, and the drawing the values make.

The line beside the buttons tells you what is missing: Give the template a name, Write the LaTeX of the template, Give #1 a default value or the reason the LaTeX cannot be drawn. Save template is off until the form is complete. Take a number out of the LaTeX and write it again, and it comes back with the value and the name it had. Closing a form with something written asks before it throws it away.

My templates

The My templates pop-up with one card, Commutative sum, with its drawing and the buttons Use, Edit, Duplicate and Delete, and above the list the buttons New template, Import and Export all; below the list a line says where the templates are kept.
My templates: the buttons of a card, the file buttons above, and under the list where the templates are kept.

On each card of yours: Use, Edit (the same form, with your template in it), Duplicate and Delete. Deleting asks first, and the button has to be held down. A formula you already made from the template stays. Tick the boxes to pick which templates Export takes.

The default templates cannot be changed. To change one, press Save a copy on its card: a notice says it is now among yours, with a button, Open My templates, and the copy is yours to edit.

The notice that follows Save a copy: the template is now among your templates, with an Open My templates button.
The notice after Save a copy.

Favorites

The star on any card, default or yours, keeps the template in Favorites. That pop-up lists them together, with Mine on the ones you wrote, and press the star again to take one out. Your stars are kept like your templates.

The Favorites pop-up with two starred derivative templates and their drawings.
Two templates with a star.

Where your templates are kept

Your templates and your stars belong to the editor, not to a project: they are kept in this browser, like the editor's preferences, so they are there in every project you open in it, and they are not in a project file.

The line under the list says which of these is in force, and offers Try again or Write to the folder when the folder could not be written.

Where to go next